Skip to content

Instantly share code, notes, and snippets.

View MaxwellDPS's full-sized avatar
🥔
P. O. T. A. T. O.

Max Watermolen MaxwellDPS

🥔
P. O. T. A. T. O.
View GitHub Profile
@MaxwellDPS
MaxwellDPS / sources.list
Created October 6, 2018 01:31
Ubuntu 18.04 Bionic default /etc/apt/sources.list
#deb cdrom:[Ubuntu 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426)]/ bionic main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
@MaxwellDPS
MaxwellDPS / readme.md
Last active May 18, 2024 05:00
Install OP25 wireshark 1.8.5 updated 2019

Extending Wireshark with OP25

The WireShark packet sniffer normally doesn't support APCO P25. If you want to sniff P25 traffic using WireShark then you'll need to patch the sources and rebuild it. Tested and working on ubuntu 16.04.5

Want it done the easy way? Works on ubuntu 16/18

sudo wget -O - https://gist.githubusercontent.com/MaxwellDPS/bab40419e80bb1d2f940d7923d1e40a2/raw/38233899ec49e0416c4c63d6b7e2a2a59d7e85de/install.sh | bash
diff -Naur a/configure.in b/configure.in
--- a/configure.in 2013-01-30 04:26:30.000000000 +1000
+++ b/configure.in 2013-01-31 21:49:06.000000000 +1000
@@ -2103,6 +2103,7 @@
plugins/m2m/Makefile
plugins/mate/Makefile
plugins/opcua/Makefile
+ plugins/p25/Makefile
plugins/profinet/Makefile
plugins/stats_tree/Makefile
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
apt install git bison flex libgtk2.0-dev libpcap-dev libtool-bin
mkdir ~/build
cd build
wget https://www.wireshark.org/download/src/all-versions/wireshark-1.8.5.tar.bz2
tar xjvf wireshark-1.8.5.tar.bz2
#!/bin/sh
ffmpeg -loglevel panic -i http://127.0.0.1:8000/test -f s16le -ac 1 -ar 22050 -acodec pcm_s16le - | multimon-ng -t raw -a EAS /dev/stdin
@MaxwellDPS
MaxwellDPS / push.sh
Created April 9, 2020 16:37
PUSH TO WX
#!/bin/sh
ORG=$1
MSG=$2
IDENT="KOAX" # YOUR LOCAL FORCAST OFFICE CODE ie KOAX for Omaha, Lincoln, NE area
cd /path/to/your/pagermon/client
echo "POCSAG1200: Address: $IDENT-$ORG0 Function: 0 Alpha: $MSG" | node /path/to/your/pagermon/client/reader.js
@MaxwellDPS
MaxwellDPS / config.json
Created April 9, 2020 16:38
PAGERMON CONFIG
{
"apikey": "",
"hostname": "https://wx.maxwelldps.com",
"identifier": "",
"sendFunctionCode": true,
"useTimestamp": true
}
@MaxwellDPS
MaxwellDPS / fanctl.sh
Created April 26, 2020 16:52 — forked from kaysond/fanctl.sh
Dell Poweredge R710 R720 Fan Noise Control Script
#!/usr/bin/env bash
#You'll need to enable IPMI over lan in idrac first
#iDRAC Settings -> Network -> IPMI Settings
#Channel Privilege Level Limit needs to be Administrator
#You may want to create a dedicated username/pass with IPMI permission in iDRAC Settings -> User Authentication
IPMIHOST=idracip
IPMIUSER=username
IPMIPW=password
IPMIEK=0000000000000000000000000000000000000000
@MaxwellDPS
MaxwellDPS / ufw.md
Created October 29, 2020 01:14 — forked from kimus/ufw.md
NAT and FORWARD with Ubuntu’s ufw firewall

UFW

I use Ubuntu’s Uncomplicated firewall because it is available on Ubuntu and it's very simple.

Install UFW

if ufw is not installed by default be sure to install it first.

@MaxwellDPS
MaxwellDPS / fipsToState.json
Last active November 14, 2020 16:32 — forked from wavded/fipsToState.json
State FIPS JSON
{
"01": "Alabama",
"02": "Alaska",
"04": "Arizona",
"05": "Arkansas",
"06": "California",
"08": "Colorado",
"09": "Connecticut",
"10": "Delaware",
"11": "District of Columbia",