Skip to content

Instantly share code, notes, and snippets.

View janmoesen's full-sized avatar

Jan Moesen janmoesen

View GitHub Profile
@janmoesen
janmoesen / override-ssh-for-identities.sh
Created October 23, 2013 08:00
Override "ssh" to specify IdentityFile based on the host, but not in ~/.ssh/config. See http://serverfault.com/questions/450796/how-could-i-stop-ssh-offering-a-wrong-key/450807 for some background. Not really tested. Also, this is very naive and assumes your host does not appear in the other arguments.
# A wrapper for "ssh" to avoid having multiple keys sent. Leave the
# IdentityFile options out of your host sections in ~/.ssh/config. This
# function adds them based on the arguments.
function ssh {
local new_args=();
local arg;
for arg; do
if [ "$arg" = 'purplepixelhost' ]; then
new_args+=(-i ~/.ssh/purplepixelhost.id_rsa);
elif [ "$arg" = 'qiwib0xorz' ]; then
<?php
/**
* Script to Make Afvalophalingskalender Great Again for Ivago (the municipal
* waste management company for Ghent, Belgium):
* - make events last all day (so they appear on top of the calendar on
* Google Calendar, for instance)
* - do not use ALL CAPS for event summaries
*
* 1. Go to https://www.ivago.be/nl/particulier/afval/ophaling
* 2. Download the ICS for your street.