Skip to content

Instantly share code, notes, and snippets.

Avatar

Jeroen van Veen jvanveen

View GitHub Profile
View gist:783c6f51f6281d499b1368c2c461219c
# Fixes ethernet failure due to out-of-sync clock (unable to set from UI)
adb connect 192.168.1.4
adb shell settings put global auto_time 1
View gist:26026e78010889a26bc85c01e61b0294
// Package cmd contains an entrypoint for running an ion-sfu instance.
package main
import (
"context"
"encoding/json"
"errors"
"flag"
"fmt"
"io"
View Pinephone Plasma Mobile Howto
Prerequisites
=============
- One Pinephone braveheart edition
- A micro SIM card or Nano sim with micro adapter
- A micro SD card (tested with SanDisk Ultra microSDXC UHS-1 64G)
- A 5V power adapter with regular usb connector (15 Watts recommended. 5V/3 amp)
- A Linux desktop/laptop to prepare the SD card (laptop used in this tutorial)
Preparation
@jvanveen
jvanveen / gist:9bb6121c3dfb60336f9d301768a1f1c9
Created Jun 21, 2019
Generate CA and Certificate for development
View gist:9bb6121c3dfb60336f9d301768a1f1c9
#!/bin/bash
if [ -z "$1" ]; then
echo -e "\nPlease call '$0 <domain-name>' to run this command!\n"
exit 1
fi
PW=dummypw
CA=dev.ca
SUBJ="/C=NL/ST=City/L=City/O=My Company/OU=IT Department/CN=$1"
SUBJCA="/C=NL/ST=City/L=City/O=My Company/OU=IT Department/CN=My Company CA"
@jvanveen
jvanveen / arch-linux-install
Last active Dec 16, 2019 — forked from mattiaslundberg/arch-linux-install
Arch linux install on UEFI laptop with LUKS encryption & KDE plasma
View arch-linux-install
wget http://ftp.nluug.nl/os/Linux/distr/archlinux/iso/2019.12.01/archlinux-2019.12.01-x86_64.iso
# Write image to a usb-drive
dd if=archlinux-2019.12.01-x86_64.iso of=/dev/sda bs=4M status=progress oflag=sync
# Disable secure boot in BIOS. Switch to AHCI if SCSI is enabled.
# Boot from USB.
# This assumes a wifi only system...
wifi-menu
# Create partitions