Skip to content

Instantly share code, notes, and snippets.

View janl's full-sized avatar
🛋️
Drop ICE

Jan Lehnardt janl

🛋️
Drop ICE
View GitHub Profile
### to set arrow-up/down for history search, add this to .inputrc:
## alternate mappings for "page up" and "page down" to search the history
#"\e[5~": history-search-backward
#"\e[6~": history-search-forward
@janl
janl / Test
Created August 22, 2012 11:20
Test
Test
/*
* Copyright 2010 Facebook
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
> ifconfig en2
en2: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=2b<RXCSUM,TXCSUM,VLAN_HWTAGGING,TSO4>
ether c8:2a:14:59:2b:e3
inet6 fe80::ca2a:14ff:fe59:2be3%en2 prefixlen 64 scopeid 0x4
inet 10.0.0.15 netmask 0xffffff00 broadcast 10.0.0.255
inet 10.0.0.50 netmask 0xff000000 broadcast 10.255.255.255
inet 10.0.0.51 netmask 0xff000000 broadcast 10.255.255.255
media: autoselect (1000baseT <full-duplex,flow-control,energy-efficient-ethernet>)
status: active
@janl
janl / rss-subscribers.sh
Created September 25, 2012 17:11
Bash script to parse Apache log for a count of RSS subscribers and email it to you
#!/bin/sh -e
# sh for portability, -e for halt on errors
# Schedule this to run once a day with cron. Doesn't matter what time since it parses yesterday's hits (by default).
# I only tested this on the Marco.org server, which runs CentOS (RHEL). No idea how it'll work on other distributions, but it's pretty basic.
# Required variables:
RSS_URI="/rss"
MAIL_TO="your@email.com"
LOG_FILE="/var/log/httpd/access_log"
@janl
janl / couchdb-plugins.md
Created October 29, 2012 16:30
The CouchDB Plugin System

The CouchDB Plugin System

This document describes a possible future CouchDB Plugin system.

This is a work in progress, all the feedback is welcome. Please simplify and rewrite this as you see fit.

Once this is a solid description of what we want to build, we cna start building it.

High Level User-Oriented Walkthrough

@janl
janl / gist:4162108
Created November 28, 2012 15:50
This made my week
Hallo Jan,
ich habe Deinen Kontakt über github gefunden und habe eine kurze Frage an Dich.
Für eine neue Fernsehshow sind wir auf der Suche nach Geeks im Alter von 18- 32 Jahren, die außergewöhnliche Berufe, Studiengänge oder ganz bestimmte Faibles bzw. Leidenschaften haben. Das können ganz unterschiedliche Typen sein: Insektensammler, Rollenspieler, Luft- und Raumfahrttechniker, Erfinder etc.
Wir suchen intelligente, sympathische Männer, die prinzipiell vielleicht eher zurückhaltender und schüchtern sind, aber große Lust auf ein tolles Abenteuer im Ausland haben.
Zum Konzept der Sendung
In dieser Sendung werden aus acht Frauen und acht intelligenten Männern Teams gebildet, die unterschiedliche Herausforderungen gemeinsam oder einzeln bestreiten müssen (keine Ekelprüfungen à la Dschungelcamp etc.!). Dabei geht es nicht darum jemanden zu verkuppeln, sondern dass sich die Spielpartner gegenseitig motivieren und als Team ergänzen sollen. In jeder Sendung scheidet ein Team aus. Alle Teams haben das gleich
diff --git a/Library/Formula/erlang.rb b/Library/Formula/erlang.rb
index 9f081d6..7b2f811 100644
--- a/Library/Formula/erlang.rb
+++ b/Library/Formula/erlang.rb
@@ -1,38 +1,39 @@
require 'formula'
class ErlangManuals < Formula
- url 'http://erlang.org/download/otp_doc_man_R15B02.tar.gz'
- sha1 'e50cc887b36b0b2f158a87fa5b21cb2b2c6679b0'
@janl
janl / gist:4162790
Created November 28, 2012 17:42
Brew Doctor
Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.
Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
/usr/local/bin/couch-config
@janl
janl / gist:4162798
Created November 28, 2012 17:43
brew doctor
Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.
Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
/usr/local/bin/couch-config