Skip to content

Instantly share code, notes, and snippets.

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 / 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

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
FAILURE: Build failed with an exception.
* Where:
Build file 'build.gradle' line: 19
* What went wrong:
A problem occurred evaluating root project.
> org.eclipse.jgit.api.DescribeCommand.setLong(Z)Lorg/eclipse/jgit/api/DescribeCommand;
['2', '0', '0', '0', '0', '0', '0', '8e', '22', '73', 'dd', 'b6', '22', '4b', 'dd', 'ac', '22', '56', 'dd', '1c', '2', '1c', '2', 'c8', '1e', 'c9', 'df', 'e9', '1f', 'f3', 'e0', 'ee', '22', '5c', 'e4', 'f', '0']
['10', '0', '0', '3', '0']
['11', '4', '6']
['12', '69', '36', 'ee', '66', '17', '84', '8', '25', '0', '28', '18', '78', 'ce', 'df', 'c']
['15', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0']
['81', '69', '36', 'ee', '66', '17', '84']
['84', 'ff', 'f', '0', '0']
['86', '28', '43', '5', '31', '72', '40']
['87', '28', '44', '20', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0']
['87', '28', '44', '20', '56', 'dd', '1c', '2', '1c', '2', 'c8', '1e', 'e9', '1f', 'ee', '22', 'c9', 'df', 'f3', 'e0', '5c', 'e4', 'f', '0', '0', '0'
@hanetzer
hanetzer / usbmon-boot.log
Created November 5, 2015 08:05
usbmon output
ffff8800822bb0c0 1231183599 S Ci:7:009:0 s 80 06 0300 0409 0102 258 <
ffff8800822bb0c0 1231184967 C Ci:7:009:0 0 4 = 04030904
ffff8800822bb3c0 1231187937 S Ci:7:009:0 s 80 06 0304 0409 0102 258 <
ffff8800822bb3c0 1231189965 C Ci:7:009:0 0 26 = 1a035500 37003300 2e003000 30005f00 42003000 30003100 3900
ffff8800822bb180 1231193969 S Ci:7:009:0 s 80 06 0300 0409 0102 258 <
ffff8800822bb180 1231194914 C Ci:7:009:0 0 4 = 04030904
ffff8800822bbd80 1231197915 S Ci:7:009:0 s 80 06 0304 0409 0102 258 <
ffff8800822bbd80 1231199965 C Ci:7:009:0 0 26 = 1a035500 37003300 2e003000 30005f00 42003000 30003100 3900
ffff8800822bbcc0 1231202845 S Ci:7:009:0 s 80 06 0300 0409 0102 258 <
ffff8800822bbcc0 1231203966 C Ci:7:009:0 0 4 = 04030904
@hanetzer
hanetzer / .ycm_extra_conf.py
Last active October 31, 2015 11:01
YCM info
# This file is NOT licensed under the GPLv3, which is the license for the rest
# of YouCompleteMe.
#
# Here's the license text for this file:
#
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
@hanetzer
hanetzer / PKGBUILD.sh
Created September 12, 2015 04:37
bluez-git
# Maintainer: Juan Diego Tascon
# Maintainer: Swift Geek
pkgname=bluez-git
pkgver=20130324
pkgrel=1
pkgdesc="Libraries and tools for the Bluetooth protocol stack"
url="http://www.bluez.org/"
arch=('i686' 'x86_64')
license=('GPL2')
@hanetzer
hanetzer / BridgeManager.patch
Last active August 29, 2015 14:17
heimdall-git
--- a/heimdall/source/BridgeManager.cpp 2015-03-15 18:28:01.469153580 -0500
+++ b/heimdall/source/BridgeManager.cpp 2015-03-15 18:30:00.234516719 -0500
@@ -231,7 +231,8 @@
{
Interface::Print("Claiming interface...\n");
- int result = libusb_claim_interface(deviceHandle, interfaceIndex);
+ int result = libusb_detach_kernel_driver(deviceHandle, interfaceIndex);
+ result = libusb_claim_interface(deviceHandle, interfaceIndex);
@hanetzer
hanetzer / PKGBUILD
Last active August 29, 2015 14:11
nvidia-super
# Maintainer: Maxime Gauduin <[email protected]>
# Contributor: jarda-wien <[email protected]>
# Contributor: Jason Melton <[email protected]>
# Contributor: Atilla ÖNTAŞ <[email protected]>
pkgbase=nvidia-super
pkgname=('nvidia-dkms' 'nvidia-utils-bin' 'nvidia-libgl-bin' 'opencl-nvidia-bin')
pkgver=343.36
pkgrel=1
arch=('i686' 'x86_64')