Skip to content

Instantly share code, notes, and snippets.


Grzegorz Wierzowiecki gwpl

  • Europe - usually: Zürich, Warsaw or Berlin
View GitHub Profile
gwpl / .git_hooks_post-commit
Created April 27, 2023 18:51
Automatically pushing main branch to multiple repositories after each commit
View .git_hooks_post-commit
# cat .git/hooks/post-commit # <= change this file in your repo to automatiicaly execute after each commit
cd /path/to/your/repo
git push gitlab master && git push github master && git push anotherserver master
# You may want to add your different remotes using:
# git remote add REMOTENAME git@server.domain:group/project.git #this is ssh example
# (and REMOTENAME above was gitlab, github, anotherserver...)
gwpl / clean_Ink_printer_CMYK_heads.tex
Created April 21, 2023 09:49
Clean Ink CMYK printer heads with color pages.
View clean_Ink_printer_CMYK_heads.tex
gwpl / rust_session_illustrate_value_change_in_vector.bash_terminal
Last active March 6, 2023 21:20
Rust session Illustrate Value change in vector
View rust_session_illustrate_value_change_in_vector.bash_terminal
#If you run in terminal multiplexxer...
# (or code editor and terminal to see complile+run output)
# like screen or tmux,
# you may want in one to have
# and in another:
echo | entr -cs 'rustc && ./l1'
gwpl / logseq-enhanced-theme.css
Created January 2, 2023 18:48 — forked from eteplus/logseq-enhanced-theme.css
logseq enhanced theme
View logseq-enhanced-theme.css
.block-children {
border-left-width: var(--ls-block-bullet-threading-width);
.block-content-wrapper {
position: relative;
.bullet-container {
height: 14px !important;
gwpl / custom.css
Created January 2, 2023 17:53 — forked from madawei2699/custom.css
View custom.css
/* Theme custom css start
@import url(";400;500;700&family=Fira+Sans:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");
:root {
--background: #282a36;
--light-background: #343746;
gwpl /
Last active December 8, 2022 23:25
rust-gdb - easy way to run rust-scripts with gdb
# regarding rust-script : =>
rust-gdb $(rust-script --debug -o ./ --version 2>&1 | rg -w '.+Running `(.+) --version`' -r '$1')
gwpl /
Last active November 21, 2022 13:27
Isolating applications on desktop - Docker, Vagrant as a Desktop (or QubesOS and other options) for for better desktop security [Notes/Draft]

The goal of these notes is to plant idea that there are few alternatives to "just running apps directly on your computer".

If you don't pick any of mentioned options, please consider as bare minimum, making separate user for some apps, or some contexts (e.g. "me-work-emails", "me-work-coding", "me-work-graphics-design", "me-work-instant-messanger",...). However above solutions one may find more seamless.

gwpl / by_G_foaf_example.ttl
Created October 30, 2022 15:51
by G foaf example, showing simple queries progressing step by step with outputs; run using Apache Jena ; based on and
View by_G_foaf_example.ttl
@prefix dc: <>.
@prefix ex: <> .
@prefix foaf: <>.
@prefix owl: <>.
@prefix rdf: <>.
@prefix rdfs: <>.
@prefix vs: <>.
@prefix wot: <>.
@prefix xml: <>.
@prefix xsd: <>.
gwpl /
Last active September 15, 2022 18:56
Reading aloud content of clipboard. espeak fro clipboard under Linux / X (should work under other unixes , if required change `xclip` to something else )
# e.g. -s 300 to read faster :
# -s 300
# espeak has other parameters too, check man espeak-ng
if [ -z "$1" ]; then
gwpl /
Created July 29, 2022 13:50
docker cleanup - freeing disk space or building fresh regardless of cache
set -x
docker image prune -a
docker system prune -a # from
#docker volumes prune # from
# altnernatively:
# How to force Docker for a clean build of an image without deleting cache
# and btw -> docker builder prune -af