Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:cap="urn:oasis:names:tc:emergency:cap:1.2">
<id>https://api.weather.gov/alerts.atom?active=true&amp;area%5B0%5D=NJ&amp;limit=500</id>
<generator>NWS CAP Server</generator>
<updated>2023-07-08T23:15:00+00:00</updated>
<author>
<name>w-nws.webmaster@noaa.gov</name>
</author>
<title>Current watches, warnings, and advisories for New Jersey</title>
<link rel="self" href="https://api.weather.gov/alerts.atom?active=true&amp;area%5B0%5D=NJ&amp;limit=500"/>
from scapy.all import PcapReader, Raw
pcap = PcapReader("test.pcap")
f = open("test.mpg", "wb")
for packet in pcap:
f.write(bytes(packet.getlayer(Raw)))
f.close()
@ieaster1
ieaster1 / igmp.py
Created February 3, 2020 13:45
Output human readable IGMP Groups from /proc/net/igmp
import re
regex = re.compile(r'[0-9A-F]{8}', flags=re.MULTILINE | re.IGNORECASE)
def readable(s):
addr = ''
for i in range(0, len(s.group()), 2):
chunk = str(int(s.group()[i:i+2], 16))
addr = chunk + '.' + addr
return addr.rstrip('.')
@ieaster1
ieaster1 / chrome-cli-cmd-on-mac.md
Last active October 18, 2019 15:22
Run Chrome instance for a SOCKS Proxy from Terminal on a Mac
sudo /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --proxy-server="socks5://localhost:5555" --host-resolver-rules="MAP * 0.0.0.0 , EXCLUDE localhost"
deb http://archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
# deb http://archive.ubuntu.com/ubuntu/ trusty-proposed main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu trusty-security main restricted universe multiverse
# deb-src http://security.ubuntu.com/ubuntu precise-security main restricted universe multiverse