Skip to content

Instantly share code, notes, and snippets.

💪
Happy to help out

Florian Rusch florianrusch

💪
Happy to help out
  • Florian Rusch Webservices
  • Germany
View GitHub Profile
@florianrusch
florianrusch / windowMovingAndSomeKeybindings.ahk
Created Aug 31, 2017
Script for AutoHotkey (https://autohotkey.com/) for Window Moving and some other keybindings
View windowMovingAndSomeKeybindings.ahk
; 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 / usefull_wordpress_plugins.md
Last active May 18, 2018
Liste mit Sinnvollen WordPress Plugins
View usefull_wordpress_plugins.md
@florianrusch
florianrusch / createCompletLaTeXFile.py
Last active Jun 13, 2018
Replaces the `\import` LaTeX command with the contend of the imported file
View createCompletLaTeXFile.py
#!/usr/bin/python
import re
_INPUT_FILE = 'input.tex'
_OUTPUT_FILE = 'output.tex'
_BASE_PATH = './Ausarbeitung/'
_PATTERN = r'(?<=\\import{)(.*)(?=})'
def file_get_contents(filename):
View debug.log
2019/05/20 15:31:07 [INFO] Terraform version: 0.11.14
2019/05/20 15:31:07 [INFO] Go runtime version: go1.12.5
2019/05/20 15:31:07 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.11.14/bin/terraform", "plan", "-out=test.tfplan", "-var-file=test.tfvars", "modules/"}
2019/05/20 15:31:07 [DEBUG] Attempting to open CLI config file: /Users/fr/.terraformrc
2019/05/20 15:31:07 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/05/20 15:31:07 [INFO] CLI command args: []string{"plan", "-out=test.tfplan", "-var-file=test.tfvars", "modules/"}
2019/05/20 15:31:07 [INFO] command: empty terraform config, returning nil
2019/05/20 15:31:07 [DEBUG] command: no data state file found for backend config
2019/05/20 15:31:07 [DEBUG] New state was assigned lineage "ffbaa084-1a31-80b3-e48f-1849acb43836"
2019/05/20 15:31:07 [INFO] command: backend initialized: <nil>
View MongoAuditAware.java
package x.x.x;
import org.springframework.data.domain.AuditorAware;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.oauth2.core.oidc.OidcIdToken;
import org.springframework.security.oauth2.core.oidc.OidcUserInfo;
import org.springframework.security.oauth2.core.oidc.user.DefaultOidcUser;
import org.springframework.security.oauth2.jwt.Jwt;
@florianrusch
florianrusch / git-author-rewrite.sh
Created Aug 21, 2019
Shell script to rewrite the author of git commits
View git-author-rewrite.sh
#!/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"
View initMac.sh
#/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
#
You can’t perform that action at this time.