Skip to content

Instantly share code, notes, and snippets.

View JonGretar's full-sized avatar

Jon Gretar Borgthorsson JonGretar

View GitHub Profile
/*
* Copyright 2009 agile42 GmbH - All rights reserved
*
* Authors:
* - Martin Häcker <martin.haecker@agile42.com>
*/
// TODO: minimize this so only the actual dependencies are included
@import <AppKit/AppKit.j>
@implementation CalendarView: CPView
{
}
-(id)init {
self = [super initWithFrame:CGRectMake(0, 0, 200, 200)];
if (self) {
[self loadData];
}
@JonGretar
JonGretar / ssh_install_key
Created January 27, 2009 11:41
Uploads your ssh key to a host
#!/bin/sh
# USE: ssh_install_key username@some.host.com
KEY="$HOME/.ssh/id_rsa.pub"
if [ ! -f ~/.ssh/id_rsa.pub ];then
echo "private key not found at $KEY"
echo "* please create it with "ssh-keygen -t dsa" *"
echo "* to login to the remote host without a password, don't give the key you create with ssh-keygen a password! *"
exit