/* __ __ ___
* /\ \__/\ \__/\_ \
* ___ __ __ __ __ _ __ ____ __\ \ ,_\ \ ,_\//\ \ __
* /' _ `\ /'__`\/\ \/\ \ /'__`\/\`'__\ /',__\ /'__`\ \ \/\ \ \/ \ \ \ /'__`\
* /\ \/\ \/\ __/\ \ \_/ |/\ __/\ \ \/ /\__, `\/\ __/\ \ \_\ \ \_ \_\ \_/\ __/
* \ \_\ \_\ \____\\ \___/ \ \____\\ \_\ \/\____/\ \____\\ \__\\ \__\/\____\ \____\
* \/_/\/_/\/____/ \/__/ \/____/ \/_/ \/___/ \/____/ \/__/ \/__/\/____/\/____/
*/
This file contains hidden or 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
Verifying that "matheuseduardo.id" is my Blockstack ID. https://onename.com/matheuseduardo |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
.counter span { | |
float:left; | |
width:22px; |
This file contains hidden or 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
keep() { | |
# check arguments | |
if [ $# -ne 1 ]; | |
then | |
echo -e "Wrong arguments specified. Usage:\nkeep /tmp/test.md\ncat /tmp/test.md | keep test.md" | |
return 1 | |
fi | |
# get temporary filename, output is written to this file so show progress can be showed | |
tmpfile="$( mktemp -t keepXXX )" |
This file contains hidden or 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
alias.lg log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | |
alias.alias config --get-regexp ^alias\. |
This file contains hidden or 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 off | |
:: list all packages (-3 = only thidy parts) | |
adb shell 'pm list packages -3 > /sdcard/packages.txt'; | |
:: get file | |
adb pull -p "/sdcard/packages.txt" "packages.txt"; |
This file contains hidden or 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
# Toggle Airplane Mode | |
# http://stackoverflow.com/questions/10506591/turning-airplane-mode-on-via-adb | |
am start -a android.settings.AIRPLANE_MODE_SETTINGS && input keyevent 19 && input keyevent 23 && input keyevent 4 | |
# Turn on: | |
adb shell settings put global airplane_mode_on 1 | |
adb shell am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true |
This file contains hidden or 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
*~ | |
*.bak | |
build | |
.buildpath | |
compass | |
_compass.scss | |
composer.lock | |
desktop.ini | |
.DS_Store | |
.idea |
This file contains hidden or 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
var type = (function (global) { | |
var cache = {}; | |
return function (obj) { | |
var key; | |
return obj === null ? 'null' // null | |
: obj === global ? 'global' // window in browser or global in nodejs | |
: (key = typeof obj) !== 'object' ? key // basic: string, boolean, number, undefined, function | |
: obj.nodeType ? 'object' // DOM element | |
: cache[key = ({}).toString.call(obj)] // cached. date, regexp, error, object, array, math | |
|| (cache[key] = key.slice(8, -1)); // get XXXX from [object XXXX], and cache it |
This file contains hidden or 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
# EXTRACTED FROM http://www.cyberciti.biz/tips/bash-aliases-mac-centos-linux-unix.html | |
#rev. 1 - list all aliases (no check, no format, no validation) | |
# if user is not root, pass all commands via sudo # | |
if [ $UID -ne 0 ]; then | |
alias reboot='sudo reboot' | |
alias update='sudo apt-get upgrade' | |
fi |