Skip to content

Instantly share code, notes, and snippets.

View benjifs's full-sized avatar

Benji Encalada Mora benjifs

View GitHub Profile
@benjifs
benjifs / boo
Last active September 17, 2021 20:27
boo color script. See also curl -L git.io/BOO
#!/usr/bin/env bash
#
# ▄▄▄▄ ▒█████ ▒█████
# ▓█████▄ ▒██▒ ██▒▒██▒ ██▒
# ▒██▒ ▄██▒██░ ██▒▒██░ ██▒
# ▒██░█▀ ▒██ ██░▒██ ██░
# ░▓█ ▀█▓░ ████▓▒░░ ████▓▒░
# ░▒▓███▀▒░ ▒░▒░▒░ ░ ▒░▒░▒░
# ▒░▒ ░ ░ ▒ ▒░ ░ ▒ ▒░
# ░ ░ ░ ░ ░ ▒ ░ ░ ░ ▒
@benjifs
benjifs / boo
Last active September 17, 2021 20:22
curl -L git.io/BOO

 ▄▀▀▀▀▀▀▀▄  ▄▀▀▀▀▀▀▀▄  ▄▀▀▀▀▀▀▀▄  ▄▀▀▀▀▀▀▀▄  ▄▀▀▀▀▀▀▀▄  ▄▀▀▀▀▀▀▀▄
 ▄▀ █ █ ▄▄▀▄  ▄▀ █ █ ▄▄▀▄  ▄▀ █ █ ▄▄▀▄  ▄▀ █ █ ▄▄▀▄  ▄▀ █ █ ▄▄▀▄  ▄▀ █ █ ▄▄▀▄
 █ ▄ ▄ ▄ ▀ █  █ ▄ ▄ ▄ ▀ █  █ ▄ ▄ ▄ ▀ █  █ ▄ ▄ ▄ ▀ █  █ ▄ ▄ ▄ ▀ █  █ ▄ ▄ ▄ ▀ █
 ▀▄ ▀ ▀ ▀ ▄▀  ▀▄ ▀ ▀ ▀ ▄▀  ▀▄ ▀ ▀ ▀ ▄▀  ▀▄ ▀ ▀ ▀ ▄▀  ▀▄ ▀ ▀ ▀ ▄▀  ▀▄ ▀ ▀ ▀ ▄▀
 ▀▄▄▄▄▄▄▄▄▀  ▀▄▄▄▄▄▄▄▄▀  ▀▄▄▄▄▄▄▄▄▀  ▀▄▄▄▄▄▄▄▄▀  ▀▄▄▄▄▄▄▄▄▀  ▀▄▄▄▄▄▄▄▄▀

@benjifs
benjifs / doge
Last active August 12, 2021 17:36
ANSI doge. curl -L git.io/tothemoon
 ██ ████
 ██████ ██████
 ████████ ██████
 ██████████ ██████████
 ██████████████████████████████████
 ██[38;2;
#!/usr/bin/env bash
# Map Caps Lock key to Left Control key
# https://developer.apple.com/library/content/technotes/tn2450/_index.html
# This doesnt work. Reverts on restart
# hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000039,"HIDKeyboardModifierMappingDst":0x7000000E0}]}'
# References:
# https://github.com/mathiasbynens/dotfiles/issues/310
# https://gist.github.com/scottstanfield/0f8ce63271bebfb5cf2bb91e72c71f91
# The last link didnt work for me on Sierra or High Sierra. I could not find IOHIDKeyboard but

Keybase proof

I hereby claim:

  • I am benjifs on github.
  • I am benjifs (https://keybase.io/benjifs) on keybase.
  • I have a public key whose fingerprint is E6F6 F3D7 97E1 961E 6FBE 1913 CCCA A188 E19D 0940

To claim this, I am signing this object: