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 / tpng.py
Last active September 21, 2022 23:10
TrunkPlayer-NG basic upload script
#!/usr/bin/python3
# usage: tpng.py [-h] --json JSON --m4a M4A --token TOKEN --url URL
# Process some integers.
# optional arguments:
# -h, --help show this help message and exit
# --json JSON The json file to send
# --m4a M4A The M4A audio file
@MaxwellDPS
MaxwellDPS / installing_cuda_on_azure_nc_tesla_k80_ubuntu.md
Created January 14, 2022 21:19 — forked from genp/installing_cuda_on_azure_nc_tesla_k80_ubuntu.md
Installing NVIDIA CUDA on Azure NC with Tesla K80 and Ubuntu 16.04
@MaxwellDPS
MaxwellDPS / AzureSTT_Radio_audio.py
Created November 20, 2021 16:15
Transcribe Radio Audiofiles on Azure
import time, json
# try:
import azure.cognitiveservices.speech as speechsdk
import os, json
from shutil import move
AZURE_subscription_KEY=""
AZURE_region=""
@MaxwellDPS
MaxwellDPS / RadioDashboard.xml
Created November 18, 2021 02:50
RadioDashboard.xml
<form theme="dark">
<label>NE State Radio Metadata</label>
<fieldset submitButton="true" autoRun="false">
<input type="time" token="field1" searchWhenChanged="false">
<label></label>
<default>
<earliest>-24h@h</earliest>
<latest>now</latest>
</default>
</input>
@MaxwellDPS
MaxwellDPS / index.js
Last active November 24, 2021 15:08
Trunk-Recorder Status Server Splunk Bridge
process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = 0;
var express = require('express');
var app = express(),
http = require('http'),
server = http.createServer(app);
const WebSocket = require('ws');
const serverWss = new WebSocket.Server({
noServer: true
@MaxwellDPS
MaxwellDPS / pulse.py
Created September 21, 2021 23:18 — forked from Davnit/pulse.py
Decrypts and prints incident information from PulsePoint
import base64
import hashlib
import json
from urllib import request
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
from cryptography.hazmat.backends import default_backend
import bigjson,json, requests, re, xmltodict, time, ijson
from signal6.signal6.geo import COMPJson
from signal6.parseM import parseAlert
from signal6.models import alert
from urllib.request import urlopen
import traceback
# ['addresses', 'code', 'cogId', 'identifier', 'incidents', 'info', 'msgType', 'note', 'originalMessage', 'restriction', 'scope', 'sender', 'sent', 'source', 'status', 'xmlns', 'id']
class IPAWSIMPORT():
@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",
@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 / 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