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
#!/bin/bash | |
# Setup | |
## Create the .config and .credentials file on the NAS storage E.G. /root/.aws | |
## The path will be mounted at the point you run the container so that the AWS CLI can use the credentials | |
# Always use the latest CLI | |
docker pull amazon/aws-cli:latest | |
# Examples |
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 sys | |
with open("test.pdf", "rb") as f: | |
pdf = f.read() | |
startmark = b"\xff\xd8" | |
startfix = 0 | |
endmark = b"\xff\xd9" | |
endfix = 2 | |
i = 0 |
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
/** | |
* Add four days to the given date | |
*/ | |
function add_days(a_date) { | |
a_date.setDate(a_date.getDate() + 4) | |
return a_date | |
} | |
/** | |
* The onOpen function runs automatically when the Google Docs document is |
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
# Python3 compatible version | |
# Usage: findelevate.py C:\Windows\System32\ | |
# Needs sigcheck.exe in path [https://technet.microsoft.com/en-us/sysinternals/bb897441.aspx] | |
import sys | |
import os | |
import glob | |
import subprocess | |
if len(sys.argv) < 2: |