View build.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "======= Sysprog Build Script =======" | |
for f in $(find $SrvDir* -maxdepth 0 -type d ); | |
do | |
echo "Compiling $f" | |
sourcefile="" | |
for sf in $(find $f -iregex '.*\(c\)' -printf "%f\n") | |
do |
View gist:5483606
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir a$1 # create folder | |
touch a$1/readme # create readme | |
touch a$1/a$1.c # create main c file | |
## Template for readme | |
echo "Autor: Julius Haertl | |
Systemprogrammierung SS 2013 | |
Blatt 2: Prozesse unter Linux |
View semaphores_test.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/types.h> | |
#include <sys/ipc.h> | |
#include <sys/sem.h> | |
#define DEBUG 1 | |
static int semID; |
View gist:5905622
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# uberload | |
# usage: uberload <folder> <source> | |
# this script uploads a given file or folder to a folder on my uberspace host | |
# if the source is a folder it gets compressed using pbzip2 | |
# the url of the file will be put into the clipboard (os x) | |
# notification when the file is uploaded using terminal-notifies | |
# this also works with any other ssh server | |
SSHUSER="sshuser" |
View Guardfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
# gem install guard | |
# brew install rubber | |
require 'guard/guard' | |
module ::Guard | |
class Thesis < ::Guard::Guard | |
def run_all | |
end |
View gist:8665354
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The following SSH command responded with a non-zero exit status. | |
Vagrant assumes that this means the command failed! | |
puppet agent --onetime --no-daemonize --user puppet --verbose --debug --certname test01.example.com --certdir=/tmp/puppet-1390904213-511/certs --privatekeydir=/tmp/puppet-1390904213-511/private_keys --color=false --server puppet.example.com --detailed-exitcodes || [ $? -eq 2 ] | |
Stdout from the command: | |
Debug: Failed to load library 'selinux' for feature 'selinux' | |
Debug: Using settings: adding file resource 'confdir': 'File[/etc/puppet]{:path=>"/etc/puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' | |
Debug: Using settings: adding file resource 'vardir': 'File[/var/lib/puppet]{:path=>"/var/lib/puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' |
View gist:cb8e1ed5a89519c7a1d0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# Change byte order of 4-byte words | |
# Usage: ./revert.py "\x00\x01\x02\x03" | |
# | |
# output \x03\x02\x01\x00 | |
import sys | |
if len(sys.argv) != 2: |
View gist:68487e0d545b17509c0c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From ed547aeb2c6f10da3639e5212b47f4e3aea450d6 Mon Sep 17 00:00:00 2001 | |
From: Julius Haertl <jus@bitgrid.net> | |
Date: Tue, 9 Sep 2014 22:31:49 +0200 | |
Subject: [PATCH] Patch for sidebar iteration functionality | |
sidebar-new will move the selected folder to the next with new messages. | |
If the end is reached, it will start at the top. | |
Useful macros would be: |
View gist:b9d1f112360c2a839c23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am juliushaertl on github. | |
* I am juliushaertl (https://keybase.io/juliushaertl) on keybase. | |
* I have a public key whose fingerprint is 8E35 BE84 64C4 39E6 66C5 19DB 4C61 4C6E D2CD E6DF | |
To claim this, I am signing this object: |
View hackzogtum.user.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Hackzogtum Donate via Amazon | |
// @version 1.70 | |
// @description Donate money to Hackzogtum, while shopping at different Shops | |
// @match *://www.amazon.de/* | |
// @grant GM_getValue | |
// @grant GM_setValue | |
// @updateURL |
OlderNewer