Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Search Gists
Sign in Sign up

Instantly share code, notes, and snippets.

Discover gists

@eliasdaler
eliasdaler /tmd_export.py
Last activeDecember 17, 2025 20:36
.blend to .tmd (PS1) export
"""
.blend to TMD export.
Only objects in "Collection" collection are exported, they're automatically joined and triangulated.
Only flat shaded meshes are supported:
Use Color Attribute -> Face Corner (NOT Vertex color).
Run via CLI:
/usr/bin/blender <BLEND_FILE>\
--quiet --python-exit-code 1\
--background --python tmd_export.py \
@cdesch
cdesch /rails_generator_cheat_sheet.md
Last activeDecember 17, 2025 20:35
Rails Generator CheatSheet

Cheat Sheets are greate but they are not a substitute for learning the framework and reading the documentation as we most certainly have not covered every potential example here. Please refer to theRails Command Line Docs for more information.

Command Line Generator Info

Reference

You can get all of this information on the command line.

rails generate with no generator name will output a list of all available generators and some information about global options.rails generate GENERATOR --help will list the options that can be passed to the specified generator.

@animetosho
animetosho /gf2p8affineqb-articles.md
Last activeDecember 17, 2025 20:31
A list of articles documenting uses of the GF2P8AFFINE instruction

Intel added the Galois Field instruction set (GFNI) extensions to their Sunny Cove and Tremont cores. What’s particularly interesting is that GFNI is the only new SIMD extension that came with SSE and VEX/AVX encodings (in addition to EVEX/AVX512), to allow it to be supported onall future Intel cores, including those which don’t support AVX512 (such as the Atom line, as well as Celeron/Pentium branded “big” cores).

I suspect GFNI was aimed at acceleratingSM4 encryption, however, one of the instructions can be used for many other purposes. The extension includesthree instructions, but of particular interest here is the Affine Transformation (GF2P8AFFINEQB), aka bit-matrix multiply, instruction.

There have been various articles which discuss out-of-band

@roalcantara
roalcantara /XDG.cheat-sheet.md
Last activeDecember 17, 2025 20:31
XDG cheat sheet

Directories

Base

The intended use-case for BaseDirectories isto query the paths of user-invisible standard directories that have been defined according tothe conventions of the operating system the library is running on.

Z-Image AI: Free Fast S3-DiT Image Generator

Z‑Image Turbo is a bit different from “classic” Stable Diffusion, so a lot of old prompting habits don’t quite apply. I’ll walk through how to prompt it deeply and safely, with special focus oncontrolling content (nudity, stereotypes, unwanted artifacts) even though the modeldoes not support traditional negative prompts at all. ([Hugging Face][1])


1. How Z‑Image Turbo thinks (and why “negative” prompts don’t work)

Key facts that matter for prompting:

About This Document

This style guide was generated byClaude Code through deep analysis of theFizzy codebase - 37signals' open-source project management tool.

Why Fizzy matters: While 37signals has long advocated for "vanilla Rails" and opinionated software design, their production codebases (Basecamp, HEY, etc.) have historically been closed source. Fizzy changes that. For the first time, developers can study a real 37signals/DHH-style Rails application - not just blog posts and conference talks, but actual production code with all its patterns, trade-offs, and deliberate omissions.

How this was created: Claude Code analyzed the entire codebase - routes, controllers, models, concerns, views, JavaScript, CSS, tests, and configuration. The goal was to extract not justwhat patterns are used, butwhy - inferring philosophy from implementation choices.

@rambabusaravanan
rambabusaravanan /detect-js-framework.js
Last activeDecember 17, 2025 20:29
Detect JS Framework used in a Website
// Paste these lines into website's console (Win/Linux: Ctrl + Shift + I / Mac: Cmd + Alt + I)
if(!!window.React||
!!document.querySelector('[data-reactroot], [data-reactid]')||
Array.from(document.querySelectorAll('*')).some(e=>e._reactRootContainer!==undefined||Object.keys(e).some(k=>k.startsWith('__reactContainer')))
)
console.log('React.js');
if(!!document.querySelector('script[id=__NEXT_DATA__]'))
console.log('Next.js');
/*Add this under the buttons section of your illiad.css file */
/* Added for WCAG input/target minimum height and width */
button,input,optgroup,select,textarea {
min-height:44px;
min-width:44px;
}
@api0cradle
api0cradle /AccessChk.bat
Last activeDecember 17, 2025 20:20
AppLocker hardening
accesschk -w -s -u Users"C:\Program Files">> programfiles.txt
accesschk -w -s -u Everyone"C:\Program Files">> programfiles.txt
accesschk -w -s -u"Authenticated Users""C:\Program Files">> programfiles.txt
accesschk -w -s -u Interactive"C:\Program Files">> programfiles.txt
accesschk -w -s -u"This Organization""C:\Program Files">> programfiles.txt
accesschk -w -s -u"Authentication authority asserted identity""C:\Program Files">> programfiles.txt
accesschk -w -s -u"Mandatory Label\Medium Mandatory Level""C:\Program Files">> programfiles.txt
accesschk -w -s -u%username%"C:\Program Files">> programfiles.txt
accesschk -w -s -u Users"C:\Program Files (x86)">> programfilesx86.txt
NewerOlder

[8]ページ先頭

©2009-2025 Movatter.jp