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
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
FlorianHeigl /
Created May 23, 2019 — forked from rubo77/
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
FlorianHeigl / smart_freebsd
Created Sep 15, 2018
check_mk local check for smart on freeebsd (from elsewhere, limited functionality, better than none)
View smart_freebsd
# Backblaze chaps have 40k disks and they care about SMART 187 mainly
# see
# This is Check_mk local check script for FreeBSD based NAS like NAS4FREE
# Drop a copy to /usr/lib/check_mk_agent/local/
# you can "telnet 6556" from your OMD server to see if it works.
# SMART 5 \u2013 Reallocated_Sector_Count.
# SMART 187 \u2013 Reported_Uncorrectable_Errors.
You can’t perform that action at this time.