Skip to content

Instantly share code, notes, and snippets.

@josch
josch / file_1
Created September 7, 2009 06:09
file 1 content
@josch
josch / gist.1
Created September 7, 2009 06:46
gist(1) GIST gist(1)
NAME
gist: command line git pastebin:
SYNOPSIS
<command> | curl -d file_ext\[gistfile1\]=.py -d file_name\[gistfile1\]=file_1 --data-urlencode file_contents\[gistfile1\]@- -w \\n%\{redirect_url\}\\n gist.github.com/gists
DESCRIPTION
clone the resulting git repository with
#!/usr/bin/env python
"""
Info - get video information through gstreamer
copyright 2008 - Johannes 'josch' Schauer <[email protected]>
derived from discoverer.py from the python gstreamer examples.
kudos to Edward Hervey
This program is free software: you can redistribute it and/or modify
#!/usr/bin/env python
import pygst
pygst.require('0.10')
import os
import gst
from gobject import timeout_add, MainLoop
mainloop = MainLoop()
pipeline = gst.element_factory_make('playbin')
From f8b4a752dc41e81bca114e92838a41915fd87cb4 Mon Sep 17 00:00:00 2001
From: josch <[email protected]>
Date: Mon, 7 Dec 2009 08:29:45 +0000
Subject: [PATCH] added libts-bin, input-utils
---
pyneo-rootfs.sh | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pyneo-rootfs.sh b/pyneo-rootfs.sh
@josch
josch / file_1
Created February 23, 2010 05:24 — forked from anonymous/file_1
#!/usr/bin/env python
import sys
class VM:
max_space = 32
def __init__(self, program, initial_data):
self.program_store = list()
self.data_store = self.max_space*[0]
/*
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
@josch
josch / n900-rootfs.sh
Created December 29, 2010 23:47
generates a rootfs for nokia n900
#!/bin/sh -e
ROOTDIR="n900-chroot"
PACKAGES="ifupdown,openssh-server,udev,procps,netbase,vim,console-setup-mini,man-db,iproute"
PACKAGES="$PACKAGES,module-init-tools,wget,openssh-client,locales,sysklogd,klogd,input-utils,dnsutils"
PACKAGES="$PACKAGES,alsa-base,ntpdate,debconf-english,screen,less,console-tools,iputils-ping,vpnc,rsync"
PACKAGES="$PACKAGES,i2c-tools,watchdog"
cdebootstrap --flavour=minimal --include=$PACKAGES sid "$ROOTDIR"
@josch
josch / notes.tex
Created May 22, 2011 09:53
jacobs university esm4a quiz and exam questions and solutions
\documentclass[11pt,a4paper]{article}
\usepackage{amsmath}
\usepackage{listings}
\usepackage[utf8]{inputenc}
\begin{document}
\renewcommand{\theenumi}{(\alph{enumi})}
\renewcommand{\labelenumi}{\theenumi}
\section{Introduction}
@josch
josch / latex.py
Created June 4, 2011 05:08 — forked from EnigmaCurry/latex.py
A LaTeX filter for blogofile
"""
Render TeX blocks to png
This is a Blogofile filter. Place it in your _filters directory.
"""
import tempfile
import subprocess
import shutil
import shlex
import os