Skip to content

Instantly share code, notes, and snippets.

View FliegendeWurst's full-sized avatar

Arne Keller FliegendeWurst

View GitHub Profile
@FliegendeWurst
FliegendeWurst / dvorak-custom
Last active December 29, 2023 17:31
dvorak-custom
partial alphanumeric_keys modifier_keys
xkb_symbols "dvorak-custom" {
name[Group1]="English (Dvorak, custom)";
key <BKSP> {[ BackSpace, BackSpace ]};
key <LFSH> {[ Shift_L ]};
key <RTSH> {[ Shift_R ]};
key <RTRN> {[ Return ]};
key <LCTL> {[ Control_L ]};
key <RCTL> {[ Control_R ]};
@FliegendeWurst
FliegendeWurst / amdgpu_sync_keep_later.txt
Last active September 5, 2023 06:29
a strange kernel warning (this is fixed in 5.10.194)
[ 401.519960] ------------[ cut here ]------------
[ 401.519993] WARNING: CPU: 0 PID: 1041 at include/linux/dma-fence.h:475 amdgpu_sync_keep_later+0x76/0xc0 [amdgpu]
[ 401.519994] Modules linked in: snd_seq_dummy snd_hrtimer snd_seq af_packet ip6_tables xt_conntrack ip6t_rpfilter ipt_rpfilter xt_pkttype ip6t_REJECT nf_reject_ipv6 ipt_REJECT nf_reject_ipv4 xt_tcpudp nft_compat amdgpu nft_counter cfg80211 rfkill 8021q nf_tables nfnetlink sch_fq_codel snd_hda_codec_realtek uinput snd_hda_codec_generic atkbd libps2 serio ledtrig_audio snd_hda_codec_hdmi snd_hda_intel snd_intel_dspcfg soundwire_intel soundwire_generic_allocation soundwire_cadence snd_hda_codec iommu_v2 gpu_sched snd_hda_core snd_usb_audio ttm soundwire_bus edac_mce_amd wmi_bmof snd_soc_core snd_usbmidi_lib drm_kms_helper snd_compress snd_hwdep edac_core ac97_bus snd_rawmidi snd_pcm_dmaengine snd_seq_device snd_pcm crc32_pclmul ghash_clmulni_intel nls_iso8859_1 aesni_intel r8169 snd_timer libaes crypto_simd i2c_algo_bit nls_cp437 cryptd snd real
\functions {
Seq s1;
int maxx;
}
\problem {
\forall int i; (
(0 <= i & i < seqLen(s1))
-> (0 <= int::seqGet(s1, i) & int::seqGet(s1, i) < maxx))
& \forall int i; (\forall int j; (
@FliegendeWurst
FliegendeWurst / turn_on.py
Created September 24, 2022 19:15
script to run display_all when switch press is registered at GPIO pin
#!/usr/bin/env python3
# based on a script by Alex Eames https://raspi.tv/
# https://raspi.tv/2013/how-to-use-interrupts-with-python-on-the-raspberry-pi-and-rpi-gpio
import os
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
# GPIO 19 set up as input, pull-down to register more than one switch use.
GPIO.setup(19, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
@FliegendeWurst
FliegendeWurst / blasty-vs-pkexec.c
Created January 26, 2022 17:12
PoC of polkit vulnerability
// based on: https://twitter.com/bl4sty/status/1486092552755466242
/*
* blasty-vs-pkexec.c -- by blasty <peter@haxx.in>
* ------------------------------------------------
* PoC for CVE-2021-4034, shout out to Qualys
*
* ctf quality exploit
*
* bla bla irresponsible disclosure
@FliegendeWurst
FliegendeWurst / Cargo.lock
Last active July 1, 2021 16:09
Panasonic Viera TV TX40CSW614W recordings index recovery
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "aho-corasick"
version = "0.7.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f"
dependencies = [
@FliegendeWurst
FliegendeWurst / droidcam.nix
Last active February 25, 2021 09:38 — forked from gtgteq/droidcam.nix
droidcam.nix
{ stdenv, fetchzip, pkgconfig, ffmpeg, gtk2-x11, libjpeg }:
stdenv.mkDerivation rec {
pname = "droidcam";
version = "0";
src = fetchzip {
url = "https://github.com/aramg/droidcam/archive/03d6de8d5628663c75a6e266c4ae6a26a2bbe682.zip";
sha256 = "05kd5ihwb3fldmalv67jgpw4x0z0q39lfis69r7yh03qiqlviymk";
};

Keybase proof

I hereby claim:

  • I am fliegendewurst on github.
  • I am arnekeller (https://keybase.io/arnekeller) on keybase.
  • I have a public key ASCwZH2Gk8hfziN0WlUXVv3aKPcvhTI5d0RwbvSguRP3Wwo

To claim this, I am signing this object: