Skip to content

Instantly share code, notes, and snippets.

@reks-scripts
reks-scripts / siege-mode.ahk
Created May 26, 2018 13:55
GW2 Full Powah siege Mode
;
; TLDR: autohotkey script that presses and holds "2" for you while you're using siege
;
; Requires AutoHotKey: https://autohotkey.com/
; Copy/paste gist content into new text file and save as siege-mode.ahk then double click to run
; CTRL+ALT+2 - enable/disable full power siege
; CTRL+2 - toggle full power siege (when enabled)
; CTRL+F1 - stop script
; Example: enable full power siege hotkey by pressing CTRL+ALT+2... get on your siege and
; and unleash full power siege mode by pressing CTRL+2. When the wall is down, simply press
@reks-scripts
reks-scripts / objectToQueryString.js
Last active April 23, 2018 19:08
objectToQueryString (with lodash): pass in object containing key/value pairs which are converted to URL parameters
const _ = require('lodash');
// any parameters passed with a null value will not be added to the result
const objectToQueryString = obj => {
const results = [];
_.forOwn(obj, (value, key) => {
if (Array.isArray(value)) {
_.forOwn(value, value => {
if (!_.isNil(value))
results.push(`${key}=${value}`);
{
"option1": 1,
"option2": 2,
"option3": 3
}
@reks-scripts
reks-scripts / Really Block Blocked Discord Users
Created January 5, 2018 21:42
Tamper Monkey script that prevents "X Blocked Messages" from showing in Discord
// ==UserScript==
// @name Really Block Blocked Discord Users
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Prevents "X Blocked Messages" from showing in Discord
// @author rek
// @match https://discordapp.com/*
// @grant none
// @require https://code.jquery.com/jquery-3.2.1.min.js
// ==/UserScript==