Skip to content

Instantly share code, notes, and snippets.

@Asbra
Asbra / fow-util
Last active August 29, 2015 13:56
// ==UserScript==
// @name Forces of War utilities (lite)
// @namespace http://asbra.net/forces-of-war-utilities-bot-script/
// @version 0.1
// @description Useful utilities for the Facebook game Forces of War
// @match https://fb-forces.uken.com/*
// @copyright 2013 Johan / Asbra.net
// ==/UserScript==
var version = 0.1;
@Asbra
Asbra / user.js
Last active May 4, 2017 23:26
Forces of War bot
// ==UserScript==
// @name Forces of War utilities
// @namespace http://asbra.net/
// @version 0.1
// @description Useful utilities for the Facebook game Forces of War
// @match https://fb-forces.uken.com/*
// @copyright 2013 Johan / Asbra.net
// ==/UserScript==
var version = 0.1;
@Asbra
Asbra / curl.php
Last active March 29, 2017 12:38
PHP cURL wrapper
<?php
/* cURL helper class
* Author: Johan P. <johan@asbra.net>
* Created: 2011-02-19
* Updated: 2011-07-27
* Updated: 2011-09-10
* Updated: 2011-10-04
* Updated: 2012-07-21
* Updated: 2013-01-15
* Updated: 2013-02-04
@Asbra
Asbra / craigslist.php
Created December 13, 2014 16:27
PHP Craigslist job finder (scraper)
<?php
/**
* Craigslist job finder
* Scans a given Craigslist section, checks titles for keyword(s), then emails when found.
* @author Johan <johan@asbra.net>
* @date 2014-11-10
* @modified 2014-11-10
*/
// the $keyword variable contains the keywords you want to find
// $keyword = 'programmer';
@Asbra
Asbra / 4chan.py
Created December 13, 2014 17:29
4chan downloader
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @author: johan
# @date: 2014-12-12
# @modified_by: johan
# @modified_at: 2014-12-12
import re # Regular expressions
import requests # To make HTTP requests
import json # To parse 4chan's JSON
@Asbra
Asbra / Steam-Upvoter.user.js
Last active September 14, 2022 11:09
Steam Community auto rate up
// ==UserScript==
// @name Steam Community auto rate up
// @version 1.0
// @description Automatically upvote content on Steam Community Activity Feed
// @author Asbra
// @include http*://*steamcommunity.com/id/*/home*
// @homepage https://gist.github.com/Asbra/
// @updateURL https://gist.github.com/Asbra/3126c8737e22392722f5/raw/Steam-Upvoter.user.js
// ==/UserScript==
@Asbra
Asbra / plugdj-woot.js
Created June 4, 2016 12:31
Plug.dj Auto-Woot (10 seconds interval)
wootIt = function() {
if ($('#woot').hasClass('selected') === false && $('#meh').hasClass('selected') === false) {
$('#woot').click();
}
};
setInterval(wootIt, 10000);
@Asbra
Asbra / anonib.py
Created June 4, 2016 12:38
Anon-IB image thread downloader (usage: anonib section thread path)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @author: Asbra
# @date: 2014-12-12
# @modified_by: Asbra
# @modified_at: 2014-12-12
# Saves images & webm from Anon-IB
# Usage: anonib section thread path
# section - eg. 'red' for reddit (/red/)
# thread - thread No.
@Asbra
Asbra / he1x.hdb.user.js
Last active January 29, 2017 18:35
UserScript enhancing the HDB in the game Hacker Experience 1
// ==UserScript==
// @name HE1x.HDB
// @namespace https://asbra.net/
// @version 0.5
// @description Search, filter and more improvements for HE1 Hacked Database
// @author Asbra
// @match http://legacy.hackerexperience.com/list*
// @match https://legacy.hackerexperience.com/list*
// @updateURL https://gist.github.com/Asbra/f654e827632b608997ebb4970f7cef9d/raw/he1x.hdb.user.js
// @run-at document-end
@Asbra
Asbra / merltv9.php
Created April 11, 2017 09:37
Download videos from MerlTV9.com using YouTube-DL
<?php
/*
Pre-requisites:
youtube-dl ( https://github.com/rg3/youtube-dl/ )
*/
if (empty($argv[1])) {
die("merltv9.php url\n");
}
$url = $argv[1];