This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getGoldPrice() { | |
const accessToken = 'goldapi-XXXXXXXXXXXXXXX-io'; | |
const headers = { | |
'x-access-token': accessToken, | |
'Content-Type': 'application/json' | |
}; | |
const options = { | |
'method' : 'get', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getDogePrice() { | |
const headers = { | |
'Content-Type': 'text/html' | |
}; | |
const options = { | |
'method' : 'get', | |
'headers': headers, | |
'muteHttpExceptions': true | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; | |
; 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}`); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"option1": 1, | |
"option2": 2, | |
"option3": 3 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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== |