Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
little tidbits and notes that may be helpful

little tidbits and notes that may be helpful

just some things that i might want to keep handy and will probably delete if kept somewhere else.

Enabling TRIM/DISCARD support on openSUSE TW on LVM/LUKS1 for fstrim support

for future reference, add discard to /etc/crypttab for trimming goodness

  • GoldSolitude 27/11/2019 on the openSUSE discord server

Swift git(hub) on Windows setup

If you're using gpg4win.

git config --global gpg.program "C:\Program Files (x86)\GnuPG\bin\gpg.exe"
git config --global user.name "(Your name)"
git config --global user.email "(Your email)"
git config --global commit.gpgSign true
git config --global user.signingKey (Your KeyID)

Get keyid with gpg --list-secret-keys

git clone any repository then git push to bring up GitHub login to generate and securely store Access Token provided by Git Credential Manager for Windows

easy peasy you got github set for git use.

Git(hub) setup on WSL which uses Windows GPG and Credential Manager.

Must have Git for Windows, Git Credential Manager for Windows and any GPG provider of your choice but I use gpg4win.

git config --global credential.helper "/mnt/c/Program\\ Files/Git/mingw64/libexec/git-core/git-credential-manager.exe"

This is the location of the gpg.exe of gpg4win, if you use a different gpg provider from lets say msys2 you'd use that directory and gpg.exe /mnt/c/msys64/usr/bin/gpg.exe

git config --global gpg.program "/mnt/c/Program Files (x86)/GnuPG/bin/gpg.exe"
git config --global commit.sign true 
git config --global user.name "(Your name)"
git config --global user.email "(Your email)"
git config --global user.signingkey "(Your Keyid)"

Get keyid with gpg --list-secret-keys

Pushing or pulling will use the (hopefully) already setup credentials from the Git Credential Manager for Windows!

Old things that may or may not be valid anymore

Argo Tunnel (@) systemd base service

Into /etc/systemd/system with cloudflared@.service

[Unit]
Description=Argo Tunnel (%I)
After=network.target

[Service]
TimeoutStartSec=0
Type=notify
ExecStart=/usr/local/bin/cloudflared --config /etc/cloudflared/%i.yml --no-autoupdate
Restart=always
RestartSec=5s

[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment