Skip to content

Instantly share code, notes, and snippets.

Florian Heigl FlorianHeigl

Block or report user

Report or block FlorianHeigl

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
FlorianHeigl /
Last active Aug 30, 2019
omd tuning script
!/usr/bin/env bash
# License: BSD
# Author: Florian Heigl
set -eu
# variablen ziehen falls nicht da
test -r $SITECFG && bash -eun $SITECFG && source $SITECFG
tics=$(date +%s)
if [ "$tics" -gt 1561741200 -a "$tics" -lt 1561914000 ]; then
# From Friday 17:00Z to Sunday: STFU
echo "OK - Please do not disturb; party in progress"
exit $OK
if [[ "$1" == "" ]]; then
echo 'usage: filename [gistname]'
exit 0
# 0. file name for the Gist
FlorianHeigl / inputrc
Created May 22, 2019
vi mode for bconsole etc
View inputrc
## enable vi mode on all readline programs
set editing-mode vi
#set keymap vi-command
set input-meta on
set output-meta on
set bell-style none
FlorianHeigl / bacula-jobs
Created Apr 23, 2019
update fuer bastis plugin
View bacula-jobs
echo "<<<bacula_jobs:sep(9)>>>"
echo "Select JobId, Name, JobStatus, EndTime FROM Job WHERE EndTime BETWEEN NOW() - interval '30 days' AND NOW();" | sudo -u postgres psql --tuples-only bacula bacula
View check-mail-loop
import time
import os
import sys
import smtplib
import poplib
import re
import random
FlorianHeigl / intel-no-ht
Created Nov 30, 2018
intel server disable hyperthreading
View intel-no-ht
# display
syscfg /d biossettings "Intel(R) Hyper-Threading Tech"
# change
syscfg /bcs "" "Intel(R) Hyper-Threading Tech" 0
FlorianHeigl /
Last active Nov 18, 2018
most simple webm to mp4 converter for itunes, deletes original after conversion
#!/usr/bin/env bash
filename=$(basename -- "$fullfile")
FlorianHeigl / git-clearHistory
Last active Nov 16, 2018 — forked from stephenhardy/git-clearHistory
Steps to clear out the history of a git/github repository
View git-clearHistory
## Remove the history from
rm -rf .git
## recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
## push to the github remote repos ensuring you overwrite history
git remote add origin
You can’t perform that action at this time.