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
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.");
AlexZeitler /
Created Jul 12, 2018 — forked from rochacbruno/
Docker-compose wait-to-start

When unsing docker compose you can have a problem with the order of dependent linked containers

The solution is to start a script which tries to access a service and waits until it gets ready before loading your program

AlexZeitler / pipeline.gdsl
Created Jul 12, 2018 — forked from ggarcia24/pipeline.gdsl
GDSL supporting pipeline declarative
View pipeline.gdsl
//The global script scope
def ctx = context(scope: scriptScope())
//What things can be on the script scope
contributor(ctx) {
method(name: 'pipeline', type: 'Object', params: [body: Closure])
property(name: 'params', type: 'org.jenkinsci.plugins.workflow.cps.ParamsVariable')
property(name: 'env', type: 'org.jenkinsci.plugins.workflow.cps.EnvActionImpl.Binder')
property(name: 'currentBuild', type: 'org.jenkinsci.plugins.workflow.cps.RunWrapperBinder')
property(name: 'scm', type: 'org.jenkinsci.plugins.workflow.multibranch.SCMVar')
AlexZeitler / .gitlab-ci.yml
Created Jul 11, 2018 — forked from thornbill/.gitlab-ci.yml
Example Node GitLab CI Yamlfile
View .gitlab-ci.yml
# Official framework image. Look for the different tagged releases at:
image: node:6
- npm install
# This folder is cached between builds
AlexZeitler / requirements.txt
Created Jul 2, 2018 — forked from jarpy/requirements.txt
Serverless Elasticsearch Curator for AWS Lambda
View requirements.txt
AlexZeitler / install.txt
Last active Jun 11, 2018 — forked from zeroyonichihachi/
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
View async-await-promise-all-error-handling.js
const defaultFirst = 'A`'
const defaultSecond = 'B`'
const defaultThird = 'C`'
async function doFirst() {
// throw new Error('Error A')
return await 'A'
async function doSecond() {
AlexZeitler /
Created Feb 3, 2018 — forked from leosuncin/
Install Powerline on Debian/Ubuntu
  1. Install pip sudo apt-get install python-pip or wget && sudo python
  2. Install powerline sudo pip install powerline-status
  3. Download and install fonts git clone && cd fonts && sh ./
  4. Add this lines to respective file

set rtp+=/usr/local/lib/python2.7/dist-packages/powerline/bindings/vim/
" Always show statusline

AlexZeitler / repro.txt
Created Nov 29, 2017 — forked from anonymous/repro.txt
vue.js / webpack / Windows 10 FCU WSL
View repro.txt
curl -o- | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/" ] && \. "$NVM_DIR/" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
nvm install 8.4.0
npm install -g vue-cli
vue init webpack my-project
cd my-project
AlexZeitler / async-either-with-promise.js
Created Sep 11, 2017 — forked from MikeBild/async-either-with-promise.js
Async Railway Oriented Programming in JS
View async-either-with-promise.js
#!/bin/env node
//thx to
.then(result =>, i) => `Person ${i+1}: ${person.cost || ''}${person.reasons.join(' ')}`))
.then(result => console.log(`Person entries\n${result.join('\n')}`));
You can’t perform that action at this time.