Skip to content

Instantly share code, notes, and snippets.

@LadyNamedLaura
LadyNamedLaura / sources.list
Created June 19, 2011 20:41
a sources.list file for debian wheezy
#
# deb cdrom:[Debian GNU/Linux testing _Wheezy_ - Official Snapshot i386 DVD Binary-1 20110613-03:37]/ wheezy contrib main
deb http://ftp.de.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.de.debian.org/debian/ squeeze main contrib non-free
deb http://ftp.nl.debian.org/debian/ wheezy main contrib non-free
deb http://ftp.be.debian.org/debian/ wheezy main contrib non-free
deb-src http://ftp.nl.debian.org/debian/ wheezy main contrib non-free
@LadyNamedLaura
LadyNamedLaura / gist:1170823
Created August 25, 2011 14:45
Idea for a Linux distibution
I have been thinking a lot about making my own custom Linux distribution
(current working name is "BurgieOS" but this is just because of lack of inspiration)
BASICS
- User and admin focused
- Focus on
- Use new techniques (systemd, btrfs, ...)
- cut the (legacy) crap (compat layers are available in separate packages)
- Dare to be different (in a way it still works)
# Compiled source #
###################
*.class
# OS generated files #
######################
.DS_Store?
ehthumbs.db
Icon?
Thumbs.db
@LadyNamedLaura
LadyNamedLaura / yum2smart.sh
Created November 25, 2011 15:13
Script to convert yum repositories to smart channels
#!/bin/sh
basearch=`rpmdb --showrc | awk '{ if($2=="_arch") print $3}'`
releasever=`rpm -q --qf "%{version}\n" --whatprovides redhat-release`
debug="false"
smart_channel="smart channel -y "
smart_mirror="smart mirror "
mirrors="false"
pre="false"
@LadyNamedLaura
LadyNamedLaura / systemd-analyze-dual.py
Created June 12, 2012 13:27
systemd-analyze-dual does what systemd-analyze does, but for system and user mode at the same time
#!/usr/bin/python
import getopt, dbus, sys, os
try:
import cairo
except ImportError:
cairo = None
def acquire_time_data():
@LadyNamedLaura
LadyNamedLaura / gist:3178095
Created July 25, 2012 19:37
patch for systemd/autogen.sh
diff --git a/autogen.sh b/autogen.sh
index bec43fa..c0ef51d 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -23,13 +23,12 @@ if [ -f .git/hooks/pre-commit.sample -a ! -f .git/hooks/pre-commit ] ; then
echo "Activated pre-commit hook."
fi
-GTKDOCIZE=$(which gtkdocize 2>/dev/null)
-if test -z $GTKDOCIZE; then
@LadyNamedLaura
LadyNamedLaura / home.automount
Created August 2, 2012 19:11
automount example
# Automatically generated by systemd-fstab-generator
[Unit]
SourcePath=/etc/fstab
DefaultDependencies=no
Conflicts=umount.target
Before=umount.target local-fs.target
[Automount]
Where=/home
@LadyNamedLaura
LadyNamedLaura / aasprintf.h
Created September 4, 2012 17:07
aasprintf: alloca based asprintf
#include <alloca.h>
#include <stdio.h>
#pragma once
/*
* (v)aasprintf macro:
* alloca based asprintf
*
* usage:
@LadyNamedLaura
LadyNamedLaura / P99_THROW_CALL_NEG_ERRNO.patch
Created December 4, 2012 16:19
THROW_CALL macro for use with functions that return a negative errno-style error code
diff -uNr p99-2012-12-03/p99/p99_try.h p99/p99/p99_try.h
--- p99-2012-12-03/p99/p99_try.h 2012-12-03 13:40:29.000000000 +0100
+++ p99/p99/p99_try.h 2012-12-04 17:13:46.116666909 +0100
@@ -345,6 +345,20 @@
#define P00_THROW_CALL_NEG(F, E, ...) \
p00_throw_call_neg(F(__VA_ARGS__), E, p00_unwind_top, P99_STRINGIFY(__LINE__), __func__, #F ", neg return")
+p99_inline
+int p00_throw_call_neg_errno(int p00_neg_errno,
+ errno_t p00_def,
@LadyNamedLaura
LadyNamedLaura / plot.svg
Last active December 11, 2015 03:38
C implementation of systemd-analyze {time,blame,plot} plot.svg is an example plot produced by this tool (I have no idea why my system creates 134 tty's)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.