Skip to content

Instantly share code, notes, and snippets.

@xcsrz
xcsrz / adb-fix-kodi-back-button-amazon-fire-tv.md
Last active May 23, 2020 18:09
Does it irritate anyone else as much as me when you hit the back button and the video keep on playing but all you can see is the audio and it's not clear how to make the audio stop? This fixes that on FireTV+Kodi.

Run Directly

curl https://gist.githubusercontent.com/xcsrz/780017ebbd64b2435dc58b1053bf4858/raw/f9d36a87daba4e464a1e61d35172c313ee2fea7f/adb-fix-kodi-back-button-amazon-fire-tv.sh | bash
@xcsrz
xcsrz / GUID Regex
Created November 23, 2014 07:44
Shortest regex I know to match a guid (reliably)
/^([0-9a-f]){8}(-([0-9a-f]){4}){4}([0-9a-f]){8}$/i
@leommoore
leommoore / linux_running_a_node_service_pm2.md
Last active March 23, 2019 11:29
Linux - Running a Node Service (PM2)
@hadashiA
hadashiA / gist:4353436
Last active September 2, 2016 05:50
launch instance for knife-ec2
#USAGE: knife ec2 server create (options)
# -Z, --availability-zone ZONE The Availability Zone
# -A, --aws-access-key-id KEY Your AWS Access Key ID
# -K SECRET, Your AWS API Secret Access Key
# --aws-secret-access-key
# --user-data USER_DATA_FILE The EC2 User Data file to provision the instance with
# --bootstrap-version VERSION The version of Chef to install
# -N, --node-name NAME The Chef node name for your new node
# --server-url URL Chef Server URL
@mathiasbynens
mathiasbynens / appify
Created November 12, 2010 13:46 — forked from subtleGradient/appify
appify — create the simplest possible Mac app from a shell script
#!/bin/bash
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF
appify v3.0.1 for Mac OS X - http://mths.be/appify
Creates the simplest possible Mac app from a shell script.
Appify takes a shell script as its first argument:
`basename "$0"` my-script.sh