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
# gcloud auth activate-service-account --key-file=85.json | |
# gcloud projects list | |
project="my-project" | |
space="" | |
echo "gcloud auth list" | |
gcloud auth list | |
echo -e "$space" |
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
#!/bin/bash | |
COUNTER=0 | |
trap '{ echo "Hey, you pressed Ctrl-C. Loop Counter: $COUNTER Time to quit." ; exit 1; }' INT | |
#./go-ethereum/build/bin/geth --bootnodes enode://f4642fa65af50cfdea8fa7414a5def7bb7991478b768e296f5e4a54e8b995de102e0ceae2e826f293c481b5325f89be6d207b003382e18a8ecba66fbaf6416c0@33.4.2.1:30303 --rpc | |
#Libs used for keccak-256sum | |
#https://github.com/maandree/libkeccak.git |
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
" VIM Configuration | |
" SJ - 7 Feb 2017 | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" => General | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Cancel the compatibility with Vi. Essential if you want | |
" to enjoy the features of Vim | |
set nocompatible |
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
#!/bin/bash | |
function pause(){ | |
read -p "$*" | |
} | |
RED='\033[0;31m' | |
NC='\033[0m' # NOCOLOR | |
YELLOW='\033[0;33m' | |
function HexToDotted (){ |
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
#!/bin/bash | |
# You Will need to install iStats | |
# gem install istats | |
echo && echo ———————-System Information:——————— && | |
/bin/echo -n "Uptime: " && uptime | awk '{print $3}' | |
echo | |
/bin/echo -n "CPU Usage: " && top -l 1 | awk '/CPU usage/ {print $3}' | |
/bin/echo -n "CPU Temp: " && istats | grep CPU\ temp | awk '{print $3}' | |
/bin/echo -n "FAN Speed: " && istats | grep Fan\ 0\ speed: | awk '{print $4,$5}' |
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 | |
function runMigration() { | |
foreach (getUsers() as $user) { | |
$hash = $user->hash; | |
list ($oldhash, $oldsalt) = explode(':', $hash, 2); | |
$newHash = password_migrate_create($oldhash, $oldsalt, PASSWORD_BCRYPT); | |
$user->hash = $newHash; | |
saveUser($user); | |
} |
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
$ git config --global core.excludesfile ~/.gitignore | |
$ echo .DS_Store >> ~/.gitignore |