Skip to content

Instantly share code, notes, and snippets.

View rjstone's full-sized avatar
😼
I may be slow to respond.

Robert Stone rjstone

😼
I may be slow to respond.
View GitHub Profile
@rjstone
rjstone / Discord Webhok Action Example.yml
Last active December 1, 2019 20:48
Discord Webhook Action Example
- name: Test Custom
uses: rjstone/discord-webhook-notify@v1
with:
severity: info
username: CustomUsername
color: '#ff00aa'
avatarUrl: https://github.githubassets.com/images/modules/logos_page/Octocat.png
description: This is a custom description.
details: 'Custom details: Somebody set up us the bomb.'
footer: This is a footer.
@rjstone
rjstone / Startup Script
Created October 17, 2016 07:55
Hurricane Electric Tunnelbroker IPv6 6in4 startup script for DD-WRT. See https://is.gd/Aijzpc for more info.
mkdir -p /tmp/etc/config
ln -sf /tmp/custom.sh /tmp/etc/config/ipv6-tunnel.wanup
@rjstone
rjstone / ipv6-setup-dd-wrt.sh
Last active October 17, 2016 07:51
Hurricane Electric Tunnelbroker IPv6 6in4 configuration script for DD-WRT. See https://is.gd/Aijzpc for more info.
#!/bin/sh
# HE IPv6 6in4 config script. See https://is.gd/Aijzpc for more info.
# If needed, add -x after /bin/sh above for more debug output.
# Save this as your "Custom Script".
# Put this in your Startup Script to use this script:
# mkdir -p /tmp/etc/config
# ln -sf /tmp/custom.sh /tmp/etc/config/ipv6-tunnel.wanup
####### Configuration ########
@rjstone
rjstone / rawgithashurl.sh
Last active September 20, 2016 14:36
Get cdn.rawgit.com hash URLs for most recent commit of files in git repo.
#!/bin/bash
# Get cdn.rawgit.com hash URLs for most recent commit of files in git repo.
# 1) cd to root directory of repository
# 2) run script on one or more filenames.
# Your working dir must be repo root or the URLs will be wrong.
# If you have 'globstar' enabled and your shell supports it, run with ** for recursion.
for f in $@
do
url=`git ls-remote --get-url | sed 's#\.git$##' | sed 's#//github.com/#//cdn.rawgit.com/#'`