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
| # Get the prolific driver http://www.prolific.com.tw/US/ShowProduct.aspx?p_id=229&pcid=41 | |
| screen /dev/tty.usbserial # will appear once plugged in. Use Ctrl-a d to exit |
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
| find . -type f -name "*.log" -exec rm {} \; |
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
| wget https://download.docker.com/mac/stable/Docker.dmg | |
| docker info | |
| docker images | |
| sudo docker run --name helloworld -i -t ubuntu /bin/bash | |
| docker images | |
| docker start helloworld | |
| docker ps | |
| sudo docker attach helloworld # hit enter to bring up the prompt | |
| docker rm helloworld |
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
| tcpdump -A -i eth0 -s 0 'tcp port 8080 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)' |
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
| # https://forecast-v3.weather.gov/documentation | |
| curl -ks "https://api.weather.gov/points/39.950859769264014,-105.03283499303978/forecast" |
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
| #include <SPI.h> | |
| #define NUMLEDS 75 | |
| #define LEDPIN 13 | |
| #define WRITEPIN 1 | |
| #define LED 0 | |
| uint8_t counter; | |
| uint8_t pixels[NUMLEDS*3]; |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <obprofiles xmlns="http://www.logitech.com/Cassandra/2013.1/OnboardProfile"> | |
| <profile name="Profile 1"> | |
| <device anglesnapping="0" powermode="2" reportrate="500" buttoncount="13" model="Logitech.Gaming.Mouse.G700s"> | |
| <dpitable currentindex="3" defaultindex="3"> | |
| <dpi x="400" y="400"/> | |
| <dpi x="800" y="800"/> | |
| <dpi x="1200" y="1200"/> | |
| <dpi x="1600" y="1600"/> | |
| <dpi x="3200" y="3200"/> |
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
| # run multiple websites from nginx | |
| # https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-virtual-hosts-server-blocks-on-ubuntu-12-04-lts--3 | |
| chgrp -R www-data /var/www | |
| sudo chmod 775 /var/www | |
| sudo mkdir -p /var/www/example.com/public_html | |
| sudo chown -R www-data:www-data /var/www/example.com/public_html | |
| sudo cp /etc/nginx/sites-available/default /etc/nginx/sites-available/example.com | |
| sudo vi /etc/nginx/sites-available/example.com | |
| sudo ln -s /etc/nginx/sites-available/example.com /etc/nginx/sites-enabled/example.com | |
| sudo rm /etc/nginx/sites-enabled/default |
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
| # Create an image (Ubuntu 16.04 LTS) and boot it up - see https://www.linode.com/docs/getting-started for help | |
| # ssh into it | |
| # install nginx - https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-16-04 | |
| sudo apt-get update | |
| sudo apt-get install zsh | |
| sudo apt-get install git | |
| sudo apt-get install nginx | |
| sudo ufw app list | |
| sudo ufw allow 'OpenSSH |
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 nah='git reset --hard; git clean -df' |