Skip to content

Instantly share code, notes, and snippets.

View geggo98's full-sized avatar

Stefan Schwetschke geggo98

  • Munich, Germany
View GitHub Profile
@geggo98
geggo98 / calculate_edit_distance.sh
Created October 1, 2023 20:34
Estimate the pairwise edit distance between a list of file using command line tools
#!/bin/bash
# Function to calculate edit distance
calculate_edit_distance() {
file1="$1"
file2="$2"
distance=$(diff -U 0 "$file1" "$file2" | grep -v "^@" | wc -l)
echo "$file1,$file2,$distance"
}
@geggo98
geggo98 / kicktippAutoFill.user.js
Last active November 18, 2022 17:10
Autfill football tipps on kicktips.com
// ==UserScript==
// @name Auto Bet on Kicktipp for group "theocup2022"
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Autofill tip based on the betting quotes shown.
// @author You
// @match https://*.kicktipp.com/theocup2022/predict*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// ==/UserScript==
@geggo98
geggo98 / keybase.md
Created October 8, 2017 16:47
My proof to Keybase.io that this is really my GitHub account.

Keybase proof

I hereby claim:

  • I am geggo98 on github.
  • I am geggo (https://keybase.io/geggo) on keybase.
  • I have a public key ASC5Vs6lW0DiAkg7IBvp5BQDsEB77wRnOTt-ggXO7qe3nwo

To claim this, I am signing this object:

let g:solarized_termcolors=256
set t_Co=256
set background=dark
colorscheme solarized
if has('mouse') | set mouse=a | endif
set nrformats=
set number
set relativenumber
@geggo98
geggo98 / Vagrantfile
Last active March 22, 2016 17:15
Vagrantfile for Scala
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
<?php
function adminer_object() {
// required to run any plugin
include_once "./plugins/plugin.php";
// autoloader
foreach (glob("plugins/*.php") as $filename) {
include_once "./$filename";
}
@geggo98
geggo98 / Vagrantfile
Last active March 1, 2016 14:40
Vagrantfile for multi machien setup with Sencha ExtJS, MySQL 5.7 and sbt
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@geggo98
geggo98 / zfs_health.sh
Created October 23, 2015 14:37
ZFS health checker script from calomel.org, adapted for Ubuntu Linux
#! /bin/sh
# ZFS health version for Ubuntu
# You must install the package "dateuils" from the univers
#
# Based on Calomel.org
# https://calomel.org/zfs_health_check_script.html
# FreeBSD ZFS Health Check script
# zfs_health.sh @ Version 0.16
# Check health of ZFS volumes and drives. On any faults send email.
import akka.actor._
import akka.event.Logging
import akka.util.Timeout
import scala.concurrent.duration._
import java.util.concurrent.TimeUnit
import scala.concurrent.duration.FiniteDuration
import scala.concurrent.ExecutionContext.Implicits.global
import scala.reflect.ClassTag
/**