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
@0 | |
MOV UP, DOWN | |
@1 | |
MOV RIGHT, DOWN | |
@2 | |
MOV UP, LEFT | |
@3 |
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
# Use ag and fzf to pick a result and open it in vim at the matching line, | |
# plus show the ag results in the quickfix window (needs Ag plugin in your vim) | |
function agvim () { | |
CHOICE=$(ag --color $* | fzf -0 -1 --ansi) | |
if [ ! -z "$CHOICE" ]; then | |
# Open vim at the selected file and line, but also run the Ag scan | |
# the ! on Ag! stops Ag jumping to the first match, and the wincmd gives the editor window focus | |
nvim $( echo "$CHOICE" | awk 'BEGIN { FS=":" } { printf "+%d %s\n", $2, $1 } ') +"Ag! '$*'" "+wincmd k" | |
fi | |
} |
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
#!/usr/bin/python | |
""" | |
Uses reflect.php on sakaki to figure out external IP and then requests Amazon updates the record for home.jamesoff.net with that | |
JMS | |
20131019 | |
""" | |
HOSTED_ZONE_ID = "Z1BQWQ5LVT6ZAX" |
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
--- s3cmd.orig 2014-01-23 15:52:08.000000000 +0000 | |
+++ s3cmd 2014-01-23 15:56:12.000000000 +0000 | |
@@ -1692,7 +1692,9 @@ | |
#optparser.disable_interspersed_args() | |
config_file = None | |
- if os.getenv("HOME"): | |
+ if os.getenv("S3CFG"): | |
+ config_file = os.getenv("S3CFG") | |
+ elif os.getenv("HOME"): |
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
function string_hash() { | |
HASHSTR=$1 | |
HASHSIZE=$2 | |
HASHVAL=0 | |
for i in {1..${#HASHSTR}}; do; | |
THISCHAR=$HASHSTR[$i] | |
HASHVAL=$(( $HASHVAL + $((#THISCHAR)) )) | |
done |
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
db.twitter.aggregate( | |
{ $group : { | |
"_id" : "$user.screen_name", | |
"tweets" : { $sum : 1 } | |
} | |
}, | |
{ $sort : { "tweets" : -1 } }, | |
{ $limit : 5 } | |
) |
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
<?php | |
// This is the web page for the QuoteEngine | |
// | |
// It goes with the QuoteEngine script for eggdrop by JamesOff | |
// http://jamesoff.net | |
// | |
// There are a couple of things to change in the settings file | |
// before this script can be used | |
require("settings.inc"); |
NewerOlder