Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am matthiasr on github.
  • I am matthiasr (https://keybase.io/matthiasr) on keybase.
  • I have a public key whose fingerprint is F46A 5FAA 9508 311D DBCC 403A 9A7D 111C AE60 D44B

To claim this, I am signing this object:

; This creates permutations of lists in lexicographical order.
; Solves http://projecteuler.net/index.php?section=problems&id=24
; assumes l is ordered
(define (ordered-insert v l) (cond ((null? l) (list v))
((> v (car l)) (cons (car l) (ordered-insert v (cdr l))))
(else (cons v l))))
(define (without v l) (cond
((null? l) l)
schließe alle twitter-tabs.
(hier stand ganz viel wie man das mit dabr.co.uk macht, aber das ist umständlich und unzuverlässig)
gehe auf https://mobile.twitter.com/, rufe dein profil auf und lösche alle komischen tweets und retweets.
@matthiasr
matthiasr / problem.c
Created January 27, 2011 16:43
from e2fsck source on DragonFlyBSD
/*
* problem.c --- report filesystem problems to the user
*
* Copyright 1996, 1997 by Theodore Ts'o
*
* %Begin-Header%
* This file may be redistributed under the terms of the GNU Public
* License.
* %End-Header%
*/
@matthiasr
matthiasr / pkgsrc-screen-dragonfly_master.patch
Created February 12, 2011 00:01
patch for pkgsrc/misc/screen: use utmpx on current DragonFly
commit 4bb5d970f11f92a0ee8a8e21fe326ec9bf201961
Author: Matthias Rampke <matthias@rampke.de>
Date: Sat Feb 12 01:00:30 2011 +0100
screen: use utmpx on current DragonFly
diff --git a/misc/screen/Makefile b/misc/screen/Makefile
index 4f5f952..fced101 100644
--- a/misc/screen/Makefile
+++ b/misc/screen/Makefile
@matthiasr
matthiasr / 0x1058_0x1021.patch
Created February 13, 2011 22:45
patch for the umass driver to know about the Western Digital HDD 1021 quirks
diff --git a/sys/dev/usbmisc/umass/umass.c b/sys/dev/usbmisc/umass/umass.c
index 9107228..64c89bb 100644
--- a/sys/dev/usbmisc/umass/umass.c
+++ b/sys/dev/usbmisc/umass/umass.c
@@ -920,6 +920,11 @@ static struct umass_devdescr_t umass_devdescrs[] = {
.proto = UMASS_PROTO_SCSI | UMASS_PROTO_BBB,
.quirks = NO_INQUIRY_EVPD
},
+ /* Western External HDD 1021 */
+ { .vendor = 0x1058, .product = 0x1021, .release = WILDCARD_ID,
@matthiasr
matthiasr / pcc-1.0.0-dragonfly.patch
Created February 24, 2011 08:45
patch for bringing pcc 1.0.0-BETA up to date on DragonFly BSD
diff --git a/configure b/configure
index 9395d88..406f602 100755
--- a/configure
+++ b/configure
@@ -1944,6 +1944,7 @@ case "$target_os" in
tls=yes
case "$target_cpu" in
i?86) targmach=i386 ;;
+ x86_64) targmach=amd64 ;;
esac
@matthiasr
matthiasr / gist:842014
Created February 24, 2011 10:12
pkgsrc lang/pcc-current: version bump to 1.0-BETA-20110224
diff --git a/lang/pcc-current/Makefile b/lang/pcc-current/Makefile
index 06070e7..d971703 100644
--- a/lang/pcc-current/Makefile
+++ b/lang/pcc-current/Makefile
@@ -1,8 +1,8 @@
# $NetBSD: Makefile,v 1.5 2010/08/10 13:39:56 asau Exp $
DISTNAME= pcc-${DATE_STR}
-PKGNAME= pcc-current-0.9.9.20-${DATE_STR}
-DATE_STR= 101129
@matthiasr
matthiasr / gist:842012
Created February 24, 2011 10:11
pkgsrc lang/pcc-current DragonFly BSD x86_64 support
diff --git a/lang/pcc-current/distinfo b/lang/pcc-current/distinfo
index d2902a2..1b853ad 100644
--- a/lang/pcc-current/distinfo
+++ b/lang/pcc-current/distinfo
@@ -4,3 +4,4 @@ SHA1 (pcc-101129.tgz) = bc5eb81cc7ae7969b6e93fc9a71d7e5f7c08ac8c
RMD160 (pcc-101129.tgz) = 119aff203be93ac895432774765632f95f81548c
Size (pcc-101129.tgz) = 642663 bytes
SHA1 (patch-aa) = 3ca9662e342d240f2d896e95a65261e7e76cda79
+SHA1 (patch-ab) = 2140136f459645d1141668f126475d46ea49648a
diff --git a/lang/pcc-current/patches/patch-ab b/lang/pcc-current/patches/patch-ab
@matthiasr
matthiasr / autokernconf.patch
Created March 15, 2011 11:28
DragonFly build system: Choose the currently running KERNCONF by default
commit d15d496a8cc793545cba96c9626df2b99a23aaf6
Author: Matthias Rampke <matthias@rampke.de>
Date: Tue Mar 15 10:55:03 2011 +0100
Choose the currently running KERNCONF by default
If KERNCONF is set neither in the environment nor on the 'make buildkernel' command line, set it to the output of 'uname -i'. A straightforward kernel upgrade thus reduces to
make buildkernel