Skip to content

Instantly share code, notes, and snippets.

View mariusvw's full-sized avatar

Marius van Witzenburg mariusvw

View GitHub Profile
@mariusvw
mariusvw / vnet-vimage-iohyve.txt
Created July 5, 2018 09:17 — forked from pr1ntf/vnet-vimage-iohyve.txt
Old iohyve + vimage docs.
### Welcome! ###
# iohyve is an all in one quick start for utilizing built-in FreeBSD and ZFS
# tools for managing bhyve guests. iohyve acts much like @pannon's iocage and it's
# inspiration is drawn from it's ideas. iohyve's aim is to get a solid basis of how bhyve
# will interact with iocage's ideas. This includes resource limiting/management, store data in
# zfs proprieties, vnet, and UUID's in addition to creation, starting, stopping, and destroying
# live guests. Snapshoting and other features might be better saved for iocage integration.
# Big thanks to @pannon and @skarekrow for all their help, their code, and patience. :)
@mariusvw
mariusvw / pedantically_commented_playbook.yml
Created July 5, 2018 09:17 — forked from marktheunissen/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
@mariusvw
mariusvw / git-completion.tcsh
Created July 5, 2018 09:19 — forked from kohenkatz/git-completion.tcsh
Source this file in your .tcshrc to get git command completion. Original source is http://gtirtha.wordpress.com/2010/05/14/git-autocomplete/ but WordPress's WSYIWYG editor messed it up and I cleaned it up.
# Source this script in tcsh to setup shell completions
# for git. Completions are activated by typing or Control-D
# in the shell after entering a partial command.
#
# Usage:
# source git-completion.tcsh (e.g. in ~/.cshrc)
#
# Supported completions:
# git (lists git commands)
# git help (lists git commands)
@mariusvw
mariusvw / setup-slave.sh
Created July 5, 2018 09:23 — forked from jacksoncage/setup-slave.sh
Auto install Jenkins slave on Debian
#!/bin/bash
# Input
newhost=$1
applicationStart=$2
###
# Functions
###
updateBaseInstall() {
@mariusvw
mariusvw / .ino
Created September 14, 2018 12:41 — forked from shoebahmedadeel/.ino
MPU 9250 - roll, pitch, yaw from Accelerometer,Gyroscope and Magnetometer
#include <Wire.h>
#include <Servo.h>
#define SerialPort Serial
#include <SparkFunMPU9250-DMP.h>
MPU9250_DMP imu;
double roll , pitch, yaw;
long int pre_ts=0;
void setup()
{
@mariusvw
mariusvw / hull.scad
Created September 17, 2018 11:37 — forked from hexagon5un/hull.scad
OpenSCAD Hull Functions Library
module multiHull(){
for (i = [1 : $children-1])
hull(){
children(0);
children(i);
}
}
module sequentialHull(){
for (i = [0: $children-2])
# udev rule : SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5740", MODE="0666", SYMLINK+="lsm303agr"
import serial
import re
import time
import signal
import math
# registers
@mariusvw
mariusvw / 0 - UNIX Fifth Edition
Created January 15, 2021 20:40 — forked from fogus/0 - UNIX Fifth Edition
UNIX V5, OpenBSD, Plan 9, FreeBSD, and GNU coreutils implementations of echo.c
main(argc, argv)
int argc;
char *argv[];
{
int i;
argc--;
for(i=1; i<=argc; i++)
printf("%s%c", argv[i], i==argc? '\n': ' ');
}
@mariusvw
mariusvw / semver-regex.md
Created April 20, 2021 08:30 — forked from jhorsman/semver-regex.md
Semantic versioning regex