Skip to content

Instantly share code, notes, and snippets.

[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
@rxaviers
rxaviers / gist:7360908
Last active July 27, 2024 17:59
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:
@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
@tracker1
tracker1 / 01-directory-structure.md
Last active July 25, 2024 14:04
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
@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)'
@AdamISZ
AdamISZ / tlsn-notarization-file-format.md
Last active April 3, 2023 20:27
TLSNotary notarization file format

Data format: binary. Default file extension: '.tlsn'

Contents

Field description (size in bytes) code in Python version
Header (29) 'tlsnotary notarization file\n\n'
call NERDTreeAddKeyMap({'key': 't', 'callback': 'NERDTreeMyOpenInTab', 'scope': 'FileNode', 'override': 1 })
function NERDTreeMyOpenInTab(node)
call a:node.open({'reuse': "all", 'where': 't'})
endfunction
@ChaunceyHoover
ChaunceyHoover / sleep.lua
Last active January 26, 2023 16:17
Lua asynchronous and synchronous sleeping
function sleep(time, func, ...)
local now = os.time()
local thread = coroutine.create(func)
repeat until (os.time() - now > time)
coroutine.resume(thread, ...)
end
function asleep(time, func, ...)
coroutine.wrap(function()
local now = os.time()
@pbnj
pbnj / index.js
Last active September 13, 2018 20:41
Demo Command-Line Interface (CLI) Application
#!/usr/bin/env node
'use strict';
/**
* Require dependencies
*
*/
const program = require('commander'),
chalk = require("chalk"),
exec = require('child_process').exec,
pkg = require('./package.json');
@chriseth
chriseth / evm.js
Created March 29, 2016 14:52
EVM in EVM
contract EVM {
struct VMState {
uint[1024] stack;
uint stackHeight;
bytes bytecode;
uint pc;
uint[] mem;
}
function step(VMState _state) internal returns (bool)
{