Skip to content

Instantly share code, notes, and snippets.

View daggerhashimoto's full-sized avatar
🧦
Swaggin

lil reentrant daggerhashimoto

🧦
Swaggin
View GitHub Profile
@brianwisti
brianwisti / hugo-theme-demo.py
Created December 28, 2015 02:12
First pass at previewing randomgeekery.org content with all themes in Hugo themes repository
#!/usr/bin/env python3
import os
import os.path
import subprocess
import time
from splinter import Browser
def is_theme_dir(folder, item):
@nl5887
nl5887 / transfer.fish
Last active March 22, 2022 09:07
Bash and zsh alias for transfer.sh. Transfers files and directories to transfer.sh.
function transfer
if test (count $argv) -eq 0
echo "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"
return 1
end
## get temporarily filename, output is written to this file show progress can be showed
set tmpfile ( mktemp -t transferXXX )
## upload stdin or file
@jtallant
jtallant / annoy.rb
Created August 2, 2013 15:55
Annoying script to run at an Apple Store.
sleep 30 # Gives you a chance to walk away
while true
system("osascript -e 'set volume 7'") # If they turn the volume down, it comes right back up
system('say stop repeating yourself!')
end
@ebuckley
ebuckley / gist:1842461
Created February 16, 2012 05:55
python code to encode/decode morse code
morseAlphabet ={
"A" : ".-",
"B" : "-...",
"C" : "-.-.",
"D" : "-..",
"E" : ".",
"F" : "..-.",
"G" : "--.",
"H" : "....",
"I" : "..",