Skip to content

Instantly share code, notes, and snippets.

@BenjaminRH
BenjaminRH / README.md
Created April 2, 2017 17:59 — forked from csswizardry/README.md
Vim without NERD tree or CtrlP

Vim without NERD tree or CtrlP

I used to use NERD tree for quite a while, then switched to CtrlP for something a little more lightweight. My setup now includes zero file browser or tree view, and instead uses native Vim fuzzy search and auto-directory switching.

Fuzzy Search

There is a super sweet feature in Vim whereby you can fuzzy find your files using **/*, e.g.:

:vsp **/*<partial file name><Tab>
@BenjaminRH
BenjaminRH / 10bis.user.js
Last active August 29, 2015 14:08
10bis userscript. Adds a tool on menu pages that will easily select a random dish for you to order, with several possible filters.
// ==UserScript==
// @id 10bisscript@userscripts.org
// @name 10bis
// @version 1.0
// @release 2014-09-03
// @author Benjamin Harris
// @namespace 10bisscript@userscripts.org
// @description A suite of tools to improve the 10bis experience
// @include http://www.10bis.co.il/Restaurants/Menu/Delivery*
// @match http://www.10bis.co.il/Restaurants/Menu/Delivery*
@BenjaminRH
BenjaminRH / GmailGithubIssue.user.js
Last active August 29, 2015 14:08
Gmail Github Issue userscript. Adds a "+Issue" link at the top of Gmail email threads that will create a new Github issue from all expanded emails in that thread. Substitute the desired issue repository for the default one at the top of the file.
// ==UserScript==
// @id gmailgithubissuescript@userscripts.org
// @name Gmail GitHub Issue
// @version 1.2
// @release 2014-10-29
// @author Benjamin Harris
// @namespace gmailgithubissuescript@userscripts.org
// @description Create a GitHub issue from Gmail
// @include https://mail.google.com/mail/u/*
// @match https://mail.google.com/mail/u/*
The Gist of It
@BenjaminRH
BenjaminRH / gist:8577549
Created January 23, 2014 12:07
General
The General Gist
// ==UserScript==
// @id 987654321
// @name KickAss Torrents Proxify
// @version 1.0
// @description Redirects you to a KickAss Torrents proxy
// @run-at document-start
// @match *.kickass.to/*
// @match *.kat.ph/*
// ==/UserScript==
// ==UserScript==
// @id 987654321
// @name Kickasstorrents
// @version 1.0
// @namespace
// @author
// @description
// @run-at document-end
// @match http://*.kickass.to/*
// @match http://*.kat.ph/*
var links = document.getElementsByTagName('a');
var replacements = 0;
for (var i = 0; i < links.length; i++) {
if (links[i].href.match(/^(http(s|):\/\/|)(www\.|)kickass\.to/i)) {
replacements += 1;
links[i].href = links[i].href.toLowerCase().replace('kickass.to', 'katproxy.com');
}
}
console.log('Replaced', replacements, 'KickAss links');
Meteor.Router.add({
'/': {
to: 'index',
and: function () {
Session.set('genre', null);
}
}, // site index
'/:action/:action2/:action3': function (action, action2, action3) {
var genreSession = null,
@BenjaminRH
BenjaminRH / queue.coffee
Last active December 21, 2015 14:18 — forked from svasva/queue.coffee
@Queue = new Meteor.Collection 'queue'
Meteor.startup ->
Meteor._processQueue = ->
if Meteor._queueProcessing ||= false
Meteor.setTimeout Meteor._processQueue, 100
return
Meteor._queueProcessing = true
qsize = Meteor._queue.length
qdone = 0