Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@zezic
zezic / Mouse to Joystick for Linux.md
Last active November 28, 2020 11:15
Mouse to Joystick for Linux Virtual Joystick https://github.com/zvxryb/Linux-Virtual-Joystick

Created for use with https://github.com/zvxryb/Linux-Virtual-Joystick

Add both files to ~/.config/vjoy/modules/

Edit mouse2joy.py and change paths accordingly to match your username (not "zezic").

Then run vjoy from its folder with ./vjoy mouse2joy

@zezic
zezic / Numix Transparent.qss
Created July 12, 2019 20:17
Semi-transparent theme for Albert
/*
* author: <https://github.com/zezic>
* author: <https://github.com/tepf>
*
* Check http://doc.qt.io/qt-5/stylesheet-syntax.html especially the subtopics:
* The Style Sheet Syntax (http://doc.qt.io/qt-5/stylesheet-syntax.html)
* Qt Style Sheets Reference (http://doc.qt.io/qt-5/stylesheet-reference.html)
*/
@zezic
zezic / keybase.md
Created January 21, 2020 13:51
keybase.md

Keybase proof

I hereby claim:

  • I am zezic on github.
  • I am zezic (https://keybase.io/zezic) on keybase.
  • I have a public key whose fingerprint is 6E92 D872 6795 67D8 E6C2 FAA8 1201 543B BAE0 C769

To claim this, I am signing this object:

@zezic
zezic / bg_watcher.py
Last active December 27, 2019 12:30
Fake chameleon Plank themer and top panel background blur tool
import os
from string import Template
from PIL import Image
from PIL.ImageStat import Stat
from PIL.ImageFilter import GaussianBlur
from PIL import ImageEnhance
from time import sleep
def flat( *nums ):
'Build a tuple of ints from float or integer arguments. Useful because PIL crop and resize require integer points.'
@zezic
zezic / USAGE.md
Created August 3, 2019 09:57
Text Encoding Test
$ python3 enctest.py
Input Certificate Serial Number:
> 03:4A:72:43:1B:35:86:E7:D1:F9:22:2B:03:F6:9E:15:3E:54
Base64: A0pyQxs1hufR+SIrA/aeFT5U
Base85: 14?p38#RXK(fJ}P1NNR3K2!
@zezic
zezic / click_enter.py
Created July 20, 2018 14:28
Produce Enter key tap when left mouse button clicked
from pymouse import PyMouseEvent
from pykeyboard import PyKeyboard
class Listener(PyMouseEvent):
def __init__(self):
PyMouseEvent.__init__(self)
self.keyboard = PyKeyboard()
def click(self, x, y, button, press):
@zezic
zezic / SvgChart.vue
Created July 9, 2018 08:31
Draw and animate SVG with Vue.js and Tween.js
<template lang='pug'>
.svg-chart
button(@click='randomize') Randomize
transition-group(name='list', tag='div')
svg.chart(
v-for='item in list',
:width='width',
:height='height',
:key='item.key'
)