Skip to content

Instantly share code, notes, and snippets.

View darkhan-ai's full-sized avatar
:octocat:
Focusing

Darkhan darkhan-ai

:octocat:
Focusing
  • Poland
View GitHub Profile
@philwhln
philwhln / vast-ai-setup.txt
Created February 19, 2021 22:43
vast.ai setup script for model training workflow with jupyter notebook and git
apt-get update
apt-get install -y curl git-core
mkdir -p ~/.ssh && chmod 700 ~/.ssh
cat > ~/.ssh/id_rsa <<- EOM
-----BEGIN OPENSSH PRIVATE KEY-----
YOUR SSH PRIVATE KEY GOES HERE
-----END OPENSSH PRIVATE KEY-----
EOM
@jmoyers
jmoyers / 1. README.md
Last active June 23, 2023 17:00
Get up and running with a terminal, vim, and c++
  • color scheme
  • terminal
  • z proj, takes you to /some/deep/directory/project
@joseluisq
joseluisq / stash_dropped.md
Last active June 21, 2024 07:36
How to recover a dropped stash in Git?

How to recover a dropped stash in Git?

1. Find the stash commits

git log --graph --oneline --decorate ( git fsck --no-reflog | awk '/dangling commit/ {print $3}' )

This will show you all the commits at the tips of your commit graph which are no longer referenced from any branch or tag – every lost commit, including every stash commit you’ve ever created, will be somewhere in that graph.