Skip to content

Instantly share code, notes, and snippets.

View totallyunknown's full-sized avatar

Nils Juenemann totallyunknown

View GitHub Profile
@totallyunknown
totallyunknown / exabgp-setup.sh
Last active September 6, 2016 15:41
Virtual IP with ExaBGP
#!/usr/bin/env bash
LOCAL_AS=65210
PEER_AS=65200
LB_IP="1.2.3.4"
HOST_IP=`ip address list | grep "scope global" | grep -v "scope global lo" | cut -d" " -f6 | cut -d"/" -f 1`
GATEWAY=`ip route | grep "^default" | cut -d" " -f3`
EXA_BGP_CONFIG="/etc/exabgp/exabgp.conf"
EXA_BGP_CHECK="/etc/exabgp/exabgp-check.sh"
@totallyunknown
totallyunknown / ipmi_sensors_prometheus.py
Last active October 18, 2023 08:45
Prometheus Exporter for IPMI Sensor Status and Power usage
#!/usr/bin/env python
#
# Tested with SuperMicro
import re, subprocess, pprint, time, os, sys
if not os.path.exists("/usr/sbin/ipmi-sensors"):
print >> sys.stderr, 'freeipmi tools are not installed'
sys.exit()
# HELP go_gc_duration_seconds A summary of the GC invocation durations.
# TYPE go_gc_duration_seconds summary
go_gc_duration_seconds{quantile="0"} 0.020679015000000002
go_gc_duration_seconds{quantile="0.25"} 0.035404817000000005
go_gc_duration_seconds{quantile="0.5"} 0.043250475000000004
go_gc_duration_seconds{quantile="0.75"} 0.047767021
go_gc_duration_seconds{quantile="1"} 0.09286074000000001
go_gc_duration_seconds_sum 373.7494665
go_gc_duration_seconds_count 12473
# HELP go_goroutines Number of goroutines that currently exist.

Keybase proof

I hereby claim:

  • I am totallyunknown on github.
  • I am nilsjuenemann (https://keybase.io/nilsjuenemann) on keybase.
  • I have a public key whose fingerprint is F21A 55F2 E313 9FE7 B38C 9807 3108 74BF A06F 9F90

To claim this, I am signing this object:

W3C.org was vulnerable to error based SQL injection:
http://www.w3.org/WAI/GL/WCAG20/issue-tracking/viewdata_individual.php?id=1
http://www.w3.org/WAI/GL/WCAG20/issue-tracking/resolutions/no_response_results.php?frum=%22
select table_name from information_schema.tables [55]:
[*] AC200011FollowUp
[*] acmfastsurvey
[*] ACSurvey200210
[*] CHARACTER_SETS
@totallyunknown
totallyunknown / build.gradle
Last active December 17, 2015 17:59
I'm trying to migrate from a ant build.xml from a small android library to a gradle.build file.
/*
Tested with:
* MacOS X 10.8
* Gradle 1.6
* Sonar 3.5.1
* Proguard 4.9 (4.10beta is working as well, but is not available at MavenCentral
* Sonatype Nexus 2.1.2