-
Find the Discord channel in which you would like to send commits and other updates
-
In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe!
This file contains hidden or 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/sh | |
| # | |
| # /etc/NetworkManager/dispatcher.d/05-batman | |
| ESSID="Igloo mesh" | |
| IFACE="wlp2s0" | |
| ADDR="01:23:45:67:89:AB" | |
| function current { | |
| nmcli -t -f GENERAL.CONNECTION d show $IFACE | cut -d\: -f2 |
This file contains hidden or 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
| # Pure python reimplementation of .cpio.xz content extraction from pbzx file payload originally here: | |
| # http://www.tonymacx86.com/general-help/135458-pbzx-stream-parser.html | |
| # | |
| # Cleaned up C version (as the basis for my code) here, thanks to Pepijn Bruienne / @bruienne | |
| # https://gist.github.com/bruienne/029494bbcfb358098b41 | |
| # Example usage: | |
| # parse_pbzx('PayloadJava', 'PayloadJava.cpio.xz') | |
| # Updated for speeeeeeeeeeeeed |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # Generate RSA private key | |
| openssl genrsa -out private_key.pem 1024 |
This file contains hidden or 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
| <?php | |
| $url = 'http://domain.foo'; | |
| $uri = '/assets'; | |
| $username = 'testyser'; | |
| $password = 'somepassword'; | |
| $method = 'GET'; | |
| $ht = new HttpRequest($url.$uri, HttpRequest::METH_GET); | |
| $ht->send(); |
This file contains hidden or 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
| #!/usr/bin/env python | |
| import sys | |
| import time | |
| import signal | |
| from subprocess import Popen, PIPE | |
| dd = Popen(['dd'] + sys.argv[1:], stderr=PIPE) | |
| while dd.poll() is None: | |
| time.sleep(.3) | |
| dd.send_signal(signal.SIGUSR1) |
NewerOlder

