Skip to content

Instantly share code, notes, and snippets.

View TrashF's full-sized avatar

Reetu Mönkkönen TrashF

  • Hämeenlinna, Finland
View GitHub Profile
@TrashF
TrashF / gist:953ef051b9ed45b2d4f40cf8036f4e55
Created September 20, 2017 12:04
QuakeJS installation
sudo apt update
sudo apt install nodejs nodejs-legacy emscripten npm unzip git
git clone https://github.com/inolen/quakejs.git
cd quakejs
git submodule update --init
npm install
node build/ioq3ded.js +set fs_game baseq3 +set dedicated 1
cat <<EOF > base/baseq3/server.cfg
seta sv_hostname "<change this>"
// ==UserScript==
// @name Tykinruoka - KoL Wheels
// @namespace http://gm.taistelumarsu.org
// @author Tykinruoka aka TrashF
// @description Allows you to adjust numeric text inputs by using your mouse wheel.
// @include http://www.kingdomofloathing.com/*
// @include http://kingdomofloathing.com/*
// @include https://www.kingdomofloathing.com/*
// @include https://kingdomofloathing.com/*
// @gran none
// ==UserScript==
// @name Tykinruoka - KoL Auto-Miner
// @namespace http://gm.taistelumarsu.org
// @description Auto-miner for all your mining lazyness.
// @include http://www.kingdomofloathing.com/mining.php*
// @include https://www.kingdomofloathing.com/mining.php*
// @version 1.2
// @grant none
// ==/UserScript==
// ==UserScript==
// @name Jicken Wings to Clipboard
// @namespace http://gm.taistelumarsu.org
// @description Clicking the item icons will copy item name to clipboard.
// @include http://kol.coldfront.net/collections/*
// @include https://kol.coldfront.net/collections/*
// @version 1.1
// @grant GM_setClipboard
// ==/UserScript==
@TrashF
TrashF / phantomjs-matkahuolto.js
Last active September 17, 2016 07:48
Matkahuolto screen scraping with PhantomJS
var page = require('webpage').create(),
system = require('system'),
address,
statuses = [];
address = 'https://matkahuolto.fi/fi/seuranta/tilanne/?package_code=' + system.args[1];
page.onResourceError = function(res) {
page.errorReason = res;
};
@TrashF
TrashF / streamdownloader.user.js
Last active August 29, 2015 14:16 — forked from nikop/streamdownloader.user.js
StreamDownloader-avustimesta versio, joka ei käytä jQuerya ja lisäilee latauspainikkeita myös listauksiin
// ==UserScript==
// @name StreamDownloader Avustin
// @namespace StreamDownloader
// @description StreamDownloader avustin
// @include http://areena.yle.fi/*
// @include http://*.ruutu.fi/*
// @include http://ruutu.fi/*
// @include http://www.katsomo.fi/*
// @version 5
// @grant none