Skip to content

Instantly share code, notes, and snippets.

View fouwels's full-sized avatar

Kaelan Thijs Fouwels fouwels

View GitHub Profile
@fouwels
fouwels / settings.json
Created November 14, 2022 15:01
vscode load .profile on remote ssh
"terminal.integrated.shellArgs.linux": ["-l"],
@fouwels
fouwels / wireguard@.service
Last active November 14, 2022 14:12
wireguard interface systemd "service"
[Unit]
Description=Initialise and load wireguard interface %i
After=network.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/sbin/ip link add %i type wireguard
ExecStart=/sbin/ip addr add 10.200.1.100/24 dev %i
ExecStart=/usr/bin/wg setconf %i /etc/wireguard/%i.conf
Rysc6YNu15GB1NrJZRaMNqMlCqMFnyREO1PL7NGB8zs=
#!/sbin/openrc-run
supervisor=supervise-daemon
name="Docker Daemon"
description="Persistent process that manages docker containers"
description_reload="Reload configuration without exiting"
command="${DOCKERD_BINARY:-/usr/bin/dockerd}"
command_args="${DOCKER_OPTS}"
DOCKER_LOGFILE="${DOCKER_LOGFILE:-/var/log/${RC_SVCNAME}.log}"
@fouwels
fouwels / main.go
Created October 17, 2019 11:50
Go OPCUA Panic
package main
import (
"github.com/gopcua/opcua"
"github.com/gopcua/opcua/ua"
"log"
)
func main() {
@fouwels
fouwels / keybase.md
Last active May 12, 2018 12:26
"pgp-ng"

Keybase proof

I hereby claim:

  • I am kaelanfouwels on github.
  • I am kae (https://keybase.io/kae) on keybase.
  • I have a public key ASAjlwWaJvGdbebwEr0etzhtsl6pZGOEL5jUWo3eU3TB5Ao

To claim this, I am signing this object:

@fouwels
fouwels / $profile
Last active August 29, 2015 14:15
ps $profile
function elevate-process
{
$file, [string]$arguments = $args;
$psi = new-object System.Diagnostics.ProcessStartInfo $file;
$psi.Arguments = $arguments;
$psi.Verb = "runas";
$psi.WorkingDirectory = get-location;
[System.Diagnostics.Process]::Start($psi);
}
function kill-command
@fouwels
fouwels / gist:e8d6a490722a9a294864
Created October 4, 2014 12:58
Patch c# debug output into the console
var writer = new TextWriterTraceListener(System.Console.Out);
Debug.Listeners.Add(writer);
@fouwels
fouwels / dock_settings.txt
Created July 5, 2014 13:02
Mountain Lion style side dock values for cDock
0
0
0
50
255
255
255
80
7
2
@fouwels
fouwels / main.cs
Last active August 29, 2015 14:00
FEZ Cerbuino Bee Pin GPIO enumeration
namespace MFConsoleApplication2
{
public class Program
{
public static void Main()
{
var out1 = new Microsoft.SPOT.Hardware.OutputPort(FEZCerbuino.Pin.Digital.D1, false);
out1.Write(true); //set high
var pwm1 = new Microsoft.SPOT.Hardware.PWM(FEZCerbuino.Pin.PWM.D10, 10, 10, false);