Skip to content

Instantly share code, notes, and snippets.

Avatar

Dušan Maliarik skrat

View GitHub Profile
View gist:1294aabab40fdb14bbb0c66969141c46
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod4
set $term termite
set $out_laptop LVDS-1
set $out_monitor HDMI-A-1
View gist:709ddacf15b355cb3bc8f7db43137a19
PID: 401531 (sway)
UID: 1000 (skrat)
GID: 1000 (skrat)
Signal: 11 (SEGV)
Timestamp: Tue 2020-12-15 19:50:24 MST (1 months 18 days ago)
Command Line: sway
Executable: /usr/bin/sway
Control Group: /user.slice/user-1000.slice/session-12.scope
Unit: session-12.scope
Slice: user-1000.slice
View gist:add7c89204e9918c3951acd5c99b9262
00:00:00.792 [ERROR] [sway/config/output.c:265] Configured mode for HDMI-A-1 not available
2021-02-02 15:58:25 - [swaybg/main.c:299] Found config HDMI-A-1 for output HDMI-A-1 (BenQ Corporation BenQ EL2870U D4J03604SL0)
2021-02-02 15:58:25 - [swaybg/main.c:299] Found config LVDS-1 for output LVDS-1 (Unknown 0x0382 0x00000000)
** Message: 15:58:25.320: couldn't access control socket: /run/user/1000/keyring/control: No such file or directory
** Message: 15:58:25.321: couldn't access control socket: /run/user/1000/keyring/control: No such file or directory
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
[2021-02-02 15:58:25.492] [info] Resources files: /home/skrat/.config/waybar/config, /home/skrat/.config/waybar/style.css
[2021-02-02 15:58:25.530] [warning] For a functional tray you must have libappindicator-* installed and export XDG_CURRENT_DESKTOP=Unity
(WW) Option "-listen" for file descriptors is deprecated
Please use "-listenfd" instead.
View gist:8c3eac667867dbf895a5559a3bcd1ee9
PID: 401531 (sway)
UID: 1000 (skrat)
GID: 1000 (skrat)
Signal: 11 (SEGV)
Timestamp: Tue 2020-12-15 19:50:24 MST (1 months 18 days ago)
Command Line: sway
Executable: /usr/bin/sway
Control Group: /user.slice/user-1000.slice/session-12.scope
Unit: session-12.scope
Slice: user-1000.slice
View gist:6603109bfb7e4e7ffd15ff74ffb22923
00:00:01.086 [sway/config/output.c:262] Configured mode for HDMI-A-1 not available
2021-01-29 22:58:38 - [swaybg-1.0/main.c:299] Found config HDMI-A-1 for output HDMI-A-1 (BenQ Corporation BenQ EL2870U D4J03604SL0)
2021-01-29 22:58:38 - [swaybg-1.0/main.c:299] Found config LVDS-1 for output LVDS-1 (Unknown 0x0382 0x00000000)
** Message: 22:58:38.702: couldn't access control socket: /run/user/1000/keyring/control: No such file or directory
** Message: 22:58:38.705: couldn't access control socket: /run/user/1000/keyring/control: No such file or directory
** Message: 22:58:38.710: couldn't access control socket: /run/user/1000/keyring/control: No such file or directory
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
(WW) Option "-listen" for file descriptors is deprecated
Please use "-listenfd" instead.
View gist:b0a9e65dad7df18b6c74243d3a6c50a1
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod4
set $out_laptop LVDS-1
set $out_monitor HDMI-A-1
output $out_laptop pos 0 0
View ArcBallExample.cpp.patch
150c150
< .setStorage(1, GL::TextureFormat::RGB8, size)
---
> .setStorage(1, GL::TextureFormat::RGB, size)
154,155c154
< Shaders::MeshVisualizer3D::Flag::Wireframe|
< Shaders::MeshVisualizer3D::Flag::VertexId};
---
> Shaders::MeshVisualizer3D::Flag::Wireframe};
160,162c159
View CMakeLists.txt
cmake_minimum_required(VERSION 3.5)
project(jumper-qt LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/modules/" ${CMAKE_MODULE_PATH})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
View getnifs.py
#!/usr/bin/python
# Based on https://gist.github.com/provegard/1536682, which was
# Based on getifaddrs.py from pydlnadms [http://code.google.com/p/pydlnadms/].
# Only tested on Linux!
from socket import AF_INET, AF_INET6, inet_ntop
from ctypes import (
Structure, Union, POINTER,
pointer, get_errno, cast,
View keybase.md

Keybase proof

I hereby claim:

  • I am skrat on github.

  • I am skrat (https://keybase.io/skrat) on keybase.

  • I have a public key ASDvkkh_WzqaPYGA94ojnltZrn_OadNqiyFdd5-IB12T_Ao