Skip to content

Instantly share code, notes, and snippets.

Avatar

Marius van Witzenburg mariusvw

View GitHub Profile
View gist:eddc5c6a44e51a8254469d362dcee48f
### Keybase proof
I hereby claim:
* I am mariusvw on github.
* I am mariusvw (https://keybase.io/mariusvw) on keybase.
* I have a public key whose fingerprint is 8CA6 8ACC C32C B387 6FBD 6516 82EF 90E5 911B 5325
To claim this, I am signing this object:
View vault.sh
# Install https://www.vaultproject.io/
brew install vault
# Start dev vault server in a separate terminal
vault server -dev
# ==> Vault server configuration:
# ...
# Unseal Key: 7ACQHhLZY5ivzNzhMruX9kSa+VXCah3y87hl3dPSWFk=
# Root Token: 858a6658-682e-345a-e4c4-a6e14e6f7853
View map_remote_ipmi_ports_to_loopback_ip.sh
#!/bin/bash
set -x
#
# Purpose: Run on a workstation to make a remote IPMI controller available at http://127.0.0.2:80/
# Only does port mapping. IPMI controllers may have their own taxing browser requirements.
# Requires that you have a shell on a host that is on the same network as your IPMI interface.
shell='user@ssh-host-on-ipmi-network'
@mariusvw
mariusvw / semver-regex.md
Created Apr 20, 2021 — forked from jhorsman/semver-regex.md
Semantic versioning regex
View semver-regex.md
@mariusvw
mariusvw / README.md
Created Apr 9, 2021 — forked from plugnburn/README.md
NokiaTool - simple interface Bash script for MediaTek-based Nokia simple phones
View README.md

NokiaTool: control MediaTek-based Nokia phones from your PC

Overview

NokiaTool is a simple Bash script (nokiatool.sh) that allows you to use an undocumented serial connection in USB-enabled MediaTek-based Nokia feature phones manufactured by Microsoft (even the most basic ones, like the new 105) in order to control them from your PC.

This project is an ongoing work and uses only some bits and pieces of information about the phone internals available to the public, so under any circumstances don't consider it stable or a replacement for official tools if any are present.

@mariusvw
mariusvw / 0 - UNIX Fifth Edition
Created Jan 15, 2021 — forked from fogus/0 - UNIX Fifth Edition
UNIX V5, OpenBSD, Plan 9, FreeBSD, and GNU coreutils implementations of echo.c
View 0 - UNIX Fifth Edition
main(argc, argv)
int argc;
char *argv[];
{
int i;
argc--;
for(i=1; i<=argc; i++)
printf("%s%c", argv[i], i==argc? '\n': ' ');
}
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() {