Skip to content

Instantly share code, notes, and snippets.

@reks-scripts
reks-scripts / gist:92afcffb8e4e4cd18fbba2cb761a000d
Created January 2, 2025 20:31
Google Sheets Apps Script function to get the current price of Gold from goldapi.io
function getGoldPrice() {
const accessToken = 'goldapi-XXXXXXXXXXXXXXX-io';
const headers = {
'x-access-token': accessToken,
'Content-Type': 'application/json'
};
const options = {
'method' : 'get',
@reks-scripts
reks-scripts / gist:837f00c2176f7af6c224dd810a62bb40
Last active January 2, 2025 20:31
Google Sheets Apps Script function that gets the current price of $DOGE
function getDogePrice() {
const headers = {
'Content-Type': 'text/html'
};
const options = {
'method' : 'get',
'headers': headers,
'muteHttpExceptions': true
};
@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==