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
192.168.1.1 | |
10.0.0.1 | |
172.16.254.1 | |
224.0.0.1 | |
127.0.0.1 | |
8.8.8.8 | |
255.255.255.255 | |
1.2.3.4 | |
192.0.2.123 | |
203.0.113.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
#!/usr/bin/env bash | |
header_info='CTRL+D or ESCAPE to exit, ENTER attaches to a Detached screen' | |
export FZF_DEFAULT_OPTS="--header '${header_info}' --preview 'screen_peek {1}' --preview-window top,80%,follow" | |
function screen_peek() | |
{ | |
local screen=$1 | |
local pipe="$(mktemp -u)" | |
mkfifo "${pipe}" | |
screen -S "${screen}" -X hardcopy "${pipe}" | |
cat "${pipe}" | sed -e '/./,$!d' -e :a -e '/^\n*$/{$d;N;};/\n$/ba' |
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 | |
period=$1 | |
shift | |
for file in $@; do | |
timeshift=$(date -d"-${period} minutes" +%s); | |
while read -u3 date time line; do | |
epoch_timestamp=$(date -d"${date} ${time}" +%s); | |
if [[ ${timeshift} -lt ${epoch_timestamp} ]]; then | |
echo "${date} ${time} ${line}"; | |
else |
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
curl -s https://launchermeta.mojang.com/mc/game/version_manifest.json | sed -E -e 's/.*("versions".*[^\]]).*/\1/g' -e 's/},/},\ | |
/g' | awk -F\" '{print $4,$8,$20}' | column -t | |
id type url | |
17w15a snapshot https://launchermeta.mojang.com/mc/game/369f3dabee7485e12aae81e971487bac3da2d6e6/17w15a.json | |
17w14a snapshot https://launchermeta.mojang.com/mc/game/0536ebf96543b0a0212a89d2a97600c9f263c7bf/17w14a.json | |
17w13b snapshot https://launchermeta.mojang.com/mc/game/ba59e4831cfa0afc2fba4658f6d86d5599cfaa9c/17w13b.json | |
17w06a snapshot https://launchermeta.mojang.com/mc/game/7db0c61afa278d016cf1dae2fba0146edfbf2f8e/17w06a.json | |
1.11.2 release https://launchermeta.mojang.com/mc/game/12f260fc1976f6dd688a211f1a906f956344abdd/1.11.2.json | |
1.11.1 release https://launchermeta.mojang.com/mc/game/4fce28e8455640c8e1061f40c2be4bec4631a5ff/1.11.1.json | |
16w50a snapshot https://launchermeta.mojang.com/mc/game/e913d0001d077f341a5c71754ad7766c552e875e/16w50a |
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
wget https://getcomposer.org/composer.phar -O ${HOME}/composer.phar | |
chmod +x ${HOME}/composer.phar | |
echo "alias composer=\"/usr/local/php56/bin/php-cli ${HOME}/composer.phar \"" >> ${HOME}/.bashrc | |
source ${HOME}/.bashrc | |
composer --version |