Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Mitscherlich Wei Mitscherlich

🎯
Focusing
Block or report user

Report or block Mitscherlich

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
@Mitscherlich
Mitscherlich / ngrok.dockerfile
Last active May 7, 2019
Dockerfile based on ngrok 1.7
View ngrok.dockerfile
FROM golang:alpine as builder
LABEL maintainer="Mitscherlich <mitscherlich36@gmail.com>" \
provider="hteen <i@hteen.cn>"
COPY . /tmp
# install ngrok dependencies
RUN apk add --no-cache git make openssl
# clone ngrok source code and build binary
@Mitscherlich
Mitscherlich / trash.sh
Last active Apr 18, 2019
shell script for trashing file(s) on macOS/Linux -- or so called 'safe rm'
View trash.sh
#!/bin/sh
TRASH_DIR="$HOME/.Trash"
TRASH_HISTORY="$HOME/.trash_history"
if [ ! -d "$TRASH_DIR" ]; then
mkdir -p $TRASH_DIR
fi
stash() {
for path in "$@"; do
@Mitscherlich
Mitscherlich / amber.zsh-theme
Created Dec 28, 2018
Yet another oh-my-zsh theme -- Amber
View amber.zsh-theme
# Inspired by zsh theme robbyrussell, bira, bureau and node
# oh-my-zsh Theme Amber
### NVM
ZSH_THEME_NVM_PROMPT_PREFIX="%{$fg_bold[green]%}⬢%{$reset_color%} "
ZSH_THEME_NVM_PROMPT_SUFFIX=""
### Git [±master ▾●]
You can’t perform that action at this time.