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 / clean.sh
Created July 10, 2020 10:41
delete oldest first directories
# delete oldest first, first 100 entries of directories
ls -lctr | head -n 100 | xargs sudo rm -rf
@joshy
joshy / slurm.sh
Created July 28, 2020 06:58
slurm actual hardware configuration
#!/bin/sh
slurmd -C
# nushell 0.27
# find small files and delete them
ls **/LWS* | where size < 16mb | each { rm $it.name }
@joshy
joshy / gist:68f4d19f4e68e609dc2fac18f695771d
Last active November 8, 2021 01:52
Find out key names for i3wm configuration
xev -event keyboard | egrep -o 'keycode.*\)'
@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
# vscode not showing up
code --user-data-dir=/tmp/remote
# firefox not showing up
firefox -P # create a new profile
@joshy
joshy / gist:73e7ae352965716406e65342441ed4a8
Created August 10, 2022 06:17
clean /var/log/journal
sudo journalctl --vacuum-size=500M
@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
Das Wunder von Basel:
https://www.swissinfo.ch/ger/direktedemokratie/schauplatz-schweiz--12-_das-picasso-wunder-zu-basel/43549972
@joshy
joshy / gist:e2e52cb29dae8cf0afd7c1e042b05c24
Created January 19, 2024 07:19
Certificate expiration date
openssl s_client -connect <hostname>:<port> | openssl x509 -noout -dates