Skip to content

Instantly share code, notes, and snippets.

View ndreas's full-sized avatar
🐘

Andreas Johansson ndreas

🐘
  • Gothenburg, Sweden
View GitHub Profile
@ndreas
ndreas / keybase.md
Last active January 4, 2016 19:42
keybase.md

Keybase proof

I hereby claim:

  • I am ndreas on github.
  • I am ndreas (https://keybase.io/ndreas) on keybase.
  • I have a public key ASB5ueyZaBF5BYQGgPKMb8LOEdLHScV_0nmr3Ra03OVT3Qo

To claim this, I am signing this object:

@ndreas
ndreas / xdawidth.user.js
Last active December 12, 2015 09:39
Userscript for setting a more pleasant width on forum.xda-developers.com
// ==UserScript==
// @name XDA Developers forum width
// @description Sets a smaller width on forum posts on http://forum.xda-developers.com/
// @namespace http://stdin.se/userscripts/xdawidth
// @author ndreas
// @license The ISC License (http://www.isc.org/software/license)
// @version 1.1
// @include http://forum.xda-developers.com/*
// @history 1.1 added style tweak for paging controls
// @history 1.0 first version
@ndreas
ndreas / rtmredir.user.js
Created February 3, 2013 19:43
Userscript for redirecting from Remember The Milk's login page to home if you're already logged in
// ==UserScript==
// @name Remember The Milk login page redirector
// @description Redirects to home if you go to the login page while logged in
// @namespace http://stdin.se/userscripts/rtmredir
// @author ndreas
// @license The ISC License (http://www.isc.org/software/license)
// @version 1.0
// @include https://www.rememberthemilk.com/login/*
// @history 1.0 first version
// ==/UserScript==
@ndreas
ndreas / iterm_growl.pl
Created February 28, 2012 10:03
Growling from irssi in iTerm2
use Irssi;
use Irssi::Irc;
use IO::Handle;
use Env qw(TMUX);
$VERSION = "0.1";
%IRSSI = (
authors => 'Andreas Johansson',
contact => 'andreas@stdin.se',
name => 'iterm_growl',
@ndreas
ndreas / html.vim
Created December 23, 2011 18:04
Homecooked Vim indent script for HTML
if exists("b:did_indent")
finish
endif
let b:did_indent = 1
setlocal indentexpr=HtmlIndentGet(v:lnum)
setlocal indentkeys=o,O,*<Return>,<>>,<<>,/,{,}
if exists('*HtmlIndentGet') | finish | endif
"
@ndreas
ndreas / changes.txt
Created January 8, 2011 10:21
Changes to the Quicksilver iTerm plugin to make it work with iTerm
The changes were made twice in the binary "iTerm Module" since the script is embedded twice. I just opened the binary in Vim and searched for "activate" to find the scripts.
Changes:
- Create a new window instead of a tab (I prefer it that way)
- Launch the default session instead of creating a new session
- Disable the bash-commands since it overrode my default shell, zsh
The strange indentation in the modified file is due to the fact that the binary b0rks if the string length is changed. If it does not work, try removing or adding characters in the script. Quicksilver generates an error message on startup (for example in Console.app) if there is something wrong with the binary.