Save yourself a few keystrokes. Follow the steps below:
-
Run this Bash script on your laptop:
#!/usr/bin/env bash
#!/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) |
<?php | |
$url = 'http://domain.foo'; | |
$uri = '/assets'; | |
$username = 'testyser'; | |
$password = 'somepassword'; | |
$method = 'GET'; | |
$ht = new HttpRequest($url.$uri, HttpRequest::METH_GET); | |
$ht->send(); |
#!/usr/bin/env bash | |
# Generate RSA private key | |
openssl genrsa -out private_key.pem 1024 |
# 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 |
#!/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 |
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!
aws acm us-east-1 list-certificates --query CertificateSummaryList[].[CertificateArn,DomainName] \ | |
--output text | grep example.com | cut -f1 |
#!/usr/bin/python3 | |
# script created for reading SMS messages from 3G modem connected to PC | |
# 1) it looks for modem | |
# 2) reads all SMS messages from modem | |
# 3) prints all found SMS messages to stdout only if total messages count | |
# greater than SMS_STORE_COUNT (default is 3) | |
# 4) save all but SMS_STORE_COUNT messages to txt files and | |
# delete them from modem |
#!/bin/sh | |
# Sends command 'ATI' to modem #3 | |
# Get a list of modems by running `mmcli -L` | |
# Timeout is (probably) 2 seconds | |
# Also see https://www.freedesktop.org/software/ModemManager/api/latest/gdbus-org.freedesktop.ModemManager1.Modem.html#gdbus-method-org-freedesktop-ModemManager1-Modem.Command | |
dbus-send --system --dest=org.freedesktop.ModemManager1 --print-reply /org/freedesktop/ModemManager1/Modem/3 org.freedesktop.ModemManager1.Modem.Command string:'ATI' uint32:2000 |