Skip to content

Instantly share code, notes, and snippets.

@mario-oberwalder
mario-oberwalder / README.md
Created October 19, 2022 11:52 — forked from maelvls/README.md
Ubuntu, libsecret, git-credential-helper

Dealing with secrets

GNOME comes with libsecret. You can use libsecret to store your git credentials:

sudo apt install libsecret-1-0 libsecret-1-dev libglib2.0-dev
sudo make --directory=/usr/share/doc/git/contrib/credential/libsecret
git config --global credential.helper /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret
@mario-oberwalder
mario-oberwalder / gist:34ff0fdc71f3f391a0df10ba5695aca7
Created August 9, 2022 15:55
StdErr to StdOut and both also to file
2>&1 | tee outfile
git update-index --assume-unchanged readme.adoc
...
work
...
git update-index --no-assume-unchanged readme.adoc
@mario-oberwalder
mario-oberwalder / sugh.sh
Created March 17, 2021 07:56 — forked from erdincay/sugh.sh
su GitHub (downloading all repositories from a given user)
#!/bin/bash
if [ -z "$1" ]; then
echo "waiting for the following arguments: username + max-page-number"
exit 1
else
name=$1
fi
if [ -z "$2" ]; then