Skip to content

Instantly share code, notes, and snippets.

DarkMatterMatt

View GitHub Profile
@DarkMatterMatt
DarkMatterMatt / salien_launcher.sh
Last active Jul 2, 2018
Run SalienCheat for multiple users and auto-updates every 30 mins. Webpage to view the log online (support for pretty colours).
View salien_launcher.sh
#!/bin/bash
declare -A USERS # associative array
# enter users here
USERS[name1]="token1xxxxxxxxxxxxxxxxxxxxxxxxxx steamID64optional"
USERS[name2]="token2xxxxxxxxxxxxxxxxxxxxxxxxxx steamID64optional"
USERS[examp]="efa1d62e8e422acc0a76aff5ac889d71 76561197295961561"
BASE_DIR=/home/pi/saliencheat
@DarkMatterMatt
DarkMatterMatt / 3.6_fstring-3.5_strformat.py
Last active Jun 23, 2018
Converts all Python 3.6 fstrings f"insert {var:.2f} here" to Python 3.5 compatible string.format "insert {:.2f} here".format(var)
View 3.6_fstring-3.5_strformat.py
##############################################################################
## 3.6_fstring-3.5_strformat.py ##
## Matt Moran (2018) ##
##############################################################################
## Usage: python 3.6_fstring-3.5_strformat.py file_to_process.py
##
## Converts all 3.6 fstrings f"insert {var:.2f} here" to 3.5 compatible
## "insert {:.2f} here".format(var)
##
## Works with:
@DarkMatterMatt
DarkMatterMatt / cf-ddns.sh
Last active Jan 21, 2019 — forked from larrybolt/cf-ddns.sh
Automatically update your CloudFlare DNS record to the IP, Dynamic DNS for Cloudflare
View cf-ddns.sh
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
# Automatically update your CloudFlare DNS record to the IP, Dynamic DNS
# Can retrieve cloudflare Domain id and list zone's, because, lazy
# Place at:
# /usr/local/bin/cf-ddns.sh
View Auto_Club_selector_for_TaskPilot.tamper.js
// ==UserScript==
// @name Auto Club selector for TaskPilot
// @namespace MattMoran
// @version 1.0.0
// @description Automatically select your club
// @updateURL https://gist.github.com/DarkMatterMatt/badf3a61d743a098773e48150a4402e0/raw/
// @author Matt Moran
// @copyright Matt Moran 2017
// @match http://taskpilot.org/
// ==/UserScript==
View Latest_RASP_for_rasp.nz.tamper.js
// ==UserScript==
// @name Latest RASPs page for rasp.nz
// @namespace MattMoran
// @version 2.0.1
// @description Allows using rasp.nz/rasp/latest
// @updateURL
// @author Matt Moran
// @copyright Matt Moran 2017
// @match http://rasp.nz/rasp/latest*
// ==/UserScript==
View AutoRefresh_for_Github.tamper.js
// ==UserScript==
// @name AutoRefresh for Github
// @namespace MattMoran
// @version 1.0
// @description Automatically refreshed inactive Github tabs every 10 mins
// @author Matt Moran
// @copyright Matt Moran 2017
// @match https://github.com/*/*/*
// @updateURL https://gist.github.com/DarkMatterMatt/0cda044231c3ec45fb788713e6a023cc/raw/
// @require https://cdnjs.cloudflare.com/ajax/libs/js-cookie/2.2.0/js.cookie.min.js
@DarkMatterMatt
DarkMatterMatt / AutoLogin_for_VexForums.tamper.js
Last active Dec 31, 2017
AutoLogin_for_VexForums.tamper.js
View AutoLogin_for_VexForums.tamper.js
// ==UserScript==
// @name AutoLogin for VexForums
// @namespace MattMoran
// @version 1.0.0
// @description VexForums logs itself out frequently. It's a PITA.
// @updateURL https://gist.githubusercontent.com/DarkMatterMatt/d9092fea491c7de5bebf7b1c4cee10af/raw/
// @author Matt Moran
// @copyright Matt Moran 2017
// @match https://www.vexforum.com/*
// ==/UserScript==
View init.coffee
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
You can’t perform that action at this time.