Skip to content

Instantly share code, notes, and snippets.

View jnv's full-sized avatar

Jan Vlnas jnv

View GitHub Profile
@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 / devise.cs.yml
Last active January 13, 2020 12:34 — forked from bver/devise.cs.yml
Czech translation for Devise
#
# Czech translation for Devise - config/locales/devise.cz.yml
# 'cs' locale by https://github.com/bver
# Feel free to correct my translation.
#
# Note: devise.failure.invalid was intentionally changed from "email" to "identity" -
# - not all configurations use config.authentication_keys = [ :email ]
#
# Additional translations at http://github.com/plataformatec/devise/wiki/I18n
@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
@jnv
jnv / Gemfile
Created September 17, 2013 23:04
trello2github: A hacky and awful Trello cards to GitHub Issues import. Imports Trello color labels and cards' lists as labels, skips archived cards.
source "https://rubygems.org"
gem "octokit", "~> 2.0"
gem "json"
gem "recursive-open-struct"
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.