Skip to content

Instantly share code, notes, and snippets.

View xen0bit's full-sized avatar

Remy xen0bit

View GitHub Profile
@xen0bit
xen0bit / example.js
Created November 26, 2020 15:02
graph api multiple users
const options = {
authProvider,
};
const client = Client.init(options);
//Despite "supporting" id's for requests, I seem to remember them being required last time I tried it?
const batchCreateUsers = {
"requests": [{
@xen0bit
xen0bit / gist:510a2b99db194403cfd2cc498e70d472
Last active August 31, 2020 21:08
Openssl Bash Profile Functions
getcert() {
#Pull and parse certificate
echo "Q" | openssl s_client -showcerts -connect "$1":443 | openssl x509 -text
}
getcertsans() {
#getcertsans example.com
echo "Q" | openssl s_client -showcerts -connect "$1":443 | openssl x509 -text | grep "DNS:" | sed -e 's/DNS://g' | sed -e 's/, /\n/g' | sed -e 's/ //g'
}
/usr/bin/autossh -M 0 -N \
-o "ServerAliveInterval 15" -o "ServerAliveCountMax 3" -o "ConnectTimeout 10" -o "ExitOnForwardFailure yes" \
-i /home/user/.ssh/id_rsa -p 22 user@VPS-IP-Address \
-R 8080:localhost:8080
allowtcpforwarding yes
AuthorizedKeysFile .ssh/authorized_keys
PubkeyAuthentication yes
frontend web-frontend-80
bind *:80
mode http
default_backend web-backend-80
backend web-backend-80
server sshtunnel-0 127.0.0.1:8080 check
│ sf2jira.ps1
├───0remap
│ 7z.exe
│ applyMappings.py
│ genCasenumber2jirakey.py
│ genIssueKeyMapping.py
│ genNameMapping.py
│ genProjectMapping.py
echo OFF
echo 'Starting sf2jira...'
echo 'Copying master.csv to step 0...'
#copy /Y master.csv .\0remap\master.csv
Copy-Item ".\master.csv" -Destination ".\0remap"
echo 'Stepping into /0remap...'
cd 0remap
echo 'Starting mapping of Projects...'
python genProjectMapping.py
echo 'Starting mapping of Issue Keys...'