Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View JCJAT's full-sized avatar

John JCJAT

  • Bangkok, Thailand
View GitHub Profile
@JCJAT
JCJAT / allFileFolder.sh
Last active April 12, 2017 15:11
List all files and folders single file/folder per line linux
ls -Ra /path | awk '
/:$/&&f{s=$0;f=0}
/:$/&&!f{sub(/:$/,"");s=$0;f=1;next}
NF&&f{ print s"/"$0 }'
@JCJAT
JCJAT / 0_reuse_code.js
Created May 23, 2014 18:52
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console