Skip to content

Instantly share code, notes, and snippets.

View david-wm-sanders's full-sized avatar
🖋️
up late

David Sanders david-wm-sanders

🖋️
up late
View GitHub Profile
#!venv/bin/python3
"""Checks project for pycodestyle and pydocstyle infractions.
Usage:
pystyleproj.py [-c|-s|-r|-f] [-d] [-n] [-v]
Options:
-c Count infractions
-s Show source for infractions
-r Show source and remediation sample for infractions
@david-wm-sanders
david-wm-sanders / !!.fish
Created October 29, 2018 12:03
Re-run the last command with sudo in fish shell
function !!
eval sudo $history[1]
end
$files = Get-ChildItem -File | Where-Object{$_.Extension -match "(wma)$" } | Select-Object -ExpandProperty BaseName
$files | ForEach-Object{ffmpeg.exe -i "$_.wma" "$_.mp3"}
import csv
import subprocess
import sys
from datetime import timedelta
from pathlib import Path
ffmpeg_exe = Path("C:\\ffmpeg\\ffmpeg.exe")
field_headers = ["begin", "end", "text", "filename"]
import csv
import string
import sys
from collections import Counter
from pathlib import Path
from bs4 import BeautifulSoup
file_a, style_a = sys.argv[1], sys.argv[2]
cat countries | grep -E "\b\w{9}\b"
cat countries | grep -E "\b\w{9}\b" | grep -E "i"
python vol.py -f image.raw imageinfo
vol.py pslist -vf level1.vmem --profile=Win7SP1x86
vol.py cmdline -vf level1.vmem --profile=Win7SP1x86 | grep 'nut.exe'
vol.py dlllist -v -p 1360 -f level1.vmem --profile=Win7SP1x86
vol.py handles -v -p 2648 -f level1.vmem --profile=Win7SP1x86
tcpdump -vv -i interface
tcpdump -i eth1 -d 'ip'
tcpdump -vvv -XX -i eth1 -U
cat quotes | tr -d '[:punct:]' > nopunct
cat quotes | tr '[:lower:]' '[:upper:]' > upper
@david-wm-sanders
david-wm-sanders / hotkeys.xml
Last active August 26, 2020 04:33
rwr hotkeys
<hotkeys>
<hotkey index="0" text="Please accept my sincerest apologies :S" />
<hotkey index="1" text="Enemy reinforcements incoming! Take up cover!" />
<hotkey index="2" text="Enemy vehicle incoming! Ready your rockets!" />
<hotkey index="3" text="Enemy strike incoming! Spread out!" />
<hotkey index="4" text="My insides are outsides! Please help me by poking my insides back in!" />
<hotkey index="5" text="Thank you kindly sir :)" />
<hotkey index="6" text="Please rescue my rares :P" />
<hotkey index="7" text="Gunship inbound - let's all run in like gunsheep!" />
<hotkey index="8" text="Artillery strikes incoming - ignore the circle at your own peril!" />