Skip to content

Instantly share code, notes, and snippets.

View iamdanre's full-sized avatar

danré iamdanre

View GitHub Profile
@iamdanre
iamdanre / ffish_key_profile.json.itermkeymap
Created October 12, 2025 19:52
ffish iterm2 key key binding export
{"Key Mappings":{"0x7f-0x80000":{"Text":"\"0x1b 0x7f\"","Action":11},"0xf702-0x280000":{"Text":"b","Action":10},"0xf702-0x300000":{"Text":"0x1","Action":11},"0x71-0x1c0000-0xc":{"Version":2,"Apply Mode":0,"Action":66,"Text":"[{\"Version\":2,\"Apply Mode\":0,\"Action\":11,\"Text\":\"0x5 0x15\",\"Escaping\":2},{\"Version\":2,\"Apply Mode\":0,\"Action\":12,\"Text\":\"exit 0;\",\"Escaping\":2},{\"Version\":2,\"Apply Mode\":0,\"Action\":11,\"Text\":\"0x0d\",\"Escaping\":2}]","Escaping":2},"0xf728-0x80000":{"Text":"d","Action":10},"0x7f-0x100000":{"Text":"0x15","Action":11},"0xf703-0x300000":{"Text":"0x5","Action":11},"0xf703-0x280000":{"Text":"f","Action":10},"0xf728-0x0":{"Text":"0x4","Action":11}},"Touch Bar Items":[]}
@iamdanre
iamdanre / dd...js
Created August 15, 2025 02:38
expand symphony dumps
(()=>{ /* recursive expansion dd() */
document.querySelectorAll('.sf-dump span:first-child').forEach(el=>/^[▶▸]$/.test(el.textContent.trim()) &&
el.getBoundingClientRect().width && el.closest('.sf-dump-toggle, a, [role="button"], button')?.click())
})();'ᕕ( ᐛ )ᕗ'
@iamdanre
iamdanre / lumabooth_crop.sh
Created May 26, 2025 00:17
crop collated booth templates
#!/bin/bash
images=$(ls -1 *.jpg)
for image in $images ; do
if [ $((RANDOM % 2)) -eq 0 ]; then
# Crop the first half
convert "$image" -crop 600x1800+0+0 ./prints/"$image"
else
# Crop the second half
convert "$image" -crop 600x1800+600+0 ./prints/"$image"
fi
@iamdanre
iamdanre / dumpVar.blade.php
Created December 20, 2024 12:00
blade to js object dump
<script>
const user = @json($user);
console.log(user);
</script>
<script>
const user = {!! json_encode($user ?? []) !!}
console.log(user)
<script>
@iamdanre
iamdanre / index.php
Last active October 6, 2024 10:48
MAMP index file, shows sites, mongoDB status, Mailpit status and phpInfo
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>localhost</title>
<style>
<!DOCTYPE html>
<html lang="en">
<head>
<style>
body {
background: #121212
}
@iamdanre
iamdanre / mampsql.sh
Last active August 10, 2024 21:14
run MAMP's MySQL server as a daemon with Raycast 🚀
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Mamp SQL Server
# @raycast.mode compact
# @raycast.argument1 { "type": "dropdown", "placeholder": "Start/Stop/Status", "data": [{"title": "Start", "value": "start"}, {"title": "Stop", "value": "stop"}, {"title": "Status", "value": "status"}] }
# Optional parameters:
# @raycast.icon 🐘
/*
<input type="file" multiple class="my-image-field" />
<div class="row">
<div class="col-md-6">
<h2>Before</h2>
<img src="" id="before" alt="Before" />
</div>
<div class="col-md-6">
<h2>After</h2>
<img src="" id="after" alt="After" />
@iamdanre
iamdanre / fixSafariExtentions.sh
Last active November 29, 2022 05:01
fix macOS Extensions
#!/bin/zsh
killall Safari && /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -f -R /Applications/Safari.app;
var odmcss = `
:root {
filter: invert(90%) hue-rotate(180deg) brightness(100%) contrast(100%);
background: #fff;
}
iframe, img, image, video, [style*="background-image"] {
filter: invert() hue-rotate(180deg) brightness(105%) contrast(105%);
}
`;