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 /
Created May 13, 2018
Installing zsh / oh-my-zsh / Powerlevel9k on Ubuntu 18.04
sh -c "$(curl -fsSL"
git clone ~/.oh-my-zsh/custom/themes/powerlevel9k
mkdir ~/.local/share/fonts/
mv PowerlineSymbols.otf ~/.local/share/fonts/
fc-cache -vf ~/.local/share/fonts/
mkdir ~/.config/fontconfig/conf.d/
mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/
echo "Log out of your session and login again."
AlexZeitler / install.txt
Last active Dec 12, 2019 — forked from tkfm-yamaguchi/
source-highlight's language definition file for YAML
View install.txt
apt-get install source-highlight
# update .bashrc / .zshrc:
export LESSOPEN="| /usr/share/source-highlight/ %s"
export LESS=' -R '
# add yaml support as shown in

Keybase proof

I hereby claim:

  • I am alexzeitler on github.
  • I am alexzeitler ( on keybase.
  • I have a public key ASB0qww7uSPAMkQCwMlF3wDCa-RQCliGbSSl4H7W1nx9yAo

To claim this, I am signing this object:

AlexZeitler / siren_api.yml
Created Sep 20, 2019 — forked from kevinswiber/siren_api.yml
Siren definitions for Open API Specification
View siren_api.yml
swagger: '2.0'
title: Siren API
description: Template for a Siren API
version: '0.1.0'
- http
- https
basePath: /
AlexZeitler /
Last active Sep 2, 2019
Run Atom / Visual Studio Code on Ubuntu via RDP
# Error before fixing:
# Xlib: extension "XInputExtension" missing on display ":10.0".
# Xlib: extension "XInputExtension" missing on display ":10.0".
#Find Atom / VS Code installation folder, e.g. /usr/share/atom or /usr/share/code
dpkg -L atom
dpgk -L visual-studio-code
#Find libxcb1 installation folder, e.g. /usr/lib/x86_64-linux-gnu/
dpkg -L libxcb1
AlexZeitler / gist:2821442
Created May 28, 2012
Custom datetime formatting with JSON.NET and ASP.NET Web API
View gist:2821442
var config = GlobalConfiguration.Configuration;
var settings = new JsonSerializerSettings();
settings.Converters.Add(new IsoDateTimeConverter()
DateTimeFormat = "dd.MM.yyyy"
config.Formatters.Add(new JsonNetFormatter(settings));
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
View nginx_to_iis.conf
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/;
events {
worker_connections 1024;
View es6-abstract-class-example.js
'use strict';
class Abstract {
// A static abstract method.
static foo() {
if (this === Abstract) {
// Error Type 2. Abstract methods can not be called directly.
throw new TypeError("Can not call static abstract method foo.");
} else if ( === {
// Error Type 3. The child has not implemented this method.
throw new TypeError("Please implement static abstract method foo.");
View Dockerfile
FROM fluent/fluentd:v0.12.34
USER root
COPY ./etc/* /fluentd/etc/
COPY /fluentd/
RUN apk add --update --virtual .build-deps \
sudo build-base ruby-dev \
You can’t perform that action at this time.