Skip to content

Instantly share code, notes, and snippets.

View pschichtel's full-sized avatar

Phillip Schichtel pschichtel

View GitHub Profile
@pschichtel
pschichtel / install_entry.sh
Last active June 22, 2023 22:04
script to setup an EFISTUB entry on Arch Linux
#!/usr/bin/env bash
set -eu
esp_disk="/dev/nvme0n1"
esp_part="2"
declare -A bins
bins["arch/linux-signed.efi"]="Linux"
bins["arch/linux-fallback-signed.efi"]="Linux Fallback"
@pschichtel
pschichtel / ingdiba-html2csv.py
Last active September 28, 2018 14:50
Takes the output of poppler's pdftohtml tool when feeding in an ING-DiBa bank statement and produces csv that can be imported into e.g. Excel. Works mostly correct. Additional kinds might need to be added.
#!/usr/bin/env python3
import sys
import os
import re
import html
closure = 'Abschluss'
kinds = {
'Lastschrift': 'Lastschrift',
@pschichtel
pschichtel / BlockingFileQueue.java
Created September 20, 2018 21:49
BlockingQueue<byte[]> implementation based on tape2's QueueFile
package tel.schich.carla.collection;
import com.squareup.tape2.QueueFile;
import java.io.IOException;
import java.util.*;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
#include <stdio.h>
#include <sys/socket.h>
#include <linux/can.h>
#include <linux/can/raw.h>
#include <sys/ioctl.h>
#include <libnet.h>
#include <net/if.h>
#include <sys/socket.h>
#include <stdbool.h>
Operating system: Linux
0.0.0 Linux 4.18.0-rc7-mainline #1 SMP PREEMPT Mon Jul 30 02:23:30 UTC 2018 x86_64
CPU: amd64
family 6 model 158 stepping 10
1 CPU
GPU: UNKNOWN
Crash reason: SIGSEGV /0x00000000
Crash address: 0x0
import scala.annotation.tailrec
object SudokuSolver {
type IndexGroup = Seq[Int]
def main(args: Array[String]): Unit = {
val undefined = 0
val domain = (1 to 9).toSet
using System;
using System.Collections.Generic;
using System.Net;
using System.Threading.Tasks;
using System.Web;
using RestSharp;
using RestSharp.Authenticators;
using TwitchLib.Client;
using TwitchLib.Client.Events;
using TwitchLib.Client.Models;
object SqlBuilderPoC {
class ResultRow
trait Parser[T] {
def parse(row: ResultRow): T
}
trait Record[T]
trait Table[P, T, R <: Record[T]] {
@pschichtel
pschichtel / PKGBUILD
Created January 29, 2018 16:42
ndi-sdl PKGBUILD
# Maintainer: Daniel Bermond < yahoo-com: danielbermond >
# Contributor: Phillip Schichtel <[email protected]>
pkgname=ndi-sdk
pkgver="3.20171009.r82134"
_libver="3.0.9"
pkgrel=1
pkgdesc="Newtek NDI SDK (binary download)"
arch=('i686' 'x86_64')
url="https://www.newtek.com/ndi/sdk/"
depends=("glibc")
From 4eef7f0ccc4a721655eefc638976c311aaa12e73 Mon Sep 17 00:00:00 2001
From: Phillip Schichtel <[email protected]>
Date: Sat, 14 Oct 2017 18:12:50 +0200
Subject: [PATCH] Update to latest nginx 1.13.6 and rtmp module 1.2.0
Additionally synced the PKGFILE with community/nginx-mainline
---
.SRCINFO | 20 ++++++++++----------
PKGBUILD | 38 +++++++++++++++++++++++---------------
logrotate | 2 +-