Skip to content

Instantly share code, notes, and snippets.

View lschuermann's full-sized avatar

Leon Schuermann lschuermann

View GitHub Profile
@lschuermann
lschuermann / BGB Zusammenfassung.md
Created May 7, 2016 17:20
Rechtskunde Lernzettel (nach Gesetzbüchern)

Rechtskunde Lernzettel BGB

Medienrecht

Tatsachenbehauptung Meinungsäußerung 
empirisch persönlich
objektiv subjektiv
wahr / unwahr falsch / richtig

Ehrverletzung als sonstiges Recht (§ 823 I BGB)

@lschuermann
lschuermann / test.java
Created April 16, 2016 10:06
Pushdown automaton test
package xyz.lschuermann.jPDAsim.test;
import xyz.lschuermann.jPDAsim.PDAException;
import xyz.lschuermann.jPDAsim.PushdownAutomaton;
import xyz.lschuermann.jPDAsim.State;
import xyz.lschuermann.jPDAsim.StateOption;
/**
* Created by leons on 12.03.15.
*/

Keybase proof

I hereby claim:

  • I am lschuermann on github.
  • I am lschuermann (https://keybase.io/lschuermann) on keybase.
  • I have a public key whose fingerprint is C1C1 9879 C6A8 7D1D B727 3767 A963 FE09 A014 AFC9

To claim this, I am signing this object:

#!/bin/sh
# These environment variables are sometimes needed by the running daemons
export USER=backer
export HOME=/home/backer
# Change directory to script-location
#RW_SCRIPT_DIR=`$(cd $(dirname "${BASH_SOURCE[0]}")) && pwd )`
#cd $RW_SCRIPT_DIR
@lschuermann
lschuermann / example-output.txt
Created December 19, 2015 16:57
Timed deamontools-script.
--> RW-Script. Next cycle at Sa 19. Dez 16:56:59 UTC 2015 (Sleep-duration = 1 seconds).
--> Waiting for cycle...
--> Executing script.
Hello World
--> All done here. I'm about to die and let deamontools create a new instance of me.
@lschuermann
lschuermann / README.md
Last active December 28, 2015 11:02
Script to search for a specific number. Useful on some Opta3 - / Testen.io employment tests.

Opta3 / Testen.io helper script

Search for a number with specified characteristics. Useful on some Opta3 / Testen.io employment-tests.

Disclaimer

The software is provided under the MIT-License. Therefore, I am not responsible for any errors in the software and their consequences relating your test-score and / or computer-system.

Software Requirements

Script is a Node.js-Application, so Node must be installed.

import UIKit;
class ProjectsController: UITableViewController {
var projects: JSON = JSON("{\"hello\": \"world\"}");
override func viewDidLoad() {
super.viewDidLoad()
projects = JSON(url:"http://hasi:bugsbunny@pledgy.hasi.it/api/json/projects");
router.post('/project/:id/pledge', function(req, res, next) {
var pledge = {
user: req.body.pledge_user,
amount: req.body.pledge_amount,
public: req.body.pledge_public
}
db.pledgeForProject(req.params.id, pledge, function () {
res.status(200).send('done');
});
});
@lschuermann
lschuermann / tarsnap.backup.plist
Last active October 11, 2015 21:06
Tarsnap w/ launchd: Script-collection
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>tarsnap.backup</string>
<key>Program</key>
<string>[PATH_TO_HOME]/.shell_scripts/tarsnap_backup.sh</string>
<key>RunAtLoad</key>
<false/>