Skip to content

Instantly share code, notes, and snippets.

View mandusm's full-sized avatar

Mandus Momberg mandusm

View GitHub Profile
@mandusm
mandusm / aws_federate.sh
Last active November 26, 2017 01:07
Bash Native AWS Federation Script
# Function to URLEncode JSON and Other Strings
urlencode() {
local LANG=C; local c; while IFS= read -r c; do
case $c in [a-zA-Z0-9.~_-]) printf "$c"; continue ;; esac
printf "$c" | od -An -tx1 | tr ' ' % | tr -d '\n'
done <<EOF
$(fold -w1)
EOF
echo
}
@mandusm
mandusm / flexget_config.yml
Created April 26, 2016 06:10
FlexGet Trakt
templates:
# This is just in a template so that it can easily be re-used in multiple tasks (for example in an rss based and discover based task)
# If you only have one task using your series config, you can place the configure_series plugin directly in that task rather than in a template
tv:
# This section will connect to rtorrent directly to submit downloaded URL's
rtorrent:
uri: http://127.0.0.1:80/RPC2
path: /your/torrent/download/path # Download Path of rtorrent
download: yes
configure_series:
@mandusm
mandusm / r53DynUp.sh
Created April 5, 2016 10:01
DynamicDNS Route53 Update.
#!/bin/bash
ZONEID=YOUR_HOSTED_ZONE_ID
export PATH=/bin:/usr/bin:/usr/local/bin
DNS_RECORD="$1"
function digIP () {
while true; do
CURRENT_IP=`dig +short +time=5 "$1"`
if [ -n "$CURRENT_IP" ]; then
@mandusm
mandusm / _config.yml
Created November 30, 2014 18:32
OctoPress Config
# ----------------------- #
# Main Configs #
# ----------------------- #
url: http://yoursite.com
title: My Octopress Blog
subtitle: A blogging framework for hackers.
author: Your Name
simple_search: https://www.google.com/search
description:

Keybase proof

I hereby claim:

  • I am mandusm on github.
  • I am mandusm (https://keybase.io/mandusm) on keybase.
  • I have a public key whose fingerprint is EF5F 7464 7EDD BF74 E23C C45B 9B16 6556 DB6F 5D9D

To claim this, I am signing this object: