Skip to content

Instantly share code, notes, and snippets.

View jasonbyrne's full-sized avatar

Jason Byrne jasonbyrne

View GitHub Profile
@lewg
lewg / block_china_ufw.sh
Created January 18, 2013 15:53
UFW blocks for China, Korea, Malaysia, Phillipines, Singapore, Thailand and Vietnam netblocks
#!/bin/sh
# UFW blocks for China, Korea, Malaysia, Phillipines, Singapore, Thailand and Vietnam netblocks
# Based on http://www.wizcrafts.net/chinese-iptables-blocklist.html
# Cambodia (KH)
ufw deny from 114.134.184.0/21 to any port 22
# Chinese (CN) IP addresses follow:
ufw deny from 1.192.0.0/13 to any port 22
ufw deny from 1.202.0.0/15 to any port 22
@jasonbyrne
jasonbyrne / temp-upload.sh
Created April 7, 2017 05:03
Upload a file to to file.io with an expiration (requires jq to be installed)
#!/bin/bash
if [[ ! $1 ]]; then
echo "No file provided"
exit
fi
if [ ! -f "$1" ]; then
echo "File does not exist"
echo "$1"
echo ""
@jasonrahm
jasonrahm / sy.js
Last active January 31, 2021 18:11
Streamyard Keyboard Shortcuts
// ==UserScript==
// @name Streamyard_Hotkeys
// @version 0.13
// @description Enable hotkeys for keyboard shortcuts
// @author Jason Rahm
// @match https://streamyard.com/*
// @grant none
// ==/UserScript==
(async function() {