Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am mrngm on github.
  • I am mrngm (https://keybase.io/mrngm) on keybase.
  • I have a public key whose fingerprint is 7E10 279C 04BB DBB4 C82E 57A5 298C FCE2 518B FC29

To claim this, I am signing this object:

/*
Schrijf een functie vervang2 () die hetzelfde doet als bij onderdeel a.
Maak bij het schrijven van deze functie gebruik van de functies find() en
replace() uit de klasse string.
Prototype:
void vervang2( string& s, char bron, char doel );
*/
#include <iostream>
#include <string>
@mrngm
mrngm / eduroam.md
Last active February 24, 2016 14:39
network={
        ssid="eduroam"
        scan_ssid=1
        key_mgmt=WPA-EAP
        eap=PEAP
        anonymous_identity="anonymous@science.ru.nl"
        identity="oreokoekje@science.ru.nl"
        password="mijn epische wachtwoord"
 ca_cert="/etc/ssl/certs/DigiCert_Assured_ID_Root_CA.pem"
#!/bin/bash
echo "Date,Payee,Category,Memo,Outflow,Inflow"
while IFS='' read -r line; do
line=`echo "$line" | sed -e 's/\r//g'| tr -d \"`
DATE=`echo "$line" | cut -d ';' -f 1 | tr - /`
#DATE=`echo "$line" | cut -d ';' -f 1`
PAYEE="OV-Chipkaart"
#CATEGORY
AMOUNT=`echo "$line" | cut -d ';' -f 6 | tr , .`
<Printer Peage>
UUID urn:uuid:zo'n-uuid
Info Peage
Location Overal
MakeModel KONICA MINOLTA C754SeriesPS(P)
# Als ergens hier een Auth-iets staat, die weghalen
DeviceURI smb://ru\sXXXXXX:hunter2@payprint01.ru.nl/RU-Print
# DeviceURI-regel specifiek aanpassen voor je s-nummer en wachtwoord
State Idle
StateTime 1474022434
#!/bin/bash
i3status | while :
do
read line
playerstatus=`playerctl status`
artist=`playerctl metadata artist`
title=`playerctl metadata title`
np=""
if [[ "$playerstatus" == "Playing" ]]; then
$ find . -iname \*.mp4 | sort
./33c3-7946-eng-Console_Hacking_2016.mp4
./33c3-7958-eng-Space_making_space_shaping.mp4
./33c3-7960-deu-eng-gsw-Fnord-Jahresrueckblick_hd.mp4
./33c3-8020-deu-eng-Methodisch_inkorrekt_hd.mp4
./33c3-8029-eng-deu-fra-The_Ultimate_Game_Boy_Talk_hd.mp4
./33c3-8061-eng-You_can_-j_REJECT_but_you_can_not_hide_Global_scanning_of_the_IPv6_Internet.mp4
./33c3-8062-eng-A_look_into_the_Mobile_Messaging_Black_Box.mp4
./33c3-8074-eng-Recount_2016_An_Uninvited_Security_Audit_of_the_US_Presidential_Election.mp4
#!/bin/bash
#============================================================================
# ${XEN_SCRIPT_DIR}/vif-route
#
# Script for configuring a vif in routed mode.
# The hotplugging system will call this script if it is specified either in
# the device configuration given to Xend, or the default Xend configuration
# in ${XEN_CONFIG_DIR}/xend-config.sxp. If the script is specified in
# neither of those places, then vif-bridge is the default.
#
[mrngm@kaakje nsafstanden]$ python tarieven.py
Van: nm, Naar: mt
Tarieven voor tariefafstand 173:
Tweede klas:
Vol tarief: 23,30
20% korting: 18,60
40% korting: 14,00
Eerste klas:
Vol tarief: 39,60
20% korting: 31,70
@mrngm
mrngm / list-vm-disks.sh
Created January 6, 2018 12:37
Shows Vdev->block device mappings for a Xen guest
#!/bin/bash
# Written in 2018 by Gerdriaan Mulder <hello[at]moeilijklastig(dot)nl>
# This tool shows the mapping between a Xen Vdev attached to a Xen guest.
# Example output that uses an LVM backend:
#
# # ./list-vm-disks myguest
# Domain -> ID: myguest -> 42
# Listing Vdev -> LV mappings...