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
FlorianHeigl / omd-tuning.sh
Last active Aug 30, 2019
omd tuning script
View omd-tuning.sh
!/usr/bin/env bash
# License: BSD
# Author: Florian Heigl
set -eu
# variablen ziehen falls nicht da
SITECFG=~/etc/omd/site.conf
test -r $SITECFG && bash -eun $SITECFG && source $SITECFG
View tplink_lldp.py
View icinga.sh
#!/bin/sh
OK=0
CRIT=2
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
View pgist.sh
#!/bin/bash
GITHUB_USERNAME=rubo77
if [[ "$1" == "" ]]; then
echo 'usage: gistfile-post.sh filename [gistname]'
exit 0
fi
# 0. file name for the Gist
@FlorianHeigl
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
FlorianHeigl / bacula-jobs
Created Apr 23, 2019
update fuer bastis plugin
View bacula-jobs
#!/bin/sh
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
#!/usr/bin/python
import time
import os
import sys
import smtplib
import poplib
import re
import random
@FlorianHeigl
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
FlorianHeigl / convwebm.sh
Last active Nov 18, 2018
most simple webm to mp4 converter for itunes, deletes original after conversion
View convwebm.sh
#!/usr/bin/env bash
DELETE=y
fullfile="${1}"
filename=$(basename -- "$fullfile")
extension="${filename##*.}"
filename="${filename%.*}"
@FlorianHeigl
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 git@github.com:deepthinkag/curl2bash.git
You can’t perform that action at this time.