Skip to content

Instantly share code, notes, and snippets.

@birgersp
birgersp / windows setup.ps1
Last active Apr 22, 2022
Config/software install on a Windows machine
View windows setup.ps1
choco install linkshellextension -y
View ubuntu-setup.sh
sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt update
sudo apt install grub-customizer -y
sudo apt install golang-go -y
go get -u github.com/odeke-em/drive/cmd/drive
View Setup Raspberry Pi chroot for cross compilation
#!/bin/bash
# https://gauvain.pocentek.net/docs/raspbian-chroot/
apt install schroot
echo \
[jessie] \
description=Raspbian armhf \
directory=/var/chroot \
@birgersp
birgersp / submit-git-patch.md
Last active Sep 1, 2019
Checklist to submit a git patch
View submit-git-patch.md
  1. Create the commit
  2. git format-patch origin/master
  3. git send-email --in-reply-to=SOME_MESSAGE_ID --to=git@vger.kernel.org,OTHERS NAME_OF_PATCH_FILE
@birgersp
birgersp / makefile
Last active Sep 2, 2019
A standard C++ project makefile I use for most of my projects
View makefile
# Default variables
PROJECT_NAME ?= unnamed
BUILD_DIR ?= build
BINARIES_DIR ?= bin
LIB_DIR ?= lib
SOURCES_DIR ?= src
TEST_SOURCES_DIR ?= test
INCLUDE_DIR ?= include
INCLUDES += -I$(INCLUDE_DIR)