Skip to content

Instantly share code, notes, and snippets.

P: /devices/pci0000:00/0000:00:12.0/usb5/5-1/5-1:1.0/bluetooth/hci0/hci0:11/0005:054C:05C4.0012/input/input34/event19
N: input/event19
E: DEVNAME=/dev/input/event19
E: DEVPATH=/devices/pci0000:00/0000:00:12.0/usb5/5-1/5-1:1.0/bluetooth/hci0/hci0:11/0005:054C:05C4.0012/input/input34/event19
E: ID_FOR_SEAT=input-pci-0000_00_12_0-usb-0_1_1_0
E: ID_INPUT=1
E: ID_INPUT_JOYSTICK=1
E: ID_PATH=pci-0000:00:12.0-usb-0:1:1.0
E: ID_PATH_TAG=pci-0000_00_12_0-usb-0_1_1_0
E: LIBINPUT_DEVICE_GROUP=5/54c/5c4/100:5c:f3:70:69:f2:29
@hanetzer
hanetzer / gist:3ad2ea615b5afee93553dfbe346ab9cb
Created May 14, 2016 17:43 — forked from mems/gist:5301297
How to convert a (simple) SWF to PDF

Convert (simple) SWF to PDF

In SWFTools a programs called gfx2gfx is available to do this task, but it's not officially available precompiled.

It can convert SWF, PDF or image to SWF, PDF, ebook or image.

For discard downscaling for rasterized image (default: 72dpi) we use the provided by @m-p-y: add -r attribute to increase maxdpi

Requirements

ratbag debug: Logitech USB Receiver is device '/dev/hidraw0'.
ratbag debug: Logitech USB Receiver is device '/dev/hidraw1'.
ratbag debug: report ID 01
ratbag debug: report ID 03
ratbag debug: report ID 04
ratbag debug: report ID 10
ratbag debug: report ID 11
ratbag debug: report ID 80
ratbag raw: hidpp write: 11 01 00 18 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp read: 11 01 00 18 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
@hanetzer
hanetzer / dfu log
Created May 18, 2016 06:36
log of attempted dfu upload
u-util 0.9
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
libusb: debug [libusb_get_device_list]
libusb: debug [discovered_devs_append] need to increase capacity
libusb: debug [libusb_get_device_descriptor]
@hanetzer
hanetzer / mount
Created July 11, 2016 07:28
wargus
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=16411116k,nr_inodes=4102779,mode=755)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
/dev/md1 on / type ext4 (rw,noatime,stripe=2048,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
@hanetzer
hanetzer / wartool
Created July 11, 2016 07:45
BNE MPQ attempt
Note: Data is already extracted in Dir "data" with this version of wartool
Detected BNE CD
Extract from "/mnt" to "data"
Please be patient, the data may take a couple of minutes to extract...
Archive "/mnt/SUPPORT/TOMES/TOME.2"
Archive "/mnt/SUPPORT/TOMES/TOME.4"
Ignore entry 42 in archive (invalid uncompressed length)
Archive "/mnt/SUPPORT/TOMES/TOME.1"
Ignore entry 25 in archive (invalid uncompressed length)
Ignore entry 32 in archive (invalid uncompressed length)
@hanetzer
hanetzer / build.sh
Created March 4, 2017 06:43
mkxp mingw-64 build arch linux
#!/bin/bash
source ../../sources.def
if [ $ARCH == i686 ]; then
AR=(
libmsvcrt-ruby240-static.a
)
else
AR=(
libx64-msvcrt-ruby240-static.a
@hanetzer
hanetzer / custom
Created April 21, 2017 13:19
ens202ext mtd partitions
GYUAAwAAAAzwYNyYGYXAAQAAACs+QiQnAAAAAQAAAAAAAAACT9r43QMIAADFFoOzldNNzEFSVP8Z
hcACAAAAXcCEiv4AAAACAAAAAQAAgeQAAAAAAAAAGU/a+N1P2vjdT9r43QAAAAAAAAAZAAAAGQAA
AABRzt9/n2TBAWlwYWRkcj0xOTIuMTY4LjEuMgphcnQ9MQr///8ZhcACAAAARKTvIj4AAAACAAAA
AgAAgeQAAAAAAAAAAE/a+N0AAAAfAAAAHwAAAAAAAAAAAAAAAAAAAAAAAAAAzQdnfxmFwAIAAABd
wISK/gAAAAIAAAADAACB5AAAAAAAAAAZAAAAHwAAAB8AAAAfAAAAAAAAABkAAAAZAAAAAFHO339G
EUi5aXBhZGRyPTE5Mi4xNjguMS4yCmFydD0xCv///xmFwAIAAABEpO8iPgAAAAIAAAABAACBpAAA
AAAAAAAAVYBlq1WAZatVgGWrAAAAAAAAAAAAAAAAAAAAAAAAAAALPN5WGYXgAQAAADZdREj+AAAA
AQAAAAEAAAACVYBlqw4IAACAB/TgMf89vHN5c3VwZ3JhZGUudGd6//8ZheACAAAQRO4tMG8AAAAC
AAAAAgAAgaQAAAAAAAAQAFWAZatVgGWrVYBlqwAAAAAAABAAAAAQAAAAAADJ3IwzdoTBtR+LCACr
ZYBVAgPsPV1b2zqTvW1/RfbZC24K2E7iAHcU6DnsS9tsQ09398aPYiuJHvxVWU7g/fWrD3/oywF6
@hanetzer
hanetzer / keybase.md
Created August 20, 2017 20:29
keybase.md

Keybase proof

I hereby claim:

  • I am hanetzer on github.
  • I am the_netz (https://keybase.io/the_netz) on keybase.
  • I have a public key whose fingerprint is 5971 AC05 7EE4 D630 29F2 277D 7584 B4DD C030 918D

To claim this, I am signing this object:

@hanetzer
hanetzer / stdin.diff
Last active April 24, 2018 10:03
stdin
diff --git a/eclass/autotools.eclass b/eclass/autotools.eclass
index 3c55a5c464a..d555a6d6085 100644
--- a/eclass/autotools.eclass
+++ b/eclass/autotools.eclass
@@ -53,9 +53,9 @@ inherit libtool
# version.
# If a newer slot is stable on any arch, and is NOT reflected in this list,
# then circular dependencies may arise during emerge @system bootstraps.
-#
+#