Skip to content

Instantly share code, notes, and snippets.

@jkosinski
jkosinski / show_my_jobs.sh
Last active February 15, 2024 20:24
Bash Script for Displaying Slurm Job Commands
#!/bin/bash
# You find this not very useful?
# kosinski@login01.cluster.embl.de:~$ squeue -u kosinski
# JOBID PARTITION NAME USER ST TIME NODES NODELIST(REASON)
# 47266949_4 gpu-el8 alphaf kosinski R 1-00:52:38 1 sb03-10
# 47266949_5 gpu-el8 alphaf kosinski R 1-00:53:08 1 sb03-11
# 47266949_6 gpu-el8 alphaf kosinski R 1-00:53:08 1 sb03-12
# 47266949_8 gpu-el8 alphaf kosinski R 1-00:53:08 1 sb03-16
# 47266949_7 gpu-el8 alphaf kosinski R 1-00:53:39 1 sb03-15
@jkosinski
jkosinski / useful_commands.sh
Last active October 3, 2025 09:27
Useful commands
# chatgpt command line https://github.com/marcolardera/chatgpt-cli
export OPENAI_API_KEY="..."
/home/kosinski/.local/bin/chatgpt-cli --model gpt-4-0125-preview
#Models https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo
#Providing context:
chatgpt-cli --context notes-from-thursday.txt --context notes-from-friday.txt
# Restart network adapter on Mac
@jkosinski
jkosinski / chimerax.txt
Last active February 15, 2025 18:04
ChimeraX
open emdb:14321
open 7R5J
#invert map
vop scale #1 factor -1
#set voxel size
volume #92 voxelSize 13.34
#Hide dust
surface dust #1 size 30
#Color map