Skip to content

Instantly share code, notes, and snippets.

@Skinner927
Skinner927 / init.lua
Last active November 15, 2020 22:10
Hammerspoon auto screen position script
hs.urlevent.bind('reload', function(eventName, params)
hs.reload()
end)
hs.urlevent.bind('currentScreenTag', function(eventName, params)
alert(getScreenTag())
end)
hs.urlevent.bind("printLayout", function(eventName, params)
config = {}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Skinner927
Skinner927 / app.wsgi
Last active April 20, 2016 04:06
Amazon Alexa/Echo Find My iPhone
"""
This is a WSGI script that will take responses from Amazon's Echo/Alexa and hit iCloud's FindMyIPhone.
Basically, using the power of pyicloud, you can ask Alexa to find your iPhone.
Example of what to say to Alexa:
Alexa, tell find my iphone dennis
or
@Skinner927
Skinner927 / split.sh
Last active February 19, 2016 18:06
Recursively split directory of mp3s by X minute chunks. Requires ffmpeg.
#!/bin/bash
min=10; #num minutes to split by
VERBOSE=false
QUIET=false
TEST=false
while getopts ':vqt:nh' opt; do
case $opt in
@Skinner927
Skinner927 / keybase.md
Created January 19, 2016 20:14
keybase.md

Keybase proof

I hereby claim:

  • I am skinner927 on github.
  • I am skinner927 (https://keybase.io/skinner927) on keybase.
  • I have a public key whose fingerprint is 5BEC D1D6 3AE2 28A5 5515 1BA7 2F64 A295 FA0B AC66

To claim this, I am signing this object:

@Skinner927
Skinner927 / README.md
Last active December 29, 2015 19:07
Minecraft service and helper scripts for running a vanilla Minecraft server. Greatly inspired/copied by: http://wellsie.net/p/349/

#Minecraft Server Service

Minecraft service and helper scripts for running a vanilla Minecraft server. Greatly inspired/copied by: http://wellsie.net/p/349/


Create a minecraft service user

sudo adduser --system --group --shell /bin/bash minecraft

@Skinner927
Skinner927 / ir_black.itermcolors
Created December 7, 2015 17:16
ir_black theme for iterm2. Ensure to go to Preferences->Profiles->Text and change the "Draw bold text in bright colors" setting off.
<?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.31090480089187622</real>
<key>Green Component</key>
<real>0.31097450852394104</real>
@Skinner927
Skinner927 / chrome.di.fm.app
Created May 27, 2015 17:30
DI.fm Digitally Imported open in resized Chrome window
tell application "Google Chrome"
if it is running then
make new window
else
activate
end if
open location "http://di.fm"
set the bounds of the front window to {0, 0, 550, 800}
end tell
@Skinner927
Skinner927 / private.xml
Created January 20, 2015 18:25
Karabiner private.xml
<?xml version="1.0" ?>
<root>
<item>
<name>! Custom</name>
<replacementdef>
<replacementname>LowKeyRepeat</replacementname>
<replacementvalue>KeyRepeat::RawValue::20</replacementvalue>
</replacementdef>
<item>