Skip to content

Instantly share code, notes, and snippets.

@goldsolitude
Created May 19, 2021 07:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goldsolitude/c5c3dc0125581c2a47d6f6537499997e to your computer and use it in GitHub Desktop.
Save goldsolitude/c5c3dc0125581c2a47d6f6537499997e to your computer and use it in GitHub Desktop.
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