Skip to content

Instantly share code, notes, and snippets.

@ELLIOTTCABLE
ELLIOTTCABLE / gist:3a945b04ed8170d710ac
Created February 10, 2015 15:55
POSIX-compatible shell-script truthiness-checking cheat-sheet with-a hyphenated-title
[ -n "${VAR##[NFnf]*}" ] && echo '$VAR must be truthy (but will be considered falsey by default, if empty)'
[ -z "${VAR##[YTyt]*}" ] && echo '$VAR must be truthy (and will be by default, if empty)'
[ -z "${VAR##[NFnf]*}" ] && echo '$VAR must be falsey (and will be by default, if empty)'
[ -n "${VAR##[YTyt]*}" ] && echo '$VAR must be falsey (but will be considered truthy by default, if empty)'
@tracker1
tracker1 / 01-directory-structure.md
Last active March 4, 2025 21:23
Anatomy of a JavaScript/Node project.

Directory structure for JavaScript/Node Projects

While the following structure is not an absolute requirement or enforced by the tools, it is a recommendation based on what the JavaScript and in particular Node community at large have been following by convention.

Beyond a suggested structure, no tooling recommendations, or sub-module structure is outlined here.

Directories

  • lib/ is intended for code that can run as-is
  • src/ is intended for code that needs to be manipulated before it can be used
@Mayeu
Mayeu / keybatch.sh
Created January 23, 2014 09:19
(dirty dirty dirty) Vanity GPGkey generator. Lancer keygen.pl avec le nombre de gpg --gen-key à lancer en parallèle
gpg --gen-key --batch <<EOF
Key-Type: RSA
Key-Length: 4096
Subkey-Type: RSA
Subkey-Length: 4096
Name-Real: <ton_nom>
Name-Email: <ton_mail>
Expire-Date: 0
Passphrase: <ta_passphrase>
%pubring foo${1}.pub
@rxaviers
rxaviers / gist:7360908
Last active March 13, 2025 22:57
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
[Rooted]
$ cd /var/tmp; wget http://dl.google.com/android/android-sdk_r15-linux.tgz;tar xvfz android-sdk_r15-linux.tgz; cd /var/tmp/android-sdk-linux ; ls
add-ons platforms samples system-images tools
docs platform-tools SDK Readme.txt temp
$ cd platform-tools; ls;
aapt aidl dx llvm-rs-cc renderscript
adb dexdump lib NOTICE.txt source.properties
$ lsusb # connect Android in the USB, check its found or not