Skip to content

Instantly share code, notes, and snippets.

View florianrusch's full-sized avatar
💪
Happy to help out

Florian Rusch florianrusch

💪
Happy to help out
View GitHub Profile
@florianrusch
florianrusch / git-author-rewrite.sh
Created August 21, 2019 09:09
Shell script to rewrite the author of git commits
#!/bin/sh
# $1: OLD EMAIL
# $2: CORRECT NAME
# $3: CORRECT EMAIL
git filter-branch --env-filter '
OLD_EMAIL="$1"
CORRECT_NAME="$2"
CORRECT_EMAIL="$3"
@florianrusch
florianrusch / createCompletLaTeXFile.py
Last active June 13, 2018 11:40
Replaces the `\import` LaTeX command with the contend of the imported file
#!/usr/bin/python
import re
_INPUT_FILE = 'input.tex'
_OUTPUT_FILE = 'output.tex'
_BASE_PATH = './Ausarbeitung/'
_PATTERN = r'(?<=\\import{)(.*)(?=})'
def file_get_contents(filename):
@florianrusch
florianrusch / usefull_wordpress_plugins.md
Last active May 18, 2018 22:38
Liste mit Sinnvollen WordPress Plugins
@florianrusch
florianrusch / initMac.sh
Last active April 16, 2022 03:00
Init Mac file
#/bin/sh
#
# Reasonably sets OS X defaults. My sources:
# - https://ss64.com/osx/syntax-defaults.html
# - https://github.com/nicksp/dotfiles/blob/master/osx/set-defaults.sh
# - https://github.com/mathiasbynens/dotfiles/blob/master/.macos
#