Skip to content

Instantly share code, notes, and snippets.

Fabian Frank fabifrank

Block or report user

Report or block fabifrank

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
@fabifrank
fabifrank / remove-git-submodule
Last active May 21, 2019
Removing a git submodule is a mess... some bash script to ease the process and to make sure there's nothing left unsaved before removing.
View remove-git-submodule
#!/usr/bin/env bash
if [ -z "$1" ]; then
echo "Missing submodule"
exit 1
fi
sn=$1
# verify that the folder is not deleted while there are unsaved changes
View extract-json-prop.sh
#!/bin/bash
# read json entries line by line in a file and extract property of it
# usage:
# ./extract-json-prop.sh <FILENAME> <QUERY>
# example
# ./extract-json-prop.sh test.json .query.test
while IFS='' read -r line || [[ -n "$line" ]]; do
echo $line | jq "$2"
done < "$1"
View .vimrc
if &compatible
set nocompatible
endif
set runtimepath+=/Users/skober/.cache/dein/repos/github.com/Shougo/dein.vim
if dein#load_state('/Users/skober/.cache/dein')
call dein#begin('/Users/skober/.cache/dein')
You can’t perform that action at this time.