Skip to content

Instantly share code, notes, and snippets.

I was drawn to programming, science, technology and science fiction
ever since I was a little kid. I can't say it's because I wanted to
make the world a better place. Not really. I was simply drawn to it
because I was drawn to it. Writing programs was fun. Figuring out how
nature works was fascinating. Science fiction felt like a grand
adventure.
Then I started a software company and poured every ounce of energy
into it. It failed. That hurt, but that part is ok. I made a lot of
mistakes and learned from them. This experience made me much, much
@bgauduch
bgauduch / multiple-repository-and-identities-git-configuration.md
Last active April 24, 2024 14:20
Git config with multiple identities and multiple repositories

Setup multiple git identities & git user informations

/!\ Be very carrefull in your setup : any misconfiguration make all the git config to fail silently ! Go trought this guide step by step and it should be fine 😉

Setup multiple git ssh identities for git

  • Generate your SSH keys as per your git provider documentation.
  • Add each public SSH keys to your git providers acounts.
  • In your ~/.ssh/config, set each ssh key for each repository as in this exemple:
@CMCDragonkai
CMCDragonkai / adding-paths.ps1
Created December 23, 2016 15:44
CLI: Adding paths to PATH environment variable in Windows
#!/usr/bin/env powershell
function Prepend-Idempotent {
# the delimiter is expected to be just 1 unique character
# otherwise there may be problems with trimming
param (
[string]$InputString,
[string]$OriginalString,
[string]$Delimiter = '',
@Ribesg
Ribesg / bash_aliases.sh
Last active December 31, 2015 12:09
Here's my server's Starbound related config files and scripts.
alias sb_start="sudo start starbound"
alias sb_stop="sudo stop starbound"
alias sb_restart="sb_stop;sb_start"
alias sb_update="sudo /home/ribesg/sb_update"
alias sb_online="netstat -nt | grep -c 21025"
alias sb_status="sudo status starbound"