View vscode_settings.json
// Place your settings in this file to overwrite the default settings
{
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/.DS_Store": true,
"**/.build": true
}
,
View vscode_shortcuts.json
// Place your key bindings in this file to overwrite the defaults
[
{ "key": "shift+cmd+o", "command": "workbench.action.quickOpen" }
]
View subtree.js
var _ = require('underscore');
var BigNumber = require('bignumber.js');
/////// tree //////////
function Node(data, weight) {
this.data = data;
this.weight = weight;
this.parent = null;
this.children = [];
View removeNode.sh
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.*
# download new version of node from https://nodejs.org/en/download/releases/ and install
View MotoE.sh
adb shell
settings put global preferred_network_mode 9
settings put global preferred_network_mode1 9
settings put global preferred_network_mode2 9
reboot
/*
* Name : T-Mobile LTE
* APN: fast.t-mobile.com
* MMSC: http://mms.msg.eng.t-mobile.com/mms/wapenc
View git_autocomplete.sh
curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash
# add following to .bash_profile
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi
View metadata.proto
package spotify.metadata.proto;
option optimize_for = SPEED;
option java_package = "com.spotify.metadata.proto";
option java_outer_classname = "Metadata";
message TopTracks {
optional string country = 1;
repeated Track track = 2;
}
View .gitconfig
[user]
name = Chris Villarreal
email = chrisvillarreal1018@gmail.com
[alias]
st = status
br = branch
co = checkout
ci = commit
up = rebase
one = log --oneline --decorate
View .bash_profile
# directory name in terminal tab
function tab_title {
echo -n -e "\033]0;${PWD##*/}\007"
}
PROMPT_COMMAND="tab_title ; $PROMPT_COMMAND"
# get current branch in git repo
function parse_git_branch() {
BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'`
if [ ! "${BRANCH}" == "" ]
View SMS to crash iPhone messages
"effective.
Power
لُلُصّبُلُلصّبُررً ॣ ॣh ॣ ॣ
冗"