Skip to content

Instantly share code, notes, and snippets.

Marius van Witzenburg mariusvw

Block or report user

Report or block mariusvw

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View lsm303agr.py
# 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 / hull.scad
Created Sep 17, 2018 — forked from hexagon5un/hull.scad
OpenSCAD Hull Functions Library
View hull.scad
module multiHull(){
for (i = [1 : $children-1])
hull(){
children(0);
children(i);
}
}
module sequentialHull(){
for (i = [0: $children-2])
@mariusvw
mariusvw / .ino
Created Sep 14, 2018 — forked from shoebahmedadeel/.ino
MPU 9250 - roll, pitch, yaw from Accelerometer,Gyroscope and Magnetometer
View .ino
#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 / setup-slave.sh
Created Jul 5, 2018 — forked from jacksoncage/setup-slave.sh
Auto install Jenkins slave on Debian
View setup-slave.sh
#!/bin/bash
# Input
newhost=$1
applicationStart=$2
###
# Functions
###
updateBaseInstall() {
View gist:61551f6aa9bc5a9b091806142c6a7b3e
@mariusvw
mariusvw / git-completion.tcsh
Created Jul 5, 2018 — 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.
View git-completion.tcsh
# 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 / pedantically_commented_playbook.yml
Created Jul 5, 2018 — forked from marktheunissen/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
View pedantically_commented_playbook.yml
---
# ^^^ 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.
View vnet-vimage-iohyve.txt
### 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 / minecraft.yml
Created Jul 5, 2018 — forked from pol/minecraft.yml
Minecraft Ansible Playbook
View minecraft.yml
#
# Minecraft Server Ansible Playbook
#
# Author:: Pol Llovet (<pol.llovet@montana.edu>)
# Copyright 2013, Montana State University
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
@mariusvw
mariusvw / .A how to display Irssi-hilights in OS X Notification Center.md Guide: how to make irc messages in a screen on a remote server appear in your Mac OS X Lion Notification Center with the help of terminal-notifier
View .A how to display Irssi-hilights in OS X Notification Center.md

Irssi in Mac OS X Notification Center

Mou icon

Overview

This guide will explain how you can make irc messages in a screen on a remote server appear in your Mac OS X Lion Notification Center with the help of terminal-notifier.

We will also explain how the process can be automatically started each time you log in to your Mac and ensure the connection to the server is kept alive.

You can’t perform that action at this time.