This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
old_etag=$(curl --silent http://api.openkeyval.org/minecraft-etag) | |
new_etag=$(curl --silent --head https://s3.amazonaws.com/MinecraftDownload/launcher/minecraft_server.jar | grep ETag | awk -F\" '{print $2}') | |
if [ $old_etag != $new_etag ]; then | |
echo "event=updated old=$old_etag new=$new_etag" | |
curl --silent -X POST https://api.twilio.com/2010-04-01/Accounts/$TWILIO_USER/SMS/Messages.json \ | |
-u $TWILIO_USER:$TWILIO_PASS \ | |
-d "From=$SMS_FROM" \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
/* Custom Key Bindings */ | |
"§" = ("insertText:", "}"); | |
"°" = ("inesertText:", "{"); | |
"ç" = ("insertText:", "#"); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Setting the prefix from C-b to C-a | |
set -g prefix C-a | |
# Free the original Ctrl-b prefix keybinding | |
unbind C-b | |
# Setting the delay between prefix and command | |
set -s escape-time 1 | |
# Ensure that we can send Ctrl-A to other apps |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http'); | |
var count = 0; | |
function get() { | |
var i = count++; | |
console.log("Starting request #" + i); | |
var req = http.request({ | |
hostname: "localhost", | |
port: 8080, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data:text/html, <style type="text/css">.e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div class="e" id="editor"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("editor");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script> | |
<!-- | |
For other language: Instead of `ace/mode/ruby`, Use | |
Markdown -> `ace/mode/markdown` | |
Python -> `ace/mode/python` | |
C/C++ -> `ace/mode/c_cpp` | |
Javscript -> `ace/mode/javascript` | |
Java -> `ace/mode/java` | |
Scala- -> `ace/mode/scala` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -g bell-action any | |
set -g default-terminal xterm | |
set -g display-panes-colour red | |
set -g message-bg cyan | |
set -g message-fg white | |
set -g mouse-select-pane on | |
set -g pane-border-bg default | |
set -g pane-border-fg cyan | |
set -g pane-active-border-bg default | |
set -g pane-active-border-fg white |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# a bit of a hack | |
# by Cormac Relf - cormacrelf.com - @cormacrelf | |
# Opens the url on the clipboard in Safari | |
# by opening Google Chrome with an x-callback-url | |
# that takes you to the same url in Safari. | |
# I guess you could just open it in googlechrome:// | |
import webbrowser |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For inspiration, see http://mths.be/osx | |
# Set a shorter Delay until key repeat (requires OS restart to take effect) | |
defaults write NSGlobalDomain InitialKeyRepeat -int 12 | |
# Set a blazingly fast keyboard repeat rate (requires OS restart to take effect) | |
defaults write NSGlobalDomain KeyRepeat -int 0.02 | |
defaults write com.apple.finder AppleShowAllFiles TRUE | |
# Disable the “Are you sure you want to open this application?” dialog |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/etc/fstab | |
========== | |
`sshfs#[email protected]:/home/myname /mnt/sshfs/homebox fuse comment=sshfs,noauto,users,exec,workaround=rename,uid=1000,gid=1000,allow_other,reconnect,transform_symlinks,BatchMode=yes 0 0` | |
/etc/fuse.conf | |
============== | |
`user_allow_other` | |
umount | |
====== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install a sane Ruby Version Manager along with Recent Ruby | |
\curl -L https://get.rvm.io | bash -s stable --ruby | |
# Source the installed script to allow for using RVM this first time | |
# Future logins will automatically source RVM using your bashrc or zshrc | |
source ~/.rvm/scripts/rvm | |
# Clone Trello-Archiver | |
git clone https://github.com/zph/trello-archiver.git | |
# Move into folder | |
cd trello-archiver/ | |
# Install needed Ruby Gem dependencies |