Skip to content

Instantly share code, notes, and snippets.

View davidbarkhuizen's full-sized avatar
🧐

david barkhuizen davidbarkhuizen

🧐
  • .za
View GitHub Profile
@davidbarkhuizen
davidbarkhuizen / vscode.md
Last active October 14, 2022 13:06
vscode

open cmd palette ctrl + shift + p

format code

collapse all ctrl + (k,0) expand all ctrl + (k,j)

navigate

navigate to next alt + right

@davidbarkhuizen
davidbarkhuizen / that_green_curry_recipe.txt
Created October 16, 2018 15:05
thai green curry recipe
THAI GREEN CURRY
Ingredients
1 tbsp vegetable oil
2 tbsp green curry paste (according to taste)
1 tbsp soft dark brown sugar
1-2 thick stalks lemongrass, fat ends bashed with a rolling pin (optional)
750g skinless, boneless chicken, cut into chunks (use breast and/or leg meat)
6-8 lime leaves, torn into pieces (if unavailable, use the grated zest of 1 lime)
@davidbarkhuizen
davidbarkhuizen / docker.md
Last active October 14, 2022 13:05
docker

heirarchy

  • registry -- repo --- image ---- tag (version)

find name of docker servce in windows

sc queryex type= service state= all | find /i "docker"

get docker version

@davidbarkhuizen
davidbarkhuizen / ubuntu_serial_to_usb_terminal.txt
Last active November 2, 2018 08:35
serial to usb terminal in ubuntu
1. install putty (or minicom)
$ sudo apt install putty
2. plug in usb-to-serial cable
3. to check which serial port has been crested, run dmesg pipe output to grep, filter to tty, note output
(man dmesg => print or control the kernel ring buffer)
$ dmesg | grep tty
sample ouput:
@davidbarkhuizen
davidbarkhuizen / install_pyscard_on_ubuntu_1804.txt
Last active November 19, 2018 14:56
installing swig on ubuntu 1804
sudo apt-get install automake
sudo apt-get install libpcre3-dev
sudo apt install byacc
git clone https://github.com/swig/swig.git
cd swig
./autogen.sh
./configure
make
sudo make install
@davidbarkhuizen
davidbarkhuizen / nitrokey_hsm_dev_notes.txt
Last active November 20, 2018 13:51
NitroKey HSM - Development Notes
NitroKey HSM - Development Notes
links
- [NitroKey Home](https://www.nitrokey.com)
- [NitroKey SmartCard HSM](https://github.com/OpenSC/OpenSC/wiki/SmartCardHSM)
installation - ubuntu linux
1. install openSC = open smart card library
$ sudo apt install opensc
@davidbarkhuizen
davidbarkhuizen / psql.md
Last active November 1, 2022 11:37
postgresql

switch to posgres user

sudo -i -u postgres

create database xxx

createdb xxx

console comands

quit console

@davidbarkhuizen
davidbarkhuizen / how to use vscode to write and debug webpack typescript running in the browser (chromium).md
Last active December 23, 2018 07:07
how to use vscode to write and debug webpack typescript running in the browser (chromium)

how to use vscode to write and debug webpack typescript running in the browser (chromium)

goals

  • write typescript in vscode
  • build, package and serve js using webpack
  • execute js in browser (chromium)
  • debug from vscode

pre-requisites

@davidbarkhuizen
davidbarkhuizen / baofeng_UV-5RE.md
Last active August 3, 2023 15:34
Baofeng uv-5re
@davidbarkhuizen
davidbarkhuizen / sunbird.md
Last active December 21, 2020 13:32
sunbird

Sunbird

Goals

  1. achieve full remote control of drone functions
    1.1 source a USB IR transducer with a workable interface
    1.2 reverse engineer the IR communication protocol
    1.3 develop a basic control module
  2. achieve blind control of basic flight components
    2.1 hover