Skip to content

Instantly share code, notes, and snippets.

View robgmills's full-sized avatar

Rob Mills robgmills

View GitHub Profile
@robgmills
robgmills / transmission_remove_finished.sh
Created August 7, 2021 03:07 — forked from pawelszydlo/transmission_remove_finished.sh
Script to clear finished torrents from transmission-daemon
#!/bin/bash
# Clears finished downloads from Transmission.
# Version: 1.1
#
# Newest version can always be found at:
# https://gist.github.com/pawelszydlo/e2e1fc424f2c9d306f3a
#
# Server string is resolved in this order:
# 1. TRANSMISSION_SERVER environment variable
@robgmills
robgmills / README.MD
Created July 29, 2021 22:18 — forked from lmarkus/README.MD
Extracting / Exporting custom emoji from Slack

Extracting Emoji From Slack!

Slack doesn't provide an easy way to extract custom emoji from a team. (Especially teams with thousands of custom emoji) This Gist walks you through a relatively simple approach to get your emoji out.

If you're an admin of your own team, you can get the list of emoji directly using this API: https://api.slack.com/methods/emoji.list. Once you have it, skip to Step 3

HOWEVER! This gist is intended for people who don't have admin access, nor access tokens for using that list.

Follow along...

@robgmills
robgmills / RemoveIntuitMintAds.greasemonkey.js
Last active August 2, 2020 02:05
Remove Intuit Mint Ads
// ==UserScript==
// @name Remove Intuit Mint Transaction Offers
// @version 1
// @match https://mint.intuit.com/*
// @grant GM_log
// ==/UserScript==
/*- The @grant directive is needed to work around a design change
introduced in GM 1.0. It restores the sandbox.
*/
@robgmills
robgmills / README.md
Last active July 29, 2020 21:12
Network troubleshooting for Kubernetes

Network Troubleshooting For Kubernetes

This Kubernetes Pod descriptor will deploy a pod to your kubernetes cluster.

It contains common network troubleshooting tools:

  • dig
  • netcat
  • curl
  • nslookup
@robgmills
robgmills / Instructions.md
Created August 7, 2018 20:06 — forked from pgilad/Instructions.md
Git commit-msg hook to validate for jira issue or the word merge

Instructions

  • copy the file commit-msg to .git/hooks/commit-msg
  • make sure your delete the sample file .git/hooks/commit-msg.sample
  • Make commit msg executable. chmod +x .git/hooks/commit-msg
  • Edit commit-msg to better fit your development branch, commit regex and error message
  • Profit $$

Shell example

@robgmills
robgmills / tmux.md
Created May 20, 2018 20:09 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@robgmills
robgmills / ansible-summary.md
Created February 18, 2018 21:22 — forked from andreicristianpetcu/ansible-summary.md
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

@robgmills
robgmills / setup_routes.sh
Created November 13, 2017 02:37
Script to set symmetric IP routing rules across multiple networking interfaces
#!/usr/bin/env bash
# Extract network config from ifconfig
function get_ip_info {
ifconfigline=$(ifconfig $1 | grep "inet addr" | xargs)
ip=$(echo $ifconfigline | cut -d " " -f 2 | cut -d ":" -f 2)
printf "%s\n" $ip
IFS=. read -r i1 i2 i3 i4 <<< $ip
printf "%d.%d.%d.0/24\n" $i1 $i2 $i3
@robgmills
robgmills / docker.repo
Created July 25, 2016 20:11
Docker Yum Repository Configuration
[dockerrepo]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/7/
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg
EOF