Skip to content

Instantly share code, notes, and snippets.

View afifmakarim's full-sized avatar

Afif Makarim afifmakarim

View GitHub Profile
@thesephist
thesephist / options.oak
Created November 14, 2022 22:09
Collection of useful Stable Diffusion prompt modifiers
{ name: 'Lighting', options: [
'golden hour, warm glow'
'blue hour, twilight, ISO12000'
'midday, direct lighting, overhead sunlight'
'overcast, whitebox, flat lighting, diffuse'
'dreamlike diffuse ethereal lighting'
'dramatic lighting, dramatic shadows, illumination'
'studio lighting, professional lighting, well-lit'
'flash photography'
'low-key lighting, dimly lit'
@puentejose
puentejose / doubleclickfix.ahk
Created August 9, 2020 00:29
AutoHotKey - Double Click Fix
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
*LButton::
If (A_PriorHotkey=A_ThisHotkey && A_TimeSincePriorHotkey < 10) ;hyperclick
Return
sendinput {Blind}{LButton down}
KeyWait, LButton
@rjz
rjz / crypto-aes-256-gcm-demo.js
Last active March 28, 2026 22:39
example using node.js crypto API with aes-256-gcm
const buffer = require('buffer');
const crypto = require('crypto');
// Demo implementation of using `aes-256-gcm` with node.js's `crypto` lib.
const aes256gcm = (key) => {
const ALGO = 'aes-256-gcm';
// encrypt returns base64-encoded ciphertext
const encrypt = (str) => {
// The `iv` for a given key must be globally unique to prevent