Skip to content

Instantly share code, notes, and snippets.

View petja's full-sized avatar
💻
Developing software

Petja Touru petja

💻
Developing software
View GitHub Profile
@petja
petja / project.sh
Last active May 16, 2018 09:31
List own projects, change directory and attach tmux easily
#!/bin/bash
if [[ "$TERM" =~ "screen".* ]]; then
echo "You have to detach tmux before continuing"
else
if [ -z "$1" ]; then
printf "\n\e[3mWhich project you want to open?\e[0m\n\n"
ls -t ~/projects
@ygotthilf
ygotthilf / jwtRS256.sh
Last active December 3, 2025 11:46
How to generate JWT RS256 key
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
cat jwtRS256.key
cat jwtRS256.key.pub
@subfuzion
subfuzion / global-gitignore.md
Last active December 25, 2025 13:16
Global gitignore

There are certain files created by particular editors, IDEs, operating systems, etc., that do not belong in a repository. But adding system-specific files to the repo's .gitignore is considered a poor practice. This file should only exclude files and directories that are a part of the package that should not be versioned (such as the node_modules directory) as well as files that are generated (and regenerated) as artifacts of a build process.

All other files should be in your own global gitignore file:

  • Create a file called .gitignore in your home directory and add any filepath patterns you want to ignore.
  • Tell git where your global gitignore file is.

Note: The specific name and path you choose aren't important as long as you configure git to find it, as shown below. You could substitute .config/git/ignore for .gitignore in your home directory, if you prefer.

@CvutFelStudentAccount
CvutFelStudentAccount / gist:1362737
Created November 13, 2011 21:20
Trololo (ASCII)
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
........................:DMNMMMMMMMMMMMMNNMMMMMMMMMMNNNMMMMMMM..................
..................=MMMMMMMO: ..... ?NMM$: .7MZ ...........DMN................
...............NMM~.................... ,:, .....,M .........MM+..............
............NMM:...~ =8MMOI?7OMMNMD .......... +MZ...OI........MMZ.............
..........MMN..........................., .,?DMN,...N ..M.......MM?............