Skip to content

Instantly share code, notes, and snippets.

View SuggonM's full-sized avatar
🐢
shut-in

Sagun SuggonM

🐢
shut-in
View GitHub Profile
@arjunv
arjunv / keyevents.json
Created December 2, 2018 00:01
All Android Key Events for usage with adb shell
{
"key_events": {
"key_unknown": "adb shell input keyevent 0",
"key_soft_left": "adb shell input keyevent 1",
"key_soft_right": "adb shell input keyevent 2",
"key_home": "adb shell input keyevent 3",
"key_back": "adb shell input keyevent 4",
"key_call": "adb shell input keyevent 5",
"key_endcall": "adb shell input keyevent 6",
"key_0": "adb shell input keyevent 7",
@niun
niun / set-pretty-git-log-alias.sh
Last active May 11, 2026 14:54
git log graph --oneline with date and author and colored ref names as alias
## One line per log entry with merge graph
## (--decorate is implicit for newer git versions?):
#git log --graph --oneline --decorate
## |
## Add --branches --remotes --tags --merges to see entries for all of the
## corresponding refs, not only commits (--all for all refs).
## Format output with --pretty=tformat:'<format>'
## Interesting placeholders for oneline <format>:
@lotsofcode
lotsofcode / prepend-child.js
Created July 31, 2014 14:30
JavaScript implementation of "prependChild"
Element.prototype.prependChild = function(newElement) {
return this.insertBefore(newElement, this.firstChild);
};