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 | |
USER_DIR=/home/steam | |
ARK_DIR=$USER_DIR/Ark1 | |
SAVE_DIR=$USER_DIR/Ark1/ShooterGame/Saved | |
STEAMCMD=./steamcmd.sh | |
STEAMCMD_DIR=$USER_DIR/steamcmd | |
TEMP_DIR=$USER_DIR/Saved | |
mv $SAVE_DIR $TEMP_DIR |
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
/** | |
* destinyCodes.js | |
* Automatically redeem known codes for Bungie's Destiny | |
* Duane Sibilly <duane@sibilly.com> | |
* | |
* USAGE: Login to your account on bungie.net, and navigate to the code | |
* redemption page at http://www.bungie.net/en/User/coderedemption. Open your | |
* browser's JavaScript console (Chrome: Ctrl-Shift-J), and paste the contents | |
* of this file into the console. Hit enter. You can safely ignore the alert | |
* message that pops up for any codes you've already redeemed. |
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 python3 | |
from datetime import datetime | |
from inspect import currentframe, getframeinfo | |
def niceLog(msg): | |
frameinfo = getframeinfo(currentframe().f_back) | |
print(" ".join([frameinfo.filename, "Line", str(frameinfo.lineno), datetime.now().strftime("%Y-%m-%d %H:%M:%S"), msg])) |
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
# XCode 4 auto-versioning script for Git | |
# Inspired by the work of Axel Andersson, Marcus S. Zarra and Matt Long | |
# http://valthonis.net/u/19 | |
""" | |
NOTE: Due to its use of build environment variables, this | |
script will only work from inside XCode's build process! | |
""" | |
import os |
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
<?php | |
/* | |
Adaptation by Marco Arment <me@marco.org>. | |
Adapted from Portable PHP Password Hashing Framework (phpass) version 0.3: | |
http://www.openwall.com/phpass/ | |
phpass was by Solar Designer <solar at openwall.com> in 2004-2006 and is in | |
the public domain. This adaptation is also in the public domain. |
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 | |
# Imgur Album Downloader | |
# Version 20121015-01 | |
# | |
# THIS SCRIPT NO LONGER WORKS AGAINST THE CURRENT IMGUR WEBSITE | |
# DO NOT USE! THIS GIST IS HERE FOR POSTERITY ONLY! | |
# | |
# Now with multithreading! | |
# Just paste the URL of an Imgur album/gallery/subdomain | |
# at the prompt, and away you go! |
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
/* The API controller | |
Exports 3 methods: | |
* post - Creates a new thread | |
* list - Returns a list of threads | |
* show - Displays a thread and its posts | |
*/ | |
var Thread = require('../models/thread.js'); | |
var Post = require('../models/post.js'); |
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
function parse_git_dirty { | |
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working direct | |
ory clean)" ]] && echo "*" | |
} | |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(par | |
se_git_dirty)]/" | |
} |
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
/** | |
* 4e-xp.js | |
* D&D 4th Edition Encounter Level Calculator | |
* | |
* Copyright (C) 2012 Duane Sibilly <duane@sibilly.com> | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
OlderNewer