I hereby verify my online identiy. Last updated: 06-may-2017 20:48
Sijmen Huizenga
Born in March 1997
Mail [email protected]
package nl.sijmenhuizenga.sqlcompiler; | |
import java.io.File; | |
import java.io.IOException; | |
import java.nio.charset.Charset; | |
import java.nio.file.*; | |
import java.nio.file.attribute.BasicFileAttributes; | |
import java.text.DateFormat; | |
import java.text.SimpleDateFormat; | |
import java.util.*; |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script> | |
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> |
package it.sijmen; | |
import java.util.ArrayList; | |
import java.util.Random; | |
/** | |
* Created by Sijmen on 15-2-2016. | |
*/ | |
public class GlazenBol { |
package threading.test; | |
public class App implements Runnable{ | |
public App() { | |
Thread newThread = new Thread(this); | |
//als het programma stopt, stop ook deze thread | |
newThread.setDaemon(true); | |
//start de nieuwe thread |
package nl.sijmenhuizenga.sqlcompiler; | |
import java.io.IOException; | |
import java.nio.charset.Charset; | |
import java.nio.file.*; | |
import java.nio.file.attribute.BasicFileAttributes; | |
import java.text.DateFormat; | |
import java.text.SimpleDateFormat; | |
import java.util.*; |
def rule() : Int = { | |
println("To rule them all"); 10 | |
} |
#!/bin/bash | |
echo 'starting setup...' | |
echo 'installing docker...' | |
curl -sSL https://get.docker.com/ | sh | |
echo 'installing gitlab-ci-multi-runner repository' | |
curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-ci-multi-runner/script.deb.sh | sudo bash | |
echo 'installing gitlab-ci-multi-runner' | |
sudo apt-get install gitlab-ci-multi-runner | |
echo 'registering gitlab-ci-multi-runner' | |
gitlab-ci-multi-runner register --non-interactive --name "$HOSTNAME" --url "https://gitlab.com/ci" \ |
I hereby verify my online identiy. Last updated: 06-may-2017 20:48
Sijmen Huizenga
Born in March 1997
Mail [email protected]
# Add to `crontab -e`: | |
# @hourly /home/pi/updateip.sh > /home/pi/.ip-log.txt | |
# @reboot sleep 30 && /home/pi/updateip.sh > /home/pi/.ip-log.txt | |
IP=`curl -s http://api.ipify.org/` | |
if [ -f $HOME/.ip.txt ]; then | |
OLD_IP=`cat $HOME/.ip.txt` | |
else | |
echo "No file, need IP" |
/** | |
* Use a LSM303 to detect movement. When the chip moves than a song is played! | |
* | |
* To compile requires `piches.h` that is found here: https://www.arduino.cc/en/Tutorial/toneMelody | |
* And the LSM303 Library is required: https://github.com/pololu/lsm303-arduino | |
*/ | |
#include <Wire.h> | |
#include <LSM303.h> | |
#include "pitches.h" |