I hereby claim:
- I am obscurerichard on github.
- I am obscurerichard (https://keybase.io/obscurerichard) on keybase.
- I have a public key ASB1c7Ck0_HTF78ALj2EDoVX6sEBDj9xs37Be3p4pdXqjgo
To claim this, I am signing this object:
#!/usr/bin/env bash | |
# Adapted from https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity | |
# example code within which appears to be CC0 public domain. Likewise for this work: | |
# CC0: This work has been marked as dedicated to the public domain. | |
url=${1:-https://code.jquery.com/jquery-3.6.0.slim.min.js} | |
algo=${2:-sha384} | |
hash=$(curl -s "$url" | openssl dgst -"$algo" -binary | openssl base64 -A) | |
if grep -q css <<<"$url" >/dev/null 2>&1; then | |
out='<link rel="stylesheet" href="%s" integrity="%s-%s" crossorigin="anonymous">\n' | |
else |
# Kali Vagrantfile | |
# Copyright (C) 2023 Richard Bullington-McGuire (@obscurerichard) | |
# MIT-0 Licensed - https://github.com/aws/mit-0 | |
Vagrant.configure("2") do |config| | |
config.vm.box = "kalilinux/rolling" | |
config.vm.provider "virtualbox" do |vb| | |
vb.gui = true | |
vb.memory = "4096" | |
end |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env powershell | |
<# | |
.SYNOPSIS | |
You can use this script to easly transform any XML file using XDT. | |
To use this script you can just save it locally and execute it. The script | |
will download its dependencies automatically. | |
Adapted from: https://gist.github.com/sayedihashimi/f1fdc4bfba74d398ec5b | |
Thanks Stack Overflow: https://stackoverflow.com/questions/8989737/web-config-transforms-outside-of-microsoft-msbuild | |
#> |
by Richard Bullington-McGuire richard@obscure.org @obscurerichard on GitHub and Twitter
Use these as comments in pull requests in order to charm the project owner into taking action on the pull request.
lonely pull request
the completist in me pines
for its prompt closure
#!/usr/bin/env bash | |
# redis-scan.sh | |
# | |
# Adapted by @obscurerichard from itamarhaber/scan_del.sh: | |
# https://gist.github.com/itamarhaber/11126830 | |
# | |
# Thanks @czerasz and @tenlee2012 for fixes | |
# | |
# Usage: | |
# ./redis-scan.sh localhost 6378 0 '*test*' |
#!/bin/bash | |
# dedupe-cacerts.sh | |
# | |
# De-duplicates a certificate authority bundle, such as cacerts.pem | |
# or ca-bundle.crt. This will emit CA certificates in the order they | |
# appeared, annotating them with full info on each certificate, | |
# omitting any duplicate certificates. | |
# | |
# Usage: | |
# |
This bash script offers quick shortcuts to simulate slower network connections. It is useful when you need to simulate a wireless network on a Linux network server, especially when you are using a virtual machine guest on your local machine or in the cloud.
slow 3G # Slow network on default eth0 down to 3G wireless speeds
slow reset # Reset connection for default eth0 to normal
slow vsat --latency=500ms # Simulate satellite internet with a high latency
slow dsl -b 1mbps # Simulate DSL with a slower speed than the default
slow modem-56k -d eth0 # Simulate a 56k modem on the eth1 device. eth0 is unchanged.
Vg unf orra n cyrnfher jbexvat jvgu rirelbar ng Oynpxfgbar. | |
V pna or ernpurq ng evpuneq.ohyyvatgba.zpthver@tznvy.pbz. | |
V nz rnfl gb svaq, whfg Tbbtyr zl anzr, be rznvy zr ng | |
evpuneq.ohyyvatgba.zpthver@tznvy.pbz. | |
Vs lbh yvir yrff guna 5 zvyrf sebz lbhe wbo fvgr, pbafvqre ovxvat! | |
Qebc zr n yvar vs lbh znantr gb qrpbqr guvf zrffntr! |