I hereby claim:
- I am dessibelle on github.
- I am simonfransson (https://keybase.io/simonfransson) on keybase.
- I have a public key ASBqmr6XF0GaMSNj6gpW2bQK6-ccdOGJOtQnh1QhGrXsWwo
To claim this, I am signing this object:
#!/usr/bin/env bash | |
if [ $# -gt 0 ] ; then | |
URL=$1 | |
else | |
while : | |
do | |
read -p "Site: " URL | |
if [ -n "$URL" ] ; then |
#!/bin/bash | |
SCRIPT_NAME=$(basename $0) | |
function print_usage() { | |
echo "Usage:" | |
echo -e "\t${SCRIPT_NAME} [-p | --prompt <aws-vault prompt>] <aws_profile>" | |
echo -e "\nHint: set AWS_VAULT_PROMPT to e.g. 'ykman' to have aws-console default to ykman." | |
} |
#!/usr/bin/env bash | |
# == ABOUT == | |
# Gets localized version of WordPress and plugins from svn, sets up wp-config.php | |
# and creates database, downloads some standard components from github (and local | |
# git server) and runs theme template setup. | |
# == INSTALLATION == | |
# | |
# Install script: git clone git://gist.github.com/2666478.git tmp.$$; sudo mv tmp.$$/install-wordpress.sh /usr/bin/; chmod 755 /usr/bin/install-wordpress.sh; rm -rf tmp.$$/; |
#!/usr/bin/env bash | |
convmv -f utf8 -t utf8 --nfc --replace --nosmart --no-test -r uploads/ | |
rsync -avz -e ssh uploads/ username@host:mysite.com/public_html/wordpress/wp-content/uploads |
#!/usr/bin/env bash | |
files=`git grep --name-only ${1:+"$@"} | awk '{printf "%s ",$0} END {print ""}'` | |
if [[ ! -z "${files// }" ]] ; then | |
subl . && subl $files | |
else | |
echo "No matches." | |
fi |
I hereby claim:
To claim this, I am signing this object:
Is it Friday yet? Is the weekend here? | |
Is it time for me to kick things off with an ice cold beer? | |
Been working so dang hard that I forget: | |
Is it Friday yet? | |
8 o'clock on Monday morning | |
All I think about is when the day will end | |
Gotta make a living somehow | |
That's the way it is for me and all my friends |
#!/usr/bin/env bash | |
PROGRAM_NAME=`basename $0` | |
DEBUG=false | |
TARGET_ROUTER_MAC=() | |
SHARE=() | |
function debug { | |
[ $DEBUG == true ] && echo "$1" |
<?php | |
class WPMiniJSONAPI { | |
const API_ACTION_QUERY_VAR = "my-api"; | |
const API_PERMALINK_PART = "api"; | |
const API_EVENTS_PERMLINIK_PART = "events"; | |
const API_OUTPUT_FORMAT = "json"; | |
const API_EXPORT_EVENTS = "export-events"; |
#!/usr/bin/env bash | |
PROGRAM_NAME=`basename $0` | |
ARGS=`getopt u:H:h "$@"` | |
KEY_PATH=~/.ssh/id_rsa.pub | |
if [ $? != 0 ] ; then | |
echo "Error parsing arguments. Try $PROGRAM_NAME -h" > /dev/stderr | |
exit 2 |