Skip to content

Instantly share code, notes, and snippets.

@cyberkov
cyberkov / ESO_HarvestMap_update.sh
Created October 15, 2020 13:57
These are the scripts that I use on Linux to keep my addons up to date for Elder Scrolls Online. These are for the steam version but could be easily adapted for the normal version as well.
#!/bin/bash -x
# (C) 2018 @mojo66, eso@mojo66.de
# enjoy the beauty of scripting on a professional operating system
# exit if ESO is running
#if [[ $(uname -s) -eq "Darwin" ]]; then option="-q"; fi
#pgrep -x $option eso
#if [[ ! $? -eq 1 ]]; then echo "Quit ESO before running this script to avoid data corruption.";exit 1;fi
### Keybase proof
I hereby claim:
* I am cyberkov on github.
* I am cyberkov (https://keybase.io/cyberkov) on keybase.
* I have a public key ASDxoXTEFabhGhwtynwHvzxdPM2u9IHV-6kqhKmovQA-HQo
To claim this, I am signing this object:
@cyberkov
cyberkov / master.json
Created July 18, 2017 12:55
icinga2 status
"status": {
"active_host_checks": 9.466666666666667,
"active_host_checks_15min": 10167.0,
"active_host_checks_1min": 568.0,
"active_host_checks_5min": 3216.0,
"active_service_checks": 18.316666666666666,
"active_service_checks_15min": 10100.0,
"active_service_checks_1min": 1099.0,
"active_service_checks_5min": 3877.0,
"avg_execution_time": 1.9743611967733516,
@cyberkov
cyberkov / config.xml
Created March 13, 2016 22:00
Jenkins configuration for openhab-matrixbuild
<?xml version='1.0' encoding='UTF-8'?>
<matrix-project plugin="matrix-project@1.6">
<actions/>
<description></description>
<keepDependencies>false</keepDependencies>
<properties>
<hudson.plugins.disk__usage.DiskUsageProperty plugin="disk-usage@0.28"/>
<com.coravy.hudson.plugins.github.GithubProjectProperty plugin="github@1.17.1">
<projectUrl>https://github.com/cyberkov/openhab-docker/</projectUrl>
<displayName></displayName>
rake aborted!
ExecJS::ProgramError: Unexpected token keyword «function», expected punc «,» (line: 22132, col: 0, pos: 938580)
Error
at new JS_Parse_Error (/tmp/execjs20160208-158-1esunctjs:2659:11936)
at js_error (/tmp/execjs20160208-158-1esunctjs:2659:12155)
at croak (/tmp/execjs20160208-158-1esunctjs:2659:20622)
at token_error (/tmp/execjs20160208-158-1esunctjs:2659:20759)
at expect_token (/tmp/execjs20160208-158-1esunctjs:2659:20982)
at expect (/tmp/execjs20160208-158-1esunctjs:2659:21120)
@cyberkov
cyberkov / dell_ilo.rb
Created March 18, 2015 14:42
Read ILO IP and Subnet Mask from Dell Omreport
require 'facter'
require 'rexml/document'
dellilo_file = "/tmp/dellilo.cache.xml"
omreport = '/opt/dell/srvadmin/bin/omreport'
# When there is no file. create it.
unless FileTest.exists?(dellilo_file)
if FileTest.exists?(omreport)
# /opt/dell/srvadmin/bin/omreport system summary -fmt xml -outc /tmp/dellilo.cache.txt
@cyberkov
cyberkov / keybase.md
Created February 23, 2015 13:43
keybase

Keybase proof

I hereby claim:

  • I am cyberkov on github.
  • I am cyberkov (https://keybase.io/cyberkov) on keybase.
  • I have a public key whose fingerprint is 0E1A C1BC EEA3 33F7 AE22 3001 2C07 8809 8E36 F170

To claim this, I am signing this object:

@cyberkov
cyberkov / advent.rb
Created December 22, 2014 07:15
Dinge die man aus Langeweile tut
2.times { print "Advent, " }
puts "ein Lichtlein brennt."
a = { 1 => "eins", 2 => "zwei", 3 => "drei", 4 => "vier", 5 => "steht das Christkind vor der Tür" }
(1..5).each {|x| puts (x != 1 ? "dann ": "Erst ") + a[x] + (x != 5 ? ", " : ".")}
@cyberkov
cyberkov / genmac.rb
Last active December 25, 2015 16:29
Generate a range of MAC addresses
#!/usr/bin/env ruby
#require 'rubygems'
#require 'pry'
#require 'pp'
# This scripts returns a list of MAC addresses.
# Usage:
# ./$0 LIMIT START END
# ./genmac.rb 5 00:50:56:00:00:00 00:50:56:3F:FF:FF
#