Skip to content

Instantly share code, notes, and snippets.

View ivyl's full-sized avatar
🙃

Arek Hiler ivyl

🙃
View GitHub Profile
From 0aab2bbbe2f0b31ff725739621fbe0f43803ead2 Mon Sep 17 00:00:00 2001
From: Arkadiusz Hiler <ahiler@codeweavers.com>
Date: Mon, 1 Nov 2021 14:25:42 +0200
Subject: [PATCH] HAX: Disable fsync if we detect the old futex2 patches.
futex_waitv() has been accepted into locking/core branch of kernel.org's
tip repo and has a fixed syscall number.
Even though the syscall number matches (449) there were changes that
result in 100% CPU utilization at all times when running with the old,
@ivyl
ivyl / output.txt
Last active April 5, 2021 10:43
xpadneo 0.9 enum
ivyl@failcraft $ modinfo hid_xpadneo | head -n 2
filename: /lib/modules/5.11.11-zen1-1-zen/kernel/drivers/hid/hid-xpadneo.ko.xz
version: v0.9-51-gfa41a04
ivyl@failcraft $ SDL_JOYSTICK_HIDAPI=1 ./sdl-enum
Joystick 0: "Xbox One Series X Controller"
PIDVIDVER: 045e:0b13:0000
IsGameController: 1
Joystick 1: "Xbox One S Controller"
PIDVIDVER: 045e:02e0:0903
insmod part_gpt
insmod luks
insmod gcry_sha1
insmod gcry_rijndael
set timeout_style=hidden
set timeout=1
menuentry 'Arch' {
cryptomount (ahci0,gpt2)
diff --git a/lib/meson.build b/lib/meson.build
index 94ea0799..04b4fff6 100644
--- a/lib/meson.build
+++ b/lib/meson.build
@@ -121,6 +121,7 @@ if libdrm_intel.found()
else
lib_headers += 'stubs/drm/intel_bufmgr.h'
lib_sources += 'stubs/drm/intel_bufmgr.c'
+ inc = [inc, include_directories('stubs/drm')]
endif
#!/bin/bash
mkdir aosp && cd aosp
repo init -u https://android.googlesource.com/platform/manifest
(cd .repo/manifests/ && curl -O https://gist.githubusercontent.com/ivyl/1e05af15ae37b575e03dc69e5e2488fc/raw/b2c2e5bc6fbe80da479e7e656b57481f5af5dc63/igt.xml)
repo init -m igt.xml
repo sync -c
source build/envsetup.sh
lunch aosp_x86_64-eng
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("facebook.com") {
div[id^="topnews_main_stream_"]
{
display: none;
}
}

Keybase proof

I hereby claim:

  • I am ivyl on github.
  • I am ivyl (https://keybase.io/ivyl) on keybase.
  • I have a public key whose fingerprint is 89C6 3034 2F8F A518 81DA E1FB 73F1 9A12 D6E8 9619

To claim this, I am signing this object:

#!/usr/bin/env bash
set -ue
if ! command -v xdotool &> /dev/null; then
printf "You need to install xdotool.\n" 1>&2
exit 1
fi
output="$(pass $@)"
@ivyl
ivyl / hex2base32.rb
Last active December 28, 2015 02:39
#!/usr/bin/env ruby
require 'rubygems'
require 'base32'
key = [ARGV.first].pack("H*")
puts Base32.encode(key)
@ivyl
ivyl / debug.sh
Created November 29, 2012 19:08
Kernel Debugging
#!/bin/bash
KERNEL_SRC=~/src/linux
MODULE=ahwfs
SSH_HOST=dm
TMP=/tmp/gdb-init
case "$1" in