Skip to content

Instantly share code, notes, and snippets.


Grzegorz Wierzowiecki gwpl

  • Europe - usually: Zürich, Warsaw or Berlin
View GitHub Profile
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 Jan 2, 2023 — 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 Dec 8, 2022
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 Nov 21, 2022
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 Oct 30, 2022
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 Sep 15, 2022
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 Jul 29, 2022
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
gwpl / Dockerfile
Created Apr 22, 2022
Archlinux RDF SPARQL Jena Fuseki ( fast start )
View Dockerfile
FROM archlinux:latest
RUN echo 2022-02-02 # update this line to enforce refresh instead of --no-cache
RUN pacman -Syyu --noconfirm && \
pacman -S --noconfirm \
git base-devel \
vim screen tmux \
wget aria2 mc htop vim \
mc cmatrix htop vim \
git base-devel shellcheck
# bubblewrap-suid xz \
gwpl /
Created Dec 6, 2021
print code with syntax highlighting using Vim's hardcopy
tmpd="$(mktemp -d)"
if [ "$1" == "-o" ]; then
shift 2
gwpl /
Created Jul 26, 2021
pychrome scraping fetch images Chrome DevTools Protocol Viewer
import base64
import pychrome
# NOT WORKING, copied FTR as copy for "later" from:
# from
def save_image(file_content, file_name):
with open("C:\\Crawler\\temp\\" + file_name,"wb") as f: