This file contains 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
#!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 |
This file contains 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
function !! | |
eval sudo $history[1] | |
end |
This file contains 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
$files = Get-ChildItem -File | Where-Object{$_.Extension -match "(wma)$" } | Select-Object -ExpandProperty BaseName | |
$files | ForEach-Object{ffmpeg.exe -i "$_.wma" "$_.mp3"} |
This file contains 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
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"] |
This file contains 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
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] |
This file contains 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
cat countries | grep -E "\b\w{9}\b" | |
cat countries | grep -E "\b\w{9}\b" | grep -E "i" |
This file contains 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
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 |
This file contains 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 -vv -i interface | |
tcpdump -i eth1 -d 'ip' | |
tcpdump -vvv -XX -i eth1 -U |
This file contains 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
cat quotes | tr -d '[:punct:]' > nopunct | |
cat quotes | tr '[:lower:]' '[:upper:]' > upper |
This file contains 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
<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!" /> |