Skip to content

Instantly share code, notes, and snippets.

View close-fix.diff
diff --git a/src/ui/mainwindow.cpp b/src/ui/mainwindow.cpp
index 14921028c..be8b13be7 100644
--- a/src/ui/mainwindow.cpp
+++ b/src/ui/mainwindow.cpp
@@ -1444,17 +1444,9 @@ void MainWindow::StopAfterCurrent() {
}
void MainWindow::closeEvent(QCloseEvent* event) {
- bool keep_running(false);
- if (tray_icon_)
@Korvox
Korvox / qt5.diff
Created Nov 7, 2019
Qt5 modifications for clementine-git
View qt5.diff
diff --git a/PKGBUILD b/PKGBUILD
index 2c0755a..7fa3c80 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,50 +8,42 @@
# Based on community/clementine PKGBUILD
pkgname=clementine-git
-pkgver=1.3.1.r392.g83e860eab
+pkgver=1.3.1.r852.gf9627c208
@Korvox
Korvox / getprod.c
Last active Sep 26, 2019
Script trying to get product ids from xinput
View getprod.c
#include <stdio.h>
#include <X11/Xatom.h>
#include <X11/Xlib.h>
#include <X11/extensions/XInput.h>
#include <X11/extensions/XInput2.h>
#include <xorg/xserver-properties.h>
int main() {
Display *dpy = XOpenDisplay(NULL);
int ndevices;
View A156P String Descriptors
String 1: b'UGTABLET'
String 2: b'15.6 inch PenDisplay'
String 3: b'000000'
String 4: b'UG901_LPU1503'
String 5: b'2019-03-12_Factory.'
String 20: b'Test Mode0'
String 21: b'Test Mode1'
String 22: b'Test Mode2'
String 23: b'Test Mode3'
String 24: b'Test Mode4'
@Korvox
Korvox / rkt-macro-test
Created Nov 30, 2018
Gets cannot find `__req` & '__data' in this scope errors
View rkt-macro-test
#![feature(proc_macro_hygiene, decl_macro)]
#[macro_use]
extern crate rocket;
macro_rules! index {
($type:ty) => {
#[get("/")]
fn index(thing: rocket::State<$type>) -> String {
format!("Thing: {}", *thing)
View xrandr.txt
Screen 0: minimum 8 x 8, current 7680 x 2160, maximum 32767 x 32767
DP1 connected primary 3840x2160+1920+0 (normal left inverted right x axis y axis) 600mm x 340mm
3840x2160 60.00*+ 30.00
2560x1440 59.95
1920x1080 60.00 59.94
1600x900 60.00
1280x1024 60.02
1280x800 59.81
1152x864 59.97
1280x720 60.00 59.94
View rsa.cpp
// g++ -lcryptopp rsa.cpp -o rsa
#include <iostream>
#include <string>
#include "cryptopp/rsa.h"
#include "cryptopp/osrng.h"
#include <cryptopp/files.h>
using namespace std;
View gcc.txt
cd tutorial/ && ( test -e Makefile || /usr/lib/qt/bin/qmake /ms/code/verdigris/tutorial/tutorial.pro -o Makefile ) && make -f Makefile
cd benchmarks/ && ( test -e Makefile || /usr/lib/qt/bin/qmake /ms/code/verdigris/benchmarks/benchmarks.pro -o Makefile ) && make -f Makefile
cd tests/ && ( test -e Makefile || /usr/lib/qt/bin/qmake /ms/code/verdigris/tests/tests.pro -o Makefile ) && make -f Makefile
make[1]: Entering directory '/ms/code/verdigris/tests'
cd templates/ && ( test -e Makefile || /usr/lib/qt/bin/qmake /ms/code/verdigris/tests/templates/templates.pro -o Makefile ) && make -f Makefile
cd basic/ && ( test -e Makefile || /usr/lib/qt/bin/qmake /ms/code/verdigris/tests/basic/basic.pro -o Makefile ) && make -f Makefile
cd qt/ && ( test -e Makefile || /usr/lib/qt/bin/qmake /ms/code/verdigris/tests/qt/qt.pro -o Makefile ) && make -f Makefile
make[1]: Entering directory '/ms/code/verdigris/benchmarks'
cd qobject/ && ( test -e Makefile || /usr/lib/qt/bin/qmake /ms/code/verdigris/benchmarks/qobject/qobje
View clang.txt
cd tests/ && ( test -e Makefile || /usr/lib/qt/bin/qmake /ms/code/verdigris/tests/tests.pro -o Makefile ) && make -f Makefile
cd benchmarks/ && ( test -e Makefile || /usr/lib/qt/bin/qmake /ms/code/verdigris/benchmarks/benchmarks.pro -o Makefile ) && make -f Makefile
cd tutorial/ && ( test -e Makefile || /usr/lib/qt/bin/qmake /ms/code/verdigris/tutorial/tutorial.pro -o Makefile ) && make -f Makefile
make[1]: Entering directory '/ms/code/verdigris/benchmarks'
cd qobject/ && ( test -e Makefile || /usr/lib/qt/bin/qmake /ms/code/verdigris/benchmarks/qobject/qobject.pro -o Makefile ) && make -f Makefile
make[1]: Entering directory '/ms/code/verdigris/tests'
cd templates/ && ( test -e Makefile || /usr/lib/qt/bin/qmake /ms/code/verdigris/tests/templates/templates.pro -o Makefile ) && make -f Makefile
cd basic/ && ( test -e Makefile || /usr/lib/qt/bin/qmake /ms/code/verdigris/tests/basic/basic.pro -o Makefile ) && make -f Makefile
cd qt/ && ( test -e Makefile || /usr/lib/qt/bin/qmake /ms/code/verdigris/tests/qt/
View poe-kernel-panic
Mar 26 20:09:59 skeith kernel: radeon 0000:01:00.0: GPU fault detected: 147 0x000cc801
Mar 26 20:09:59 skeith kernel: radeon 0000:01:00.0: VM_CONTEXT1_PROTECTION_FAULT_ADDR 0x01000000
Mar 26 20:09:59 skeith kernel: radeon 0000:01:00.0: VM_CONTEXT1_PROTECTION_FAULT_STATUS 0x0C0C8001
Mar 26 20:09:59 skeith kernel: VM fault (0x01, vmid 6) at page 16777216, read from 'TC6' (0x54433600) (200)
Mar 26 20:10:09 skeith kernel: radeon 0000:01:00.0: ring 0 stalled for more than 10156msec
Mar 26 20:10:09 skeith kernel: radeon 0000:01:00.0: GPU lockup (current fence id 0x0000000000019130 last fence id 0x0000000000019146 on ring 0)
Mar 26 20:10:09 skeith kernel: radeon 0000:01:00.0: Saved 1336 dwords of commands on ring 0.
Mar 26 20:10:09 skeith kernel: radeon 0000:01:00.0: GPU softreset: 0x00000009
Mar 26 20:10:09 skeith kernel: radeon 0000:01:00.0: GRBM_STATUS=0xE5504028
Mar 26 20:10:09 skeith kernel: radeon 0000:01:00.0: GRBM_STATUS2=0x52000008