Skip to content

Instantly share code, notes, and snippets.

Avatar

Fabien Wernli faxm0dem

View GitHub Profile
@faxm0dem
faxm0dem / id4.wtf
Created Aug 2, 2022
id4 virus upload code
View id4.wtf
trans for 3x-169
{
go for 1256:@benchHost*2456
set VirusMark^678*245-treatX^treatY
}
quarryXmark for %567* going for
{
{
{
send ValueThreat-bendColumnX*2456/Vcxzr(Xgf)
@faxm0dem
faxm0dem / sol.ilom
Created Feb 19, 2020
conserver ILOM
View sol.ilom
#!/usr/bin/expect -f
#
# script for SUN ILOM on x4x00 series
# tested on ILOM 1.0.3
# this will probably be obsoleted in future revisions
# when ipmi 2.0 SOL will be supported on these boxes
# connects to $username@$ilom
# and starts SOL command
# Also checks for Terminated Serial command
# To re-init SOL connection on ILOM
@faxm0dem
faxm0dem / riemann-client.go
Created Jan 28, 2020
riemann websocket client in Golang
View riemann-client.go
package main
import (
"fmt"
"log"
"golang.org/x/net/websocket"
)
func main() {
View dell-setdisplay.pl
#!/usr/bin/perl -w
#
# Jesper Nyerup <nyerup@one.com>
my $ipmitool = '/usr/bin/ipmitool';
my @chararray = split(//, join(' ', @ARGV));
usage() if (@chararray == 0 or @chararray > 14);
system("$ipmitool raw 0x6 0x58 193 0x0 0x0 ".
View gist:da0303d1d0df313476d5e0330ff524f9
[
"and",
[
"=",
"name",
"operatingsystem"
],
[
"=",
"environment",
@faxm0dem
faxm0dem / collectd.conf
Created Jan 31, 2019
collectd if_errors monitoring
View collectd.conf
<Plugin "threshold">
<Plugin "interface">
<Type "if_errors">
FailureMax 500
Hits 5
Interesting false
Percentage false
Persist false
WarningMax 100
</Type>
@faxm0dem
faxm0dem / syslog-ng-ii.conf
Created Jul 12, 2017
syslog-ng sucks less with ii
View syslog-ng-ii.conf
#
@version: 3.9
block source ii (
channel('#riemann')
server('chat.freenode.net')
basedir('/tmp/ii')
)
{
channel {
@faxm0dem
faxm0dem / netdata-template.json
Last active Jul 10, 2018
netdata json backend
View netdata-template.json
{
"netdata" : {
"order" : 0,
"template" : "netdata-*",
"settings" : {
"index" : {
"number_of_shards" : "1",
"number_of_replicas" : "0"
}
},
@faxm0dem
faxm0dem / precache.conf
Created Jun 12, 2017
collectd rewrite hostname
View precache.conf
<Rule "egx400">
<Match "regex">
Plugin "^table$"
PluginInstance "^egx400$"
</Match>
<Target "set">
Host "egx400.example.com"
</Target>
</Rule>
@faxm0dem
faxm0dem / syslog-ng-ove.conf
Created Jun 7, 2017
syslog-ng log path flags
View syslog-ng-ove.conf
@version: 3.5
source s_in {
file("/tmp/in");
};
destination d_driver_position {
file("/tmp/driver_position.log");
};