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
AlexZeitler / install.txt
Last active Feb 19, 2020 — forked from tkfm-yamaguchi/lang.map.diff
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/src-hilite-lesspipe.sh %s"
export LESS=' -R '
# add yaml support as shown in lang.map.diff
@AlexZeitler
AlexZeitler / setup-oh-my-zsh-powerlevel9k.sh
Created May 13, 2018
Installing zsh / oh-my-zsh / Powerlevel9k on Ubuntu 18.04
View setup-oh-my-zsh-powerlevel9k.sh
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf
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."
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
AlexZeitler / README.md
Created Feb 3, 2018 — forked from leosuncin/README.md
Install Powerline on Debian/Ubuntu
View README.md
  1. Install pip sudo apt-get install python-pip or wget https://bootstrap.pypa.io/get-pip.py && sudo python get-pip.py
  2. Install powerline sudo pip install powerline-status
  3. Download and install fonts git clone https://github.com/powerline/fonts.git && cd fonts && sh ./install.sh
  4. Add this lines to respective file
    .vimrc

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

@AlexZeitler
AlexZeitler / repro.txt
Created Nov 29, 2017 — forked from anonymous/repro.txt
vue.js / webpack / Windows 10 FCU WSL
View repro.txt
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # 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
View test.md
Backend-Text:	keines
Server:		keiner
@AlexZeitler
AlexZeitler / colorpalette.xml
Last active Oct 30, 2017
cmder dracula-ish theme
View colorpalette.xml
<key name="Palette1" modified="2017-10-30 21:49:58" build="161206">
<value name="Name" type="string" data="dracula"/>
<value name="ExtendColors" type="hex" data="00"/>
<value name="ExtendColorIdx" type="hex" data="0e"/>
<value name="TextColorIdx" type="hex" data="10"/>
<value name="BackColorIdx" type="hex" data="10"/>
<value name="PopTextColorIdx" type="hex" data="10"/>
<value name="PopBackColorIdx" type="hex" data="10"/>
<value name="ColorTable00" type="dword" data="00362a28"/>
<value name="ColorTable01" type="dword" data="00f993bd"/>
@AlexZeitler
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 http://fsprojects.github.io/Chessie/a-tale-of-3-nightclubs.html
Promise.all([
suitablePersonEnterGayBar(),
unsuitablePersonEnterGayBar(),
])
.then(result => result.map((person, i) => `Person ${i+1}: ${person.cost || ''}${person.reasons.join(' ')}`))
.then(result => console.log(`Person entries\n${result.join('\n')}`));
View gist:ea68c5be2cbacf9413c32fa131b0f556
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAABGCAIAAADq9Sl3AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAIWpJREFUeF7tnAd4VFUa9++9M5PeSIE0klCkKVIEMaBLsyEgCBbEtbvIimv5WFBRAcsqzUgRBASkNwHpzQAJEAIhhIQkpPeZZGbSMyXT7nm/98y9GcIkkwRk99n9vvk//yfPzZlzztzM/d33vOfcM2HAKaccyAmHUw7lhMMph3LC4ZRDOeFwyqGccDjlUE44nHIoJxxOOZQTDqccygmHUw7lhMMph3LC4ZRDOeFwyqGccDjlUE44rCKEmExQ1wDqKofW6MBiAZ6/ZULE5v+P6t8GR4MWypSgqoIGDW80gU4PtQ1QUy9aVSlaXS2UEL2GNyuJqchsKNPpdDx+9P8Bmc1QWAZnEmHDb2TRWvhsseWNvzkyHD1L/5z6Bqiuo8YDna45H2TjJvLtIki+If6efAN/JV/OJ/t/h8ZGsbBNkUuXsT4cOCr+ftdqbMQ3pV1dzxBL7kr3FA6DkVSoyZbfze/PNYwbr3tomH74Y4anphre+4RftBp+2QWrtsGS9dTLNsAPG8nqDZbfV2kzPqtT/y218Im4tEePJ486mToqLm9CduWret0ek7mUWBp4SwPhG4HcO1x4AnUaknAVPvqGDJtMeo7Ru/erdu2lcglVS1xaulLqauzZBw6ehtwikFdAURl1sRy0WrFDQY8/TgKDyOat9DgrD8ZPBhcXGP0EpN3saIxZsRJkMvL2O+Kvd63aOnj7bdrVFuvJ3K3uGRykqBTWbm+c8JraN6KYc82WsJlS0dkySUVgmPYvE8nM+WTm5+T9hbBoJWz7qvbse5k3+x286r/urPTbQ5KFe1y+2uIRc1h25Cp76SZzpcizQPmMpnGL2V
You can’t perform that action at this time.