Skip to content

Instantly share code, notes, and snippets.

Connect via SSH to a Slurm compute job that runs as Enroot container

Being able to SSH directly into a compute job has the advantage of using all remote development tools such as using your IDE's debugger also for GPU jobs (VSCode, PyCharm, ...).

  • Slurm: Scheduling system that many HPC clusters use
  • Enroot: Container system like Docker for NVIDIA GPUs

General problem:

@Klerith
Klerith / init-rn.md
Created March 3, 2021 20:56
Comando para crear aplicación de React Native con TypeScript

Comando para crear un proyecto de RN con TS

npx react-native init AwesomeTSProject --template react-native-template-typescript
#!/usr/bin/env bash
set -eou pipefail
cd /home/pi
git clone https://github.com/popcornmix/omxplayer.git
cd omxplayer
sudo apt-get update && sudo apt install -y git libasound2-dev libva2 libpcre3-dev libidn11-dev libboost-dev libdbus-1-dev libssh-dev libsmbclient-dev libssl-dev
# see https://github.com/popcornmix/omxplayer/issues/731
@gmickel
gmickel / perplexity.plugin.zsh
Last active April 19, 2024 20:30
Query the perplexity API from your ZSH - ohmyzsh plugin
#!/usr/bin/env zsh
function p() {
jq -n \
--arg content "$*" \
'{
"model": "sonar-medium-online",
"messages": [
{
"role": "user",
"content": $content
@kupietools
kupietools / Docker Desktop v 4.0.0 thru 4.22.1 direct download links
Last active April 19, 2024 20:28
List of Direct Download links for Docker Desktop from version 4.0.0 released 2021-08-31 thru 4.22.1 released 2023-08-24, as archived on archive.org
@Ynng
Ynng / custom.css
Last active April 19, 2024 20:26
vscode vtuber logo
.editor-group-watermark > .letterpress{
background-image: url("https://raw.githubusercontent.com/Aikoyori/ProgrammingVTuberLogos/main/VSCode/VSCode.png") !important;
opacity: .75;
}
@rdenadai
rdenadai / python_expert_path.md
Last active April 19, 2024 20:20
My take into build a basic structure to dictate how to become a Python Expert ... from basic to specialist ?

Python Expert Path

Beginner

  • Basic syntax
    • Variables types:
      • bool, int, float, str, byte, complex, None
    • Conditionals:
      • if, else, elif, for, while, match
  • Functions: simple use, and known what first class citizen is (concept)
@rubyandcoffee
rubyandcoffee / Bootstrap - Rails 7
Last active April 19, 2024 20:20
Bootstrap with Rails 7
Adding Bootstrap to Rails 7
Reference: https://www.linkedin.com/pulse/rails-7-bootstrap-52-importmap-md-habibur-rahman-habib/
INSTRUCTIONS
1. Add the following to Gemfile:
gem "bootstrap"
gem "sassc-rails"
@SevlaMare
SevlaMare / 1prompt.py
Last active April 19, 2024 20:22
AI ollama
# ollama pull gemma:2b
from langchain_community.llms import Ollama
llm = Ollama(model="gemma:2b")
res = llm.invoke("Tell me a joke")
print(res)