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
| #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
| # 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
| 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
| 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
| 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
| # 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
| tcpdump -i eno1 -T snmp -n dst portrange 161-162 | |
| # output looks like this for an ios router linkup | |
| # 11:47:50.905818 IP 10.10.201.27.56503 > 10.10.202.11.162: V2Trap(138) .1.3.6.1.2.1.1.3.0=791308 .1.3.6.1.6.3.1.1.4.1.0=.1.3.6.1.6.3.1.1.5.4 .1.3.6.1.2.1.2.2.1.1.1=1 .1.3.6.1.2.1.2.2.1.2.1="FastEthernet0/0" .1.3.6.1.2.1.2.2.1.3.1=6 .1.3.6.1.4.1.9.2.2.1.1.20.1="up" | |
| # in ios you can see how many snmp traps, the address its sending to and the port | |
| # router4#show snmp | |
| # Chassis: FTX151202SZ | |
| # 0 SNMP packets input | |
| # 0 Bad SNMP version errors | |
| # 0 Unknown community name |
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
| # List them all | |
| sudo iptables -v -t nat -L -n --line-numbers | |
| # Create one in the nat table | |
| sudo iptables -t nat -A POSTROUTING --source 172.17.0.3 --destination 172.17.0.3 -p udp -j MASQUERADE | |
| # Delete one in the nat table | |
| sudo iptables -t nat -D POSTROUTING 12 | |
| sudo iptables -t nat -D DOCKER 2 |
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
| snmptrap -v 2c -c public localhost '' 1.3.6.1.4.1.8072.2.3.0.1 1.3.6.1.4.1.8072.2.3.2.1 i 123456 |