Description | Command |
---|---|
Start a new session with session name | screen -S <session_name> |
List running sessions / screens | screen -ls |
Attach to a running session | screen -x |
Attach to a running session with name | screen -r |
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
prettyJson = (obj) => { | |
return JSON.stringify(obj, null, 2); | |
}; | |
log(obj, name = "", color = null, table = false) { | |
if (table) { | |
console.log(`%c${name}`, `color: ${color || "unset"}`); | |
console.table(obj); | |
return; | |
} | |
console.log(`%c${name}`, `color: ${color || "unset"}`, this.prettyJson(obj)); |
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
# https://developers.google.com/speed/webp/faq#how_can_i_convert_my_personal_images_files_to_webp | |
# convert all jpeg files in a directory | |
for F in *.jpg; do cwebp $F -o `basename ${F%.jpg}`.webp; done | |
# decode all webp files in a directory to png | |
for F in *.webp; do dwebp $F -o `basename ${F%.webp}`.png; done |
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
mkdir -p {Devrim,Dominique,Frank,Görkem,Henrik,Jens,Jürgen,Kevin,Rosanna,Selim} |
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
echo "done" |
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
# a primitive alias function to start a local php server | |
# add this function to ~/.bash_profile and restart terminal | |
# $ stphpserverhere or $ stp[tab] | |
# no arguments starts the server at the current directory (pwd) | |
# stphpserverhere 0 > starts the server at the default root | |
# stphpserverhere ~/Documents/anotherDir starts the server at anotherDir. | |
stphpserverhere() { | |
serverroot=$(pwd) | |
echo $serverroot |
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
/Users/YOU/Music/iTunes/iTunes Media/Music/ARTIST_FOLDER | |
/Users/YOU/Music/iTunes/iTunes Media/Music/ANOTHER_ARTIST_FOLDER |
I hereby claim:
- I am selimhex on github.
- I am selimhex (https://keybase.io/selimhex) on keybase.
- I have a public key ASAOFXE0LJB8XPLqrrEwd7dMHWu_JoYhdBE1v7w3bCP83wo
To claim this, I am signing this object: