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
### Keybase proof | |
I hereby claim: | |
* I am danielglh on github. | |
* I am danielglh (https://keybase.io/danielglh) on keybase. | |
* I have a public key ASDGFtnpVet7dp52MuG9fKoDGpA08m1_HUBdF4pF4hT8Kgo | |
To claim this, I am signing this object: |
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 strict"; | |
// Dependencies | |
const async = require("async"); | |
const gm = require("gm").subClass({ | |
imageMagick: true | |
}); | |
const aws = require("aws-sdk"); | |
const s3 = new aws.S3(); |
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
# PragPub magazines offer the first 49 issues for free here: https://pragprog.com/magazines. | |
# This script allows you to download all these free issues. | |
# For newer issues, you have to purchase them here: http://theprosegarden.com/. | |
require 'open-uri' | |
require 'open_uri_redirections' | |
def download_issue(num) | |
num = num.to_s.rjust(3, "0") | |
dir = "issue.#{num}" |
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 prefix ^k | |
unbind ^b | |
bind a send-prefix | |
unbind '"' | |
bind - splitw -v # vertical split | |
unbind % | |
bind | splitw -h # horizonal split | |
bind k selectp -U # select the up window |
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
arm_freq=840 | |
core_freq=375 | |
disable_overscan=1 | |
gpu_mem_256=100 | |
gpu_mem_512=100 | |
sdram_freq=400 | |
over_voltage=0 |
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
pg() { | |
if [[ $@ == "log" ]]; then | |
command less /usr/local/var/postgres/default/server.log | |
elif [[ $@ == "start" || $@ == "stop" || $@ == "restart" ]]; then | |
command pg_ctl -D /usr/local/var/postgres/default -l /usr/local/var/postgres/default/server.log $@ | |
else | |
echo "Wrong pg command!" | |
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
#!/bin/sh | |
merge_branch=$1 | |
test -z $merge_branch && echo "branch required." 1>&2 && exit 1 | |
current_branch=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p') | |
git checkout $merge_branch | |
git checkout -b tmp | |
git merge -s ours $current_branch |
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 | |
export STRIKINLY_PROMPT="\e[0;36m[Strikingly]\e[0;00m" | |
strikingly_say() { | |
printf "${STRIKINLY_PROMPT} $*\n" | |
} | |
strikingly_say "Start deploying strikingly developing environment" | |
if [ ! -d $HOME/.strikingly/ ]; then |