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
var table = $$('.emoji-card').map((el, i) => { | |
return { | |
emoji: el.firstChild.firstChild.innerHTML, | |
code: el.lastChild.firstChild.innerHTML, | |
description: el.lastChild.lastChild.innerHTML | |
}; | |
}).reduce((table, el, i) => { | |
var tr = document.createElement('tr'); | |
tr.innerHTML = '<td>' + el.emoji + '</td><td>' + el.code + '</td><td>' + el.description + '</td>'; | |
table.appendChild(tr); |
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
# EditorConfig is awesome: http://EditorConfig.org | |
# top-most EditorConfig file | |
root = true | |
# Unix-style newlines with a newline ending every file | |
[*] | |
end_of_line = lf | |
insert_final_newline = true |
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/env bash | |
COLOR_YELLOW(){ echo -en "\033[33m"; } | |
COLOR_RESET() { echo -en "\033[0m"; } | |
MAIN_BRANCH=${1:-master} | |
MAIN_REMOTE=${2:-origin} | |
label() { | |
echo -e "\033[33m$@\033[0m" >&2 |
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/env bash | |
_whack_a_mole_log=~/dotfiles/log/whack-a-mole.log | |
_whack_a_mole () { | |
printf $@: | |
while true | |
do | |
i=$(ps aux | grep $@ | grep -ve grep -ve whack-a-mole | awk '{print $2}') |
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/env bash | |
_log () { | |
echo $(date) $@ >> /var/log/sequelpro.log | |
} | |
for i do | |
case "$i" | |
in | |
-L\ *) |
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($){ | |
var map = { | |
pickup: 1, | |
driver: 2, | |
fare: 3, | |
car: 4, | |
city: 5, | |
payment_method: 6 | |
}; |
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/env bash | |
variable_name="$1" | |
shift | |
while read "$variable_name" | |
do | |
eval "$(echo "$@" | sed s/"$variable_name"/'"'\$"$variable_name"'"'/g)" | |
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
#!/usr/bin/env bash | |
function _usage() | |
{ | |
echo "$0 [php53|php54|php55|php56]" | |
} | |
function phpversion() | |
{ | |
local _VERSION=$1 |
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/env php | |
<?php | |
// if no arguments, take input from stdin | |
$argc < 2 && array_push($argv, file_get_contents("php://stdin")); | |
array_shift($argv); | |
$output = array(); |
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/env bash | |
# Set the following SSH configurations to no: | |
# ChallengeResponseAuthentication | |
# PasswordAuthentication | |
# UsePAM | |
test -f /etc/ssh/sshd_config || exit 1 | |
sed -i -r -e \ |