Skip to content

Instantly share code, notes, and snippets.

Cillier Burger cillierburger

  • ottonova
  • München, Deutschland
Block or report user

Report or block cillierburger

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cillierburger
cillierburger / State.js
Last active Apr 29, 2016
State.js - hold values and call named functions on state change
View State.js
var State = (function() {
var values = {
};
var before = {
};
var after = {
};
View post relay thing
<?php
// Simplest possible webhook/post relay thing
$forwardTo=[
'http://requestb.in/12qok4y1'
];
$post = file_get_contents('php://input');
foreach($forwardTo as $url) {
$ch = curl_init();
View Generate random, valid, RSA ID Number
var dob=800101;
var gen=6;
var nin = ''+dob + gen +
Math.floor(Math.random()*10) +
Math.floor(Math.random()*10) +
Math.floor(Math.random()*10) +
Math.floor(Math.random()*2) +
Math.floor(Math.random()*10);
var sumEven = 0;
var sumOdd = 0;
View simple_deamon_example.php
<?php
declare(ticks = 1);
echo "simple daemon\n";
// tick use required as of PHP 4.3.0
// signal handler function
@cillierburger
cillierburger / How to patch Ubuntu Lucid (10.04) against OpenSSL Heartbleed
Created Apr 8, 2014
How to patch Ubuntu Lucid (10.04) against OpenSSL Heartbleed
View How to patch Ubuntu Lucid (10.04) against OpenSSL Heartbleed
Add this to /etc/apt/sources.list
<snip>
deb http://security.ubuntu.com/ubuntu precise-security main restricted
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe
deb http://security.ubuntu.com/ubuntu precise-security multiverse
deb-src http://security.ubuntu.com/ubuntu precise-security multiverse
</snip>
You can’t perform that action at this time.