Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python3
"""
WARNING: The code you are about to view is DISGUSTING
I wrote most of it months ago, so don't ask me what it's doing, or why.
"""
import struct
import sys
#!/bin/sh
LISTS=$1
[ -z $LISTS ] && LISTS=BASE16
NZ=nzone
if grep -q Ubuntu /proc/version; then
VER=Ubuntu
PS="ps -A"
PACKAGES="hostapd dnsmasq sudo iptables procps cron net-tools wireless-tools pciutils module-init-tools coreutils grep sed"
[ $(dpkg -l $PACKAGES | grep -ce ^ii) -lt 13 ] && sudo apt-get update && sudo apt-get install $PACKAGES
SCRIPTROOT=/usr/local/bin
@jfmherokiller
jfmherokiller / CLion_Ninja.md
Last active November 3, 2016 18:47 — forked from nevkontakte/CLion_Ninja.md
Ninja support for CLion IDE

Ninja support for CLion IDE

This script enables Ninja-powered builds in CLion IDE by wrapping around CMake, which it uses. See my blog post for details.

Disclaimer

This script is provided AS IS with no guarantees given or responsibilities taken by the author. This script relies on undocumented features of CLion IDE and may lead to instability of build and/or IDE. Use it on your own risk under WTFPL terms.

@jfmherokiller
jfmherokiller / Greasemonkey.js
Created July 21, 2016 19:01 — forked from fuzzykiller/Greasemonkey.js
Greasemonkey API stubs with JSDoc, for WebStorm etc
/**
* Created by azu.
* Date: 10/11/28
* Updated by fuzzykiller (2015/08/28)
* License: MIT License
*/
/**
* An object that exposes various information about Greasemonkey and the running User Script.
*/
@jfmherokiller
jfmherokiller / Greasemonkey-jq-boilerplate.js
Created July 21, 2016 18:58 — forked from angel-vladov/Greasemonkey-jq-boilerplate.js
Boilerplate code for a Greasemonkey script which reuses the jQuery from the page it's attached to.
var jQuery, $ = null;
function addJQuery(callback) {
var p = null;
if(window.opera || window.navigator.vendor.match(/Google/)) {
var div = document.createElement("div");
div.setAttribute("onclick", "return window;");
p = div.onclick();
}