Skip to content

Instantly share code, notes, and snippets.

Avatar
🔓
gpg --recv-keys 16FE1EF864EAFBE8209247FAAE69C4B00B02FC69

ratijas ratijas

🔓
gpg --recv-keys 16FE1EF864EAFBE8209247FAAE69C4B00B02FC69
View GitHub Profile
@ratijas
ratijas / stacktrace.log
Created Feb 3, 2022
GammaRay: Stacktrace for QSGTextureGrabber::requestGrab crash
View stacktrace.log
❯ coredumpctl gdb
PID: 57547 (jumpy-desktop-b)
UID: 1000 (ratijas)
GID: 1000 (ratijas)
Signal: 11 (SEGV)
Timestamp: Fri 2022-02-04 01:36:34 MSK (12s ago)
Command Line: ./jumpy-desktop-button
Executable: /home/ratijas/projects/playground/jumpy-desktop-button/build/Desktop_Qt_5_15_2_GCC_64bit_system/Debug/jumpy-desktop-button
Control Group: /user.slice/user-1000.slice/user@1000.service/app.slice/app-org.kde.konsole-60c4801dd60945c5ab4dd5482178a6fe.scope
Unit: user@1000.service
@ratijas
ratijas / coredumpctl gdb and backtrace
Last active Feb 4, 2022
GammaRay crash in GammaRay::RemoteModel::Node::~Node()
View coredumpctl gdb and backtrace
$ coredumpctl gdb 42834
PID: 42834 (gammaray-client)
UID: 1000 (ratijas)
GID: 1000 (ratijas)
Signal: 11 (SEGV)
Timestamp: Thu 2022-01-27 18:36:57 MSK (26s ago)
Command Line: /usr/lib/gammaray/libexec/gammaray-client tcp://127.0.0.1:11732
Executable: /usr/lib/gammaray/libexec/gammaray-client
Control Group: /user.slice/user-1000.slice/user@1000.service/app.slice/app-org.kde.yakuake-5ff7e14344c34635b05cbe5c74112da6.scope
Unit: user@1000.service
@ratijas
ratijas / DSUS.lua
Created Oct 2, 2020
DSUS (DualShock Udp Server) protocol dissector for Wireshark
View DSUS.lua
-- cache globals to local for speed.
local format = string.format
local tostring = tostring
local tonumber = tonumber
local sqrt = math.sqrt
local pairs = pairs
-- declare DSUS protocol
local dsus_proto = Proto.new("DSUS", "DualShock UDP Server/Client for Cemuhook")
View linuxdeployqt.Dockerfile
FROM ubuntu:trusty
RUN apt-get update && apt-get install -y \
libglib2.0-0 \
wget \
&& rm -rf /var/lib/apt/lists/*
RUN wget https://raw.githubusercontent.com/J-Rios/BASH-Scripts/master/install/install_qt5 \
&& chmod +x install_qt5 \
&& ./install_qt5 \
View qqc2-vs-labs-platform.qml
import QtQuick 2.12 as QQ
import QtQuick.Window 2.12 as QQW
import Qt.labs.platform 1.1 as QLP
import QtQuick.Controls 2.12 as QQC2
QQW.Window {
visible: true
width: 640
height: 480
title: qsTr("Hello World")
@ratijas
ratijas / playground.rs
Created Apr 8, 2020 — forked from rust-play/playground.rs
Using Box<[T]> in Rust for multi-dimensional arrays
View playground.rs
use std::{fmt, ops};
pub struct Array2D<T> {
width: usize,
height: usize,
data: Box<[T]>,
}
impl<T> Array2D<T> {
pub fn new(size: (usize, usize)) -> Self
@ratijas
ratijas / RegQueryValueEx.rs
Last active Mar 11, 2020
Stable, safe, fast wrapper for RegQueryValueEx
View RegQueryValueEx.rs
/* common uses */
pub use std::ptr::{self, null, null_mut};
pub use widestring::*;
pub use winapi::shared::minwindef::*;
pub use winapi::shared::winerror::*;
pub use winapi::um::errhandlingapi::*;
pub use winapi::um::winbase::*;
pub use winapi::um::winnt::*;
pub use winapi::um::winreg::*;
View INSTALL.md

rage-quit plugin for oh-my-zsh

based on rage-quit support for bash

HOW TO INSTALL

Put the files below inside ~/.oh-my-zsh/custom/plugins/fuck

Add fuck to the loaded plugins inside your .zshrc, and enjoy. Autocomplete is included.

@ratijas
ratijas / README.md
Last active Jun 2, 2016
iTunes + AppleScript + async == launchd?
View README.md

#pre (section zero)

all of a sudden, i wanted something strange: get track info in iTunes completely with keyboard. however, there's one little but annoying point: if you ever made it into "lyrics" tab and your cursor stuck in textarea -- adiós -- you'll never git it out of there without help of mouse. and so, being fed up with that, i finally took some time to deal with problem in top down manner.

##first try

@ratijas
ratijas / installXLDVorbisDecoder.sh
Created Feb 17, 2016
decoding .ogg music files with XLD
View installXLDVorbisDecoder.sh
#!/bin/sh
# copyright 2016 Ratijas & Mac-J studio
# WTF Public Licence
# sadly, XLD still does not support .ogg files decoding out of the box.
# there's instruction with outdated download link: https://hydrogenaud.io/index.php/topic,81239.0.html,
# so here we'll recreate all necessary steps needed to patch up your XLD installation.
# we will need git, svn and Xcode (with command line tools)
# REWRITE following line if your XLD.app is not at /Applications