OBD Protocol IDs and Names
ID | Name |
---|---|
1 | SAE J1850 PWM |
2 | SAE J1850 VPW |
3 | AUTO, ISO 9141-2 |
4 | ISO 14230-4 (KWP 5BAUD) |
brew home $1 2> /dev/null || brew cask home $1 |
OBD Protocol IDs and Names
ID | Name |
---|---|
1 | SAE J1850 PWM |
2 | SAE J1850 VPW |
3 | AUTO, ISO 9141-2 |
4 | ISO 14230-4 (KWP 5BAUD) |
#!/bin/sh | |
sudo yum -y install autoconf automake gcc gcc-c++ make boost-devel zlib-devel ncurses-devel protobuf-devel openssl-devel | |
cd /usr/local/src | |
sudo wget http://mosh.mit.edu/mosh-1.3.2.tar.gz | |
sudo tar xvf mosh-1.2.4.tar.gz | |
cd mosh-1.2.4 | |
sudo ./autogen.sh | |
sudo ./configure | |
sudo make |
#!/bin/bash | |
hostname=$(HOSTNAME | sed 's/.local//g' | sed 's/.gateway//g' ) | |
# if hostname is >35 characters, truncates to make it fit on std. 80 window | |
if [ ${#HOSTNAME} -gt 35 ] | |
then | |
hostname=${HOSTNAME:0:35} | |
fi |
system_profiler SPDisplaysDataType | grep Resolution |
networksetup -listallhardwareports |
#!/bin/bash | |
mem=$(sysctl -n hw.memsize) | |
mem="$((mem/1073741274)) GB" | |
echo $mem |
stat -f %OLp <any accessible file> |
#!/bin/bash | |
model=$(system_profiler SPHardwareDataType | awk '/Model Identifier/ { print $3 }') | |
# use grep to find the model in the list, then delete from ) to end of line | |
modelname=`grep $model $DIR/Models.txt | sed -e 's/).*/)/g'` | |
echo $modelname |