Skip to content

Instantly share code, notes, and snippets.

Avatar

Meesha meesha7

View GitHub Profile
View pyproject.toml
[tool.poetry]
name = "xxx"
version = "1.0.0"
description = "xxx"
authors = ["xxx"]
license = "MIT"
[tool.poetry.dependencies]
python = "^3.7"
numpy = "^1.20.1"
@meesha7
meesha7 / us
Last active Jan 7, 2021
CZ/SK/DE/FI/NO/IS keyboard layout, place in /usr/share/X11/xkb/symbols/ and set by setxkbmap "us(cz_sk_de)"
View us
default partial alphanumeric_keys modifier_keys
xkb_symbols "basic" {
name[Group1]= "English (US)";
key <TLDE> { [ grave, asciitilde ] };
key <AE01> { [ 1, exclam ] };
key <AE02> { [ 2, at ] };
key <AE03> { [ 3, numbersign ] };
key <AE04> { [ 4, dollar ] };
@meesha7
meesha7 / ros.sh
Last active May 18, 2020
ros stands for "run or switch", a simple script to either start a program or switch to its window using wmctrl, ideal for shortcuts
View ros.sh
#!/bin/bash
PID=$(pgrep $1)
if [ ${PID:-null} = null ]
then
$1 &
else
wmctrl -xa $1
fi