Skip to content

Instantly share code, notes, and snippets.

View davidbarkhuizen's full-sized avatar
🧐

david barkhuizen davidbarkhuizen

🧐
  • .za
View GitHub Profile
@davidbarkhuizen
davidbarkhuizen / gist:bc8abd6569eaf8e10f3c21e3449012e9
Created March 13, 2026 08:26
git - delete all non-core local branches
git branch | grep -v -e "main" -e "development" -e "test" | xargs git branch -D
@davidbarkhuizen
davidbarkhuizen / upgrade-firmware.sh
Created March 4, 2026 15:40
ubuntu firmware upgrade
sudo apt update && sudo apt install fwupd -y \
&& sudo fwupdmgr refresh --force \
&& sudo fwupdmgr get-updates \
&& sudo fwupdmgr update
@davidbarkhuizen
davidbarkhuizen / github-ssh-deploy-key-how-to.md
Last active November 10, 2025 11:28
github ssh deploy key - how to guide

github ssh deploy key - how to guide

generate key

in general

ssh-keygen -t ed25519 -N "" -C "github-deploy-key" -f ./github_deploy_key_id_ed25519

if you are using webfactory/ssh-agent action from https://github.com/webfactory/ssh-agent to set the ssh key in github sam-pipeline.yml, then the comment field needs to match the url of the target repo, e.g.

ssh-keygen -t ed25519 -N "" -C "git@github.com:owner/repo.git" -f ./github_deploy_key_id_ed25519
@davidbarkhuizen
davidbarkhuizen / alpine_linux.md
Last active February 20, 2025 16:50
alpine linux
@davidbarkhuizen
davidbarkhuizen / sharepoint-cheat-sheet.md
Last active September 11, 2024 13:17
sharepoint cheat sheet

sharepoint cheat sheet

search operators

filename:"abc_def_*"
@davidbarkhuizen
davidbarkhuizen / redshift.md
Last active April 22, 2022 10:07
redshift configuration
@davidbarkhuizen
davidbarkhuizen / linux_ssh_config.md
Last active April 17, 2022 04:31
linux ssh client config
$ mkdir -p ~/.ssh && chmod 700 ~/.ssh  
$ touch ~/.ssh/config  
$ chmod 600 ~/.ssh/config

sample ssh file

Host host_alias

HostName actual.host.domain

@davidbarkhuizen
davidbarkhuizen / visual_studio_cheatsheet.md
Last active April 13, 2022 08:01
visual studio keyboard shortcuts

VS

build solution|ctrl+shift+b

nuget

install

Install-Package xxx

Keybase proof

I hereby claim:

  • I am davidbarkhuizen on github.
  • I am davidbarkhuizen (https://keybase.io/davidbarkhuizen) on keybase.
  • I have a public key ASAj78tL1bfXfW9HwcgsWsDtdjYL7A2Qmx0AmCA_BkTh5go

To claim this, I am signing this object:

@davidbarkhuizen
davidbarkhuizen / ubuntu_core_rpi3.md
Last active April 2, 2022 15:25
ubuntu core on the rpi3

ubuntu core on rpi3

download os install image

from https://ubuntu.com/download/raspberry-pi-core
yielding e.g. ubuntu-core-20-arm64+raspi.img.xz

install image

right-click image file in ubuntu explorer, select 'Open with Disc Image Writer'.