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 / windowMovingAndSomeKeybindings.ahk
Created August 31, 2017 08:01
Script for AutoHotkey (https://autohotkey.com/) for Window Moving and some other keybindings
; This script was inspired by and built on many like it
; in the forum. Thanks go out to ck, thinkstorm, Chris,
; and aurelian for a job well done.
; Change history:
; November 07, 2006: Optimized resizing code in !RButton, courtesy of bluedawn.
; February 05, 2006: Fixed double-alt (the ~Alt hotkey) to work with latest versions of AHK.
; The Double-Alt modifier is activated by pressing
; Alt twice, much like a double-click. Hold the second
@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
#