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
| #!/bin/bash | |
| PROXY_STATE=${1:-on} | |
| PROXY_HOST=<host> | |
| PROXY_PORT=<port> | |
| #export HTTP_PROXY=http://$PROXY_HOST:$PROXY_PORT | |
| #export HTTPS_PROXY=$HTTP_PROXY |
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
| #!/bin/bash | |
| ifconfig lo0 alias 127.0.1.1 | |
| ifconfig lo0 alias 127.0.10.1 | |
| # clear rules | |
| pfctl -F all -f /etc/pf.conf | |
| # set rules | |
| echo " |
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
| [ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion | |
| GIT_PS1_SHOWDIRTYSTATE=true | |
| PS1='\[\033[1;32m\]\u \[\033[0;36m\]\w\[\033[1;33m\]$(__git_ps1)\n\[\033[0m\]$ ' | |
| export CLICOLOR=1 | |
| export GREP_OPTIONS="--color=auto" | |
| export GREP_COLOR="1;32" | |
| alias ls='ls -GFh' | |
| eval "$(pyenv init -)" |
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
| sudo apt-get -y install python python-setuptools | |
| sudo easy_install pip |
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
| const fs = require('fs'); | |
| const content = fs.readFileSync('./data.csv', 'utf8'); | |
| const messages = content | |
| .split('\n') | |
| .map(line => line.trim()) | |
| .filter(line => line.length > 0 && line !== 'time,addr,bus,data') | |
| .map(line => line.split(',')) | |
| .map(msg => ({ | |
| addr: parseInt(msg[1]), |
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
| #!/usr/bin/env python | |
| import sys | |
| import time | |
| import struct | |
| from panda import Panda | |
| DEBUG = False | |
| def main(): | |
| logfile = sys.argv[1] |
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
| #!/usr/bin/env python | |
| # plug in grey panda | |
| # open Lefebure NTRIP Client android app | |
| # configure it: | |
| # - Receiver Settings -> External via TCP/IP (enter the IP of the machine running this script and port 3001) | |
| # - Receiver Settings -> GPS Mock Locations (check checkbox) | |
| # - NTRIP Settings -> Caster IP/Port/Username Password for your local RTK network | |
| # - NTRIP Settings -> Data Stream needs to be an RTCM3 source | |
| # go into android developer settings and select the Lefebure NTRIP Client app to use for mock locations |
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
| TZ=America/Los_Angeles date -d @1524291778 |
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
| sudo apt install virtualbox virtualbox-ext-pack |
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
| #!/bin/bash | |
| set -e | |
| LOGIN=<USER> | |
| NEWUID=<NEWUID> | |
| NEWGID=<NEWGID> | |
| OLDUID=<OLDUID> | |
| OLDGID=<OLDGID> | |
| usermod -u $NEWUID $LOGIN |