This file contains 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
"use strict"; | |
// var server = require("./static_server.js"); | |
// server.actions.start("dir", 8080); | |
// // server.actions.stop(); | |
var http = require("http"), | |
url = require("url"), | |
path = require("path"), | |
fs = require("fs"), |
This file contains 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
# dmenu version | |
VERSION = 4.5 | |
# paths | |
PREFIX = /usr/local | |
MANPREFIX = ${PREFIX}/share/man | |
X11INC = /usr/include/X11 | |
X11LIB = /usr/lib/X11 |
This file contains 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
var Benchmark = require('benchmark'); | |
var microtime = require('microtime'); | |
var suite = new Benchmark.Suite(); | |
suite | |
.add('Date.now()', function () { | |
var diff1 = Date.now() - Date.now(); | |
}) | |
.add('microtime.now()', function () { |
This file contains 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
<!-- | |
[in Lubuntu it's ~/.config/openbox/lubuntu-rc.xml] | |
Shift+Super+Scrollwheel Up/Down | |
http://openbox.org/wiki/Help:Bindings#Context | |
Depends on having enabled compositing w/ | |
something like compton (recommended) or xcompmgr | |
--> | |
<mouse> | |
<context name="Titlebar"> | |
<mousebind button="S-W-Up" action="Click"> |
This file contains 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
# add to your .bashrc or .bash_aliases | |
# instead of executing, then doing ctrl+z, bg, disown | |
spawn () { | |
if [[ "$(which $1 2> /dev/null)" ]]; then | |
setsid $@ &> /dev/null & | |
else | |
echo "not executable" | |
fi | |
} |
This file contains 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 IMDB Add torrentz.eu search link | |
// @description Adds a smart and useful search link for http://torrentz.eu/ | |
// @license MIT; http://opensource.org/licenses/MIT | |
// @author elundmark | |
// @contact mail@elundmark.se | |
// @namespace http://elundmark.se/code/ | |
// @version 0.6 | |
// @date 2014-10-22 | |
// @include /https?://www\.imdb\.com/(?:name|title)/.+/ |
This file contains 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
# Torrentz All-in-One 2.5.14 | |
# Exported settings (Thu Sep 04 2014 18:39:38 GMT+0200 (CEST)) | |
{"forceHTTPS":false,"removeAds":true,"searchHighlight":true,"ajaxedSorting":true,"linkComments":true,"searchTabs":true,"defaultTrackers":["http://tracker.best-torrents.net:6969/announce","udp://tracker.ccc.de:80/","http://tracker.ccc.de:80/","udp://open.demonii.com:1337/announce","http://inferno.demonoid.com:3407/announce","http://exodus.desync.com:6969/announce","http://www.eddie4.nl:6969/announce","udp://fr33dom.h33t.com:3310/announce","http://tracker.ilibr.org:6969/announce","udp://tracker.istole.it:6969/","udp://tracker.openbittorrent.com:80/","http://tracker.openbittorrent.com:80/","udp://tracker.prq.to/announce","udp://tracker.publicbt.com:80/","http://tracker.publicbt.com:80/","udp://11.rarbg.com/announce","http://9.rarbg.com:2710/announce","http://bt1.the9.com:6969/announce","http://tracker.torrent.to:2710/announce","http://tracker.xpear.de:6969/announce","http://tracker.yify-torrents.com/announce"],"searchEng |
This file contains 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
spawn () { | |
if [[ ! "$(which $1 2> /dev/null)" = "" ]]; then | |
setsid $@ &> /dev/null & | |
else | |
echo "not executable" | |
fi | |
} |
This file contains 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
// My brain understands this better than .splice | |
/* var fruits = ["A","B","C"]; */ | |
if ( typeof Array.insert !== "function" ) { | |
Array.prototype.insert = function () { | |
var args = Array.prototype.slice.call(arguments, 0); | |
// Convert non arrays to array | |
if ( args.length && !Array.isArray(args[0]) ) args[0] = [args[0]]; | |
// Set default position |
This file contains 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
#!/usr/bin/env bash | |
# Requires NodeJS (or rewrite line:13 if you known perl or python), plus xdg-open | |
# Edit the link to your rss reader here | |
feed_handler='https://my-feed-reader.com/?add&newfeed=' | |
arglen=$# | |
args=("$@") | |
looped=0 |
OlderNewer