Skip to content

Instantly share code, notes, and snippets.

Heiko Mathes heikomat

Block or report user

Report or block heikomat

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
@heikomat
heikomat / _settings.md
Last active Dec 13, 2018
make osx bearable (this is opinionated)
View _settings.md

Hidden system settings (click to expand the bulletpoints)

save screenshots to a folder on the desktop, instead of directly on the desktop
mkdir ~/Desktop/screenshots
defaults write com.apple.screencapture location ~/Desktop/screenshots
View gist:dbe5f23be2a6fc36b23709cf35e647c5
{
"workbench.statusBar.visible": true,
"files.insertFinalNewline": true,
"editor.scrollBeyondLastLine": false,
"editor.emptySelectionClipboard": false,
"editor.tabSize": 2,
"eslint.autoFixOnSave": true,
"tslint.autoFixOnSave": true,
"vsicons.projectDetection.autoReload": true,
"editor.rulers": [80, 120],
View cx2072x_sound_debian.sh
#!/bin/bash
system=$(lsb_release --description)
system_name=$(lsb_release --id --short)
system_version=$(lsb_release --release --short)
system_main_version=${system_version%%.*}
is_debian=false
is_ubuntu=false
is_mint=false
View e200ha_linux.md

Install sudo:

su
apt install sudo
addgroup YOURUSERNAME sudo
reboot

Install Chrome

@heikomat
heikomat / nvm_fast_reuse.md
Last active Mar 12, 2018
How to switch to fast-reuse for faster nvm loading
View nvm_fast_reuse.md

Install nvm-ng

  • If you use nvm via the zsh-plugin, disable it by removing nvm from the plugins of your ~/.zshrc
  • If you have nvm installed via the install-script from creationix, unistall it as described here
  • do a regular nvm-ng-install as described here

BE SURE TO NOT HAVE A PREFIX CONFIGURED IN NPM!!!

Setting a prefix changes the installation directory for global packages and is not supported by nvm.

if npm config get prefix is either not set, or a subpath of echo $NVM_DIR, then you're good to go. Otherwise run npm config delete prefix to unset your prefix.

@heikomat
heikomat / .bashrc for windows
Created Mar 11, 2018
bashrc for linux subsystem on windows (incl. nvm)
View .bashrc for windows
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@heikomat
heikomat / .zshrc for windows
Created Mar 11, 2018
zshrc for linux subsystem on windows (incl. docker)
View .zshrc for windows
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/home/heiko/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="robbyrussell"
@heikomat
heikomat / js_basics.md
Last active Mar 10, 2018
Introduction to ioc, di, functions, scopes, callbacks, promises and async/await
View js_basics.md

Inversion of Control via Dependency Injection

Without dependency injection

engine.ts

export class Engine {}

car.ts

@heikomat
heikomat / working_environment_overview.md
Last active Feb 22, 2018
Working Environment Overview
View working_environment_overview.md

Sprachen

Wer macht was

Sprache Beschreibung Sprachtyp
HTML Beschreibt was für Elemente es gibt Markup-Sprache
CSS Beschreibt wie die Elemente aussehen Stylesheet-Sprache
JavaScript Beschreibt was passieren soll Programmier-Sprache

Erweiterungen

| Sprache | Erweitert | Beschreibung |

You can’t perform that action at this time.