Skip to content

Instantly share code, notes, and snippets.

View mszczepanczyk's full-sized avatar

Mariusz Szczepańczyk mszczepanczyk

View GitHub Profile
View .eslintrc.js
module.exports = {
extends: [
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
mszczepanczyk /
Last active April 30, 2021 16:15
Run FileBot with JavaFX on macOS
# fixes "Failed to initialize JavaFX. Please install JavaFX."
# $ ls -1
# FileBot.jar
# javafx-sdk-11.0.2
set -e
#!/usr/bin/env python2
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (
# The author disclaims copyright to this source code.
import sys
import struct
import socket
import time
import select
mszczepanczyk / grab.c
Created May 27, 2013 09:30
ugly hack
View grab.c
// gcc grab.c -o grab -lX11
// ugly hack to catch windows key before application and change i3 workspace if windows+[0-9] is pressed
// usage: grab winid_1 winid_2 ...
// example:
// grab `xwininfo -root -tree -int |grep " - Oracle VM VirtualBox" | awk '{print $1}'`
#include <X11/X.h>
#include <X11/Xlib.h>