Skip to content

Instantly share code, notes, and snippets.

View ikaros's full-sized avatar
🤿

Konstantin Kanellopoulos ikaros

🤿
View GitHub Profile

Keybase proof

I hereby claim:

  • I am ikaros on github.
  • I am ikaros (https://keybase.io/ikaros) on keybase.
  • I have a public key whose fingerprint is F499 7CA9 3411 9918 4352 D899 26A7 765C 7938 5731

To claim this, I am signing this object:

@ikaros
ikaros / gba
Created September 8, 2015 08:36
List Git Branches with age
#!/bin/sh
git for-each-ref \
--sort=committerdate \
--format='%(refname:short) * %(authorname) * %(committerdate:relative)' \
refs/remotes \
| column -t -s '*'
@ikaros
ikaros / creeper.sh
Created October 30, 2013 08:45
Minecraft Creeper for your 256-colors terminal
#!/bin/bash
function d()
{
echo -en "\e[30;48;5;$1m "
}
function c()
{
echo -en "\e[0m"
@ikaros
ikaros / .gitconfig
Created September 7, 2012 13:34
Git Config
[alias]
b = "branch"
ba = "branch -a"
st = "status"
pl = "log --graph --pretty=\"%Cgreen%h%Creset – %ai – %s (%Cblueby %cn%Creset)\""
slog = "log --pretty=\"%Cgreen%h%Creset – %ai – %s (%Cblueby %cn%Creset)\" HEAD~15..HEAD"
co = "checkout"
cob = "checkout -b"
hl = "log --pretty=\"%h\""
[color]
@ikaros
ikaros / lbook.rb
Created July 5, 2012 12:22
LDAP Addressbook for mutt commandline email client
#!/usr/bin/env ruby
require "rubygems"
require "yaml"
require "net/ldap" or raise "Please install 'net-ldap'"
class LBook
DEFAULT_ATTRIBUTES = ['mail', 'displayName', 'description']
@ikaros
ikaros / talking_reddit.rb
Created June 10, 2012 19:55 — forked from pachacamac/talking_reddit.rb
Talking Reddit Watchdog
require 'restclient'
require 'json'
subreddits = {
'minimalism' => 'http://www.reddit.com/r/minimalism.json?sort=new',
'programming' => 'http://www.reddit.com/r/programming.json?sort=top&t=day',
'lifeprotips' => 'http://www.reddit.com/r/lifeprotips.json?sort=new',
'ruby' => 'http://www.reddit.com/r/ruby.json?sort=new',
'linux' => 'http://www.reddit.com/r/linux.json?sort=new',
'netsec' => 'http://www.reddit.com/r/netsec.json?sort=new',
@ikaros
ikaros / gist:1981117
Created March 5, 2012 21:09
vim ruby omnicomplete
Vim 7.3 with built-in Omni Completion (use <c-x><c-o>, see :help ft-ruby-omni) for Ruby and Exuberant Ctags (use <c-]>, see :help ctags) for navigating your code and any gems you use.
@ikaros
ikaros / gist:640627
Created October 22, 2010 14:27
clean terminal logs in osx to make it load faster
sudo rm -f /private/var/log/asl/*.asl
head -c42 /dev/urandom | openssl enc -base64
find . -name '*.[ch]' | xargs etags