Skip to content

Instantly share code, notes, and snippets.

Alexander Zeitler AlexZeitler

Block or report user

Report or block AlexZeitler

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
AlexZeitler / node-cluster-messaging.js
Created Apr 29, 2017 — forked from jpoehls/node-cluster-messaging.js
Simple message passing between cluster master and workers in Node.js
View node-cluster-messaging.js
var cluster = require('cluster');
if (cluster.isWorker) {
console.log('Worker ' + + ' has started.');
// Send message to master process.
process.send({msgFromWorker: 'This is from worker ' + + '.'})
// Receive messages from the master process.
AlexZeitler /
Last active Mar 17, 2019
create selfsigned certificate with subject alternative name
#!/usr/bin/env bash
mkdir ~/ssl/
openssl genrsa -des3 -out ~/ssl/rootCA.key 2048
openssl req -x509 -new -nodes -key ~/ssl/rootCA.key -sha256 -days 1024 -out ~/ssl/rootCA.pem
AlexZeitler / gist:2c24a4d8ee10775f330447ff63bf19dc
Created Feb 12, 2017 — forked from digitaljhelms/gist:4287848
Git/GitHub branching standards & conventions
View gist:2c24a4d8ee10775f330447ff63bf19dc


Quick Legend

Instance Branch Description, Instructions, Notes
AlexZeitler /
Last active Feb 12, 2017 — forked from christopher-hopper/
Resize a Hard Disk for a Virtual Machine provisioned using Vagrant from a Linux base box to run using VirutalBox.

Resize a Hard Disk for a Virtual Machine

Our Virtual Machines are provisioned using Vagrant from a Linux base box to run using VirutalBox. If the Hard Disk space runs out and you cannot remove files to free-up space, you can resize the Hard Disk using some VirtualBox and Linux commands.

Some assumptions

The following steps assume you've got a set-up like mine, where:

AlexZeitler / cpu-bound.js
Created Oct 25, 2016 — forked from MikeBild/cpu-bound.js
Node.js - CPU bound operations with Rx
View cpu-bound.js
const RxNode = require('rx-node');
const Rx = require('rx');
const spawn = require('child_process').spawn;
RxNode.fromStream(spawn('find', ['/','-type','f','-exec', 'cat', '{}', '\+']).stdout)
.map(x => x.toString())
.map(x => RxNode.fromStream(spawn('./word-count.js', [x]).stdout))
.map(x => x.toString())
.do(x => console.log(x))
View doc.json
"_id" : ObjectId("57e3057fd438ef2dcff18090"),
"name" : "MongoDB",
"type" : "Database"
AlexZeitler /
Last active Sep 15, 2016
Removing big files from Git repository history in a batch
# Then find the oldest commit containing the unwanted files
# ./ <PathToFileContainingTheBigFilesToRemove> <OldestCommitSHA>
cd /path/to/your/git/repository
./ files.txt 9e5bc93
AlexZeitler / hypermediaflow.js
Last active Jan 22, 2017
hypermedia api flow
View hypermediaflow.js
'use strict';
const api = require('./lib')
const customer = {
companyName1: 'PDMLab'
'http://localhost:3000', // customer service root doc based on e.g. Siren
View twittercard.html
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@nossued">
<meta name="twitter:creator" content="@nossued">
<meta name="twitter:title" content=".NET Open Space Süd in Karlsruhe">
<meta name="twitter:description" content="Gute Gespräche zur Software-Entwicklung fern ab einer festgelegten Agenda.">
<meta name="twitter:image" content="">
AlexZeitler /
Last active Jun 4, 2016
Remove dots at login screen (not lock screen!) on Ubuntu 14.04
sudo xhost +SI:localuser:lightdm
sudo su lightdm -s /bin/bash
dbus-launch gsettings set com.canonical.unity-greeter draw-grid false
# output No protocol specified
# dots are gone
# to remove them from the lock screen just run
gsettings set com.canonical.unity-greeter draw-grid false
You can’t perform that action at this time.