This file contains 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 "aws_ami" "latest_amazon_linux_2" { | |
most_recent = true | |
filter { | |
name = "name" | |
values = ["*amzn2-ami-hvm*"] | |
} | |
filter { | |
name = "virtualization-type" | |
values = ["hvm"] | |
} |
This file contains 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
#!/usr/bin/env bash | |
set -ex | |
cd /tmp | |
VERSION="8u202-b08" | |
VERSION_WITHOUT_DASH="${VERSION/-/}" | |
TARBALL="OpenJDK8U-jre_x64_linux_hotspot_${VERSION_WITHOUT_DASH}.tar.gz" | |
CHECKSUM="b3f9934c6fc83fb2e76a4ded31367e5312013e27d36eac82a6fe1423aae394ce" |
This file contains 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
brew list -1 | while read line; do brew unlink $line; brew link $line; done | |
for x in sqlite openssl readline; do brew unlink $x; brew link --force $x; done |
This file contains 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
package main | |
import ( | |
"fmt" | |
"strings" | |
"io" | |
"bufio" | |
"os" | |
"strconv" | |
) |
This file contains 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
if application "VLC" is running then | |
tell application "VLC" | |
step backward | |
end tell | |
end if | |
property step : 10 | |
if application "QuickTime Player" is running then | |
tell application "QuickTime Player" | |
set playerPosition to (current time of front document) - step | |
set movieDuration to duration of front document |
This file contains 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 | |
# Restarts passenger after any *.py *.html or *.po files are saved | |
# | |
# Requires inotify-tools | |
appDir="/home/user/site.com/appname" | |
siteDir=$(dirname "$appdir") | |
# Make sure app directory exists |
This file contains 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
#!/usr/bin/env python | |
import codecs | |
import json | |
import urllib2 | |
tcomm_id = '105089836262253' | |
natcomm_id = '134083046643371' | |
# Get token from | |
# https://developers.facebook.com/tools/explorer | |
# or create a fb app (https://developers.facebook.com/apps) |
This file contains 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
#!/usr/bin/env python | |
import urllib2 | |
app_id='123abc' | |
app_secret='987fed' | |
def get_app_access_token(app_id, app_secret): | |
app_login_url = 'https://graph.facebook.com/oauth/access_token?client_id={app_id}&client_secret={app_secret}&grant_type=client_credentials'.format(app_id=app_id, app_secret=app_secret) |
This file contains 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
javascript:(function(){var%20t=0;function%20moar(){var%20e=document.querySelectorAll(%22a.pam%22);if(e.length%3E0){e[0].onclick();var%20e=document.querySelectorAll(%22input.stat_elem%22);for(var%20i=0;i%3Ce.length;i=i+1){e[i].click();}}else{t=setInterval(expand,3000);}}function%20expand(){var%20e=document.querySelectorAll(%22input.stat_elem%22);for(var%20i=0;i%3Ce.length;i=i+1){e[i].click();}if(e.length==0){clearInterval(t);}}t=setInterval(moar,1500);})(); |
This file contains 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
# Please enter the commit message for your changes. Lines starting | |
# with '#' will be ignored, and an empty message aborts the commit. | |
# On branch master | |
# Changes to be committed: | |
# (use "git reset HEAD <file>..." to unstage) | |
# | |
# modified: src/taikonome/Taikonome.as | |
# modified: taikonome.as3proj | |
# |
NewerOlder