Skip to content

Instantly share code, notes, and snippets.

View jnv's full-sized avatar

Jan Vlnas jnv

View GitHub Profile
@jnv
jnv / utmstrip.user.js
Last active September 5, 2015 20:55 — forked from paulirish/utmstrip.user.js
UTM parameters stripper – modified for Scriptish regex matching to not run on every page. https://greasyfork.org/cs/scripts/4056-utm-param-stripper
// ==UserScript==
// @name UTM param stripper
// @author Paul Irish
// @namespace http://github.com/paulirish
// @version 1.1.2
// @description Drop the UTM params from a URL when the page loads.
// @extra Cuz you know they're all ugly n shit.
// @include /^https?:\/\/.*[\?#&]utm_.*/
// @grant none
// ==/UserScript==
@jnv
jnv / hidefbnewsfeed.user.js
Last active September 5, 2015 21:07
Replaces useless Facebook feed with useful kittens. https://greasyfork.org/scripts/4055-hide-facebook-news-feed
// ==UserScript==
// @id hidefbnewsfeed@jnv.gihtub.io
// @name Hide Facebook News Feed
// @description Replaces useless Facebook feed with useful kittens
// @version 2015.09.05
// @namespace http://jnv.github.io
// @domain www.facebook.com
// @include http://www.facebook.com/*
// @include https://www.facebook.com/*
// @screenshot https://gist.githubusercontent.com/jnv/e401c3faac0e893c489a/raw/screenshot.png
@jnv
jnv / Gemfile
Created August 8, 2011 10:06
Gemfile for Composite Primary Keys testing
source 'http://rubygems.org'
gem 'test-unit'
gem 'rake'
git "git://github.com/rails/rails.git",:branch => "3-1-stable" do
gem "activerecord"
end
#gem 'pg'
gem 'sqlite3'
@jnv
jnv / GoogleAnalytics.php
Created August 30, 2011 14:16
Google Analytics for MediaWiki
<?php
/*
* Google Analytics integration for MediaWiki
* Based on extension by Tim Laqua: http://www.mediawiki.org/wiki/Extension:Google_Analytics_Integration
*
* Usage:
* - Drop GoogleAnalytics.php to your extensions/ dir
* - In SystemConfig.php add:
*
* require_once( "$IP/extensions/GoogleAnalytics.php" );
@jnv
jnv / fav.icio.us3.user.js
Created September 5, 2011 21:44
fav.icio.us3
// ==UserScript==
// @name fav.icio.us3
// @namespace http://straylight.cz/userscripts/
// @description A script to add favicons next to posted links on delicious.com
// @include http://delicious.com/*
// @include http://www.delicious.com/*
// @version 3.0.1
// ==/UserScript==
// Copyright (c) 2008, Vasco Flores, Jan Vlnas
// Released under the GPL license
@jnv
jnv / headerquicklinks.user.js
Created September 5, 2011 21:51
Last.fm Header Quick Links
@jnv
jnv / googlenavbaracctsw.user.js
Last active October 5, 2015 19:08
During February 2011 Google rolled out new top navigation bar, which is used for switching services, access to settings and also account switching. Unlike the old bar, the new one requires 3 clicks to switch account. This simple script currently just adds a few styles to show the available accounts on first click. As of June 2012, this script is…
// ==UserScript==
// @name Google Navbar Easier Account Switch
// @author Jan Vlnas
// @namespace http://jan.vlnas.cz/
// @description Saves you one click when switching accounts with the new Google top navigation bar.
// @license Creative Commons Attribution 3.0 Unported License
// @version 0.0.2
// @include http://*.google.tld/*
// @include https://*.google.tld/*
// @include http://google.tld/*
@jnv
jnv / clickable_username_avatar.user.js
Created August 16, 2012 14:40
Last.fm Clickable Username and Avatar
// ==UserScript==
// @name Last.fm Clickable Username and Avatar
// @namespace http://straylight.cz/userscripts/
// @description Makes username and avatar on user page clickable as in the old version of Last.fm.
// @version 7
// @updateUrl https://raw.github.com/gist/3370656/clickable_username_avatar.user.js
// @screenshot http://s3.amazonaws.com/uso_ss/1839/large.png
// @homepage http://userscripts.org/scripts/show/30447
// @domain www.last.fm
// @domain www.lastfm.de
@jnv
jnv / nginx
Created October 28, 2012 23:56
nginx init script
#! /bin/sh
### BEGIN INIT INFO
# Provides: nginx
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the nginx web server
# Description: starts nginx using start-stop-daemon
/*
based on Blink, Arduino's "Hello World!"
Turns on an LED on for one second, then off for one second, repeatedly.
The Tinkerkit Led Modules (T010110-7) is hooked up on O0
http://www.tinkerkit.com/led-red-10mm/
created in Dec 2011
by Federico Vanzati
This example code is in the public domain.