Skip to content

Instantly share code, notes, and snippets.

View joshy's full-sized avatar

Joshy Cyriac joshy

  • Universitätsspital Basel
  • Basel
View GitHub Profile
@joshy
joshy / gist:08b3c3c5122e098ea7a9588f9728e781
Created January 19, 2024 12:14
Voila dashboard starts a new kernel every time the page is reloaded
# how to clean up the idle kernels
voila --MappingKernelManager.cull_interval=60 --MappingKernelManager.cull_idle_timeout=120
@joshy
joshy / gist:e2e52cb29dae8cf0afd7c1e042b05c24
Created January 19, 2024 07:19
Certificate expiration date
openssl s_client -connect <hostname>:<port> | openssl x509 -noout -dates
Das Wunder von Basel:
https://www.swissinfo.ch/ger/direktedemokratie/schauplatz-schweiz--12-_das-picasso-wunder-zu-basel/43549972
@joshy
joshy / gist:5a5431e74795b14c62b7978977603d1d
Created June 15, 2023 06:40
Windows get cmd line arguments of a windows process
# open powershell as administrator and run
wmic process where ProcessId=<ID> get CommandLine
@joshy
joshy / gist:73e7ae352965716406e65342441ed4a8
Created August 10, 2022 06:17
clean /var/log/journal
sudo journalctl --vacuum-size=500M
# vscode not showing up
code --user-data-dir=/tmp/remote
# firefox not showing up
firefox -P # create a new profile
@joshy
joshy / gist:38514c737188e7780f84060e804085ad
Created November 24, 2021 16:03
vmware new disk on linux make visible without reboot
for host in /sys/class/scsi_host/*; do echo "- - -" | sudo tee $host/scan; ls /dev/sd* ; done
@joshy
joshy / gist:68f4d19f4e68e609dc2fac18f695771d
Last active November 8, 2021 01:52
Find out key names for i3wm configuration
xev -event keyboard | egrep -o 'keycode.*\)'
# nushell 0.27
# find small files and delete them
ls **/LWS* | where size < 16mb | each { rm $it.name }
@joshy
joshy / slurm.sh
Created July 28, 2020 06:58
slurm actual hardware configuration
#!/bin/sh
slurmd -C