Ctrl + P - Quick Selection
Ctrl K, Ctrl C - comment Ctrl K, Ctrl U - uncomment
Shift + Up/Down - highlight
Ctrl + Tab - last file
{ | |
"window.zoomLevel": 1, | |
"files.autoSave": "off", | |
"editor.tabSize": 2, | |
"workbench.colorTheme": "Material Theme", | |
"workbench.iconTheme": "material-icon-theme", | |
"editor.multiCursorModifier": "ctrlCmd", | |
"editor.formatOnSave": true, | |
"eslint.autoFixOnSave": true, | |
"eslint.alwaysShowStatus": true |
#!bin/bash | |
sudo apt-get update && sudo apt-get upgrade | |
sudo apt-get install curl nmap git | |
// Disable the synatic pad (12 is where the pinpoint is, leave that on) | |
xinput --disable 11 | |
// Install NVM for node | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash |
func init() { | |
rand.Seed(time.Now().UnixNano()) | |
} | |
var letterRunes = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ") | |
func RandStringRunes(n int) string { | |
b := make([]rune, n) | |
for i := range b { | |
b[i] = letterRunes[rand.Intn(len(letterRunes))] |
#!/bin/bash | |
for i in */.git; do ( echo $i; cd $i/..; git pull; ); done |
Root phone. | |
Enable "Developer Options". If not, Go to "Settings" -> "About phone", scroll down to "Build number" and tap it quickly 7 times. This should cause a new menu item in the "Settings" menu titled, "Developer options" | |
Open "Settings" -> "Developer options" and under "Debugging", enable "USB debugging". | |
Connect phone to computer via USB. | |
Open a command prompt on the computer and run adb devices to see if your phone is recognized. | |
If so, run adb shell | |
Next type: su -c 'setprop sys.usb.config diag,adb' | |
You should have DIAG mode access to run QPST/QXDM/etc. until the next power cycle. |
Running elasticsearch on windows - docker | |
docker run -d -v "esdata":/usr/share/elasticsearch/data --name elasticsearch -p 9200:9200 -p 9300:9300 elasticsearch | |
Running Kibana and linking it to elasticsearch (Windows) | |
docker run --link elasticsearch:elasticsearch -p 5601:5601 -d kibana | |
Removing Docker containers | |
docker rm -f <container-name> |
#!/bin/bash | |
curl --silent --location https://rpm.nodesource.com/setup_6.x | bash - | |
yum -y install nodejs | |
# For any native addons that requires building | |
yum install gcc-c++ make |
#!/usr/bin/python | |
# | |
# This is the relay script mentioned in http://blog.zorinaq.com/?e=81 | |
# | |
# Listens on the address and port specified by --local-ip and --local-port, and | |
# relay all connections to the endpoint specified by --remote-hosts and | |
# --remote-port. Multiple remote hosts can be specified: one will be selected | |
# randomly for each connection. | |
# | |
# Optionally, if --mode 1:<secret> is specified, insert the secret key as the |