Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
echo -e "\033[0m██\033[1m██\033[0m NONE"
echo -e "\033[0;30m██\033[1;30m██\033[0;30m BLACK"
echo -e "\033[0;31m██\033[1;31m██\033[0;31m RED"
echo -e "\033[0;32m██\033[1;32m██\033[0;32m GREEN"
echo -e "\033[0;33m██\033[1;33m██\033[0;33m YELLOW"
echo -e "\033[0;34m██\033[1;34m██\033[0;34m BLUE"
echo -e "\033[0;35m██\033[1;35m██\033[0;35m PURPLE"
echo -e "\033[0;36m██\033[1;36m██\033[0;36m CYAN"
@bl1nk
bl1nk / init.lua
Created November 9, 2016 15:00
macOS Sierra hyper key
-- 1. download karabiner-elements
-- https://github.com/tekezo/Karabiner-Elements
-- 2. bind whatever key you want to f19 with it
-- 3. download hammerspoon
-- http://www.hammerspoon.org/
-- 4. download this snippet to ~/.hammerspoon/init.lua
hyper = { "cmd", "alt", "shift", "ctrl" }
k = hs.hotkey.modal.new({}, 'F18')
hyperBindings = {'q','w','e','r','t','y','u','i','o','p','a','s','d','f','g','h','j','k','l','z','x','c','v','b','n','m','SPACE'}
for i,key in ipairs(hyperBindings) do
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.20000000298023224</real>
@bl1nk
bl1nk / delete-pastes.sh
Created May 26, 2014 13:00
Deletes all uploads (older than 24h) from my filesharing folder
#!/usr/bin/env sh
find /srv/http/io.kuchen.cdn/ -type f ! -name index.html -mmin +1440 -delete
@bl1nk
bl1nk / private.xml
Last active April 12, 2019 09:04
KeyRemap4MacBook private.xml to get CODE Keyboard-like media keys on all PC keyboards
<?xml version="1.0"?>
<root>
<item>
<name>CODE Keyboard-like media keys</name>
<item>
<name>Enable CODE Keyboard-like media keys</name>
<appendix>Holding down the app-key sends fn, just pressing it sends app-key</appendix>
<appendix>* Play/Pause to Ins & Home</appendix>
<appendix>* Volume Up to Pg Up</appendix>
<appendix>* Volume Down to Pg Dn</appendix>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.1803921568627451</real>
<key>Green Component</key>
<real>0.16470588235294117</real>

Keybase proof

I hereby claim:

  • I am bl1nk on github.
  • I am bl1nk (https://keybase.io/bl1nk) on keybase.
  • I have a public key whose fingerprint is 37AC ED35 B79F 6FBC 4744 E02F 322E 9854 5BF5 4A59

To claim this, I am signing this object: