From: Mart Lubbers Date: Thu, 24 Apr 2014 15:55:50 +0000 (+0200) Subject: full first site commit X-Git-Url: https://git.martlubbers.net/?p=martlubbers.net.git;a=commitdiff_plain;h=0ceabc4e18610cbd4d99b670103399bb785391b1 full first site commit --- diff --git a/dvorak.html b/dvorak.html new file mode 100644 index 0000000..c67b434 --- /dev/null +++ b/dvorak.html @@ -0,0 +1,20 @@ + + + Dvorak resources + + + +

Since about 2011 I've started using dvorak as my main keyboard layout and like the efficiency compared to QWERTY.

+ +

Dvorak in dos

+

To use dvorak in dos download this file containing dvorak.com
+ Transfer it to your C:\DOS folder for example and add this to your AUTOEXEC.bat: +

C:\DOS\DVORAK.COM
+ When your computer boots the program will say DVORAK is loaded and you're good to go

+ +

Dvorak in dosbox

+

Dvorak is also usable in dosbox via a custom mapper file that your can find here
+ You can enable the layout by saving this in your settings directory and

mapperfile=dvorak-0.74.map
to your sdl section of your dosbox config.

+ + + diff --git a/files/.listing b/files/.listing new file mode 100644 index 0000000..ba5c470 --- /dev/null +++ b/files/.listing @@ -0,0 +1,4 @@ +drwxr-xr-x 2 ftp ftp 4096 Mar 19 08:41 . +drwxr-xr-x 3 ftp ftp 4096 Mar 19 08:41 .. +-rw-r--r-- 1 ftp ftp 2859 Mar 19 08:37 dvorak-0.74.map +-rw-r--r-- 1 ftp ftp 10240 Mar 19 08:35 dvorak_dos.tar diff --git a/files/dvorak-0.74.map b/files/dvorak-0.74.map new file mode 100644 index 0000000..ec69d28 --- /dev/null +++ b/files/dvorak-0.74.map @@ -0,0 +1,145 @@ +hand_shutdown "key 290 mod1" +hand_capmouse "key 291 mod1" +hand_fullscr "key 13 mod2" +hand_pause "key 19 mod2" +hand_mapper "key 282 mod1" +hand_speedlock "key 293 mod2" +hand_recwave "key 287 mod1" +hand_caprawmidi "key 289 mod1 mod2" +hand_scrshot "key 286 mod1" +hand_video "key 286 mod1 mod2" +hand_decfskip "key 288 mod1" +hand_incfskip "key 289 mod1" +hand_cycledown "key 292 mod1" +hand_cycleup "key 293 mod1" +hand_caprawopl "key 288 mod1 mod2" +hand_swapimg "key 285 mod1" +key_esc "key 27" +key_f1 "key 282" +key_f2 "key 283" +key_f3 "key 284" +key_f4 "key 285" +key_f5 "key 286" +key_f6 "key 287" +key_f7 "key 288" +key_f8 "key 289" +key_f9 "key 290" +key_f10 "key 291" +key_f11 "key 292" +key_f12 "key 293" +key_grave "key 96" +key_1 "key 49" +key_2 "key 50" +key_3 "key 51" +key_4 "key 52" +key_5 "key 53" +key_6 "key 54" +key_7 "key 55" +key_8 "key 56" +key_9 "key 57" +key_0 "key 48" +key_minus "key 39" +key_equals "key 93" +key_bspace "key 8" +key_tab "key 9" +key_q "key 120" +key_w "key 44" +key_e "key 100" +key_r "key 111" +key_t "key 107" +key_y "key 116" +key_u "key 102" +key_i "key 103" +key_o "key 115" +key_p "key 114" +key_lbracket "key 45" +key_rbracket "key 61" +key_enter "key 13" +key_capslock "key 301" +key_a "key 97" +key_s "key 59" +key_d "key 104" +key_f "key 121" +key_g "key 117" +key_h "key 106" +key_j "key 99" +key_k "key 118" +key_l "key 112" +key_semicolon "key 122" +key_quote "key 113" +key_backslash "key 92" +key_lshift "key 304" +key_lessthan "key 60" +key_z "key 47" +key_x "key 98" +key_c "key 105" +key_v "key 46" +key_b "key 110" +key_n "key 108" +key_m "key 109" +key_comma "key 119" +key_period "key 101" +key_slash "key 91" +key_rshift "key 303" +key_lctrl "key 306" +key_lalt "key 308" +key_space "key 32" +key_ralt "key 307" +key_rctrl "key 305" +key_printscreen "key 316" +key_scrolllock "key 302" +key_pause "key 19" +key_insert "key 277" +key_home "key 278" +key_pageup "key 280" +key_delete "key 127" +key_end "key 279" +key_pagedown "key 281" +key_up "key 273" +key_left "key 276" +key_down "key 274" +key_right "key 275" +key_numlock "key 300" +key_kp_divide "key 267" +key_kp_multiply "key 268" +key_kp_minus "key 269" +key_kp_7 "key 263" +key_kp_8 "key 264" +key_kp_9 "key 265" +key_kp_plus "key 270" +key_kp_4 "key 260" +key_kp_5 "key 261" +key_kp_6 "key 262" +key_kp_1 "key 257" +key_kp_2 "key 258" +key_kp_3 "key 259" +key_kp_enter "key 271" +key_kp_0 "key 256" +key_kp_period "key 266" +jbutton_0_0 +jbutton_0_1 +jaxis_0_1- +jaxis_0_1+ +jaxis_0_0- +jaxis_0_0+ +jbutton_0_2 +jbutton_0_3 +jbutton_1_0 +jbutton_1_1 +jaxis_0_2- +jaxis_0_2+ +jaxis_0_3- +jaxis_0_3+ +jaxis_1_0- +jaxis_1_0+ +jaxis_1_1- +jaxis_1_1+ +jbutton_0_4 +jbutton_0_5 +jhat_0_0_0 +jhat_0_0_3 +jhat_0_0_2 +jhat_0_0_1 +mod_1 "key 306" "key 305" +mod_2 "key 308" "key 307" +mod_3 diff --git a/files/dvorak_dos.tar b/files/dvorak_dos.tar new file mode 100644 index 0000000..62f0309 Binary files /dev/null and b/files/dvorak_dos.tar differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..a0ba566 --- /dev/null +++ b/index.html @@ -0,0 +1,83 @@ + + + + Mart Lubbers' Site + + + + + + +

Mart Lubbers

+ + + + + +
+ Mart Lubbers + + Bachelor Student
+ Artificial Intelligence
+ Radboud University
+
+ Mart Lubbers
+ mart@martlubbers.net
+ GPG ID: AD3FEBE7
+ Fingerprint: 74FF FBF1 4758 273B 2F56 A30C A937 B7A1 AD3F EBE7
+ LinkedIn
+
+ +

Work

+

Student Assistant at Max Planck Institute for Psycholinguistics + in the Language and Cognition department.

+ +

Research Interests

+ + +

Publications

+

Currently none

+ +

Personal Projects

+

Tutorials or manuals

+ +

Currently active

+ + +

Suspended

+ + +

Other Interests

+

- Death/Doom metal
+ - Hacking
+ - Kung fu
+ - Linux
+ - Pokémon

+
+ footer +
+ + diff --git a/lejos-ubuntu.html b/lejos-ubuntu.html new file mode 100644 index 0000000..8c1a73c --- /dev/null +++ b/lejos-ubuntu.html @@ -0,0 +1,32 @@ + + + Install LeJOS on Ubuntu + + + +

INFO

+

LeJOS is an alternative operating system and programming environment for the LEGO NXT robots. LeJOS + uses java as main programming languages and makes it thus very easy to program object-oriented and reuse old java code.

+ +

INSTALLATION

+
+# apt-get update
+# apt-get install libusb-dev gcj libbluetooth-dev ant
+$ wget http://downloads.sourceforge.net/project/lejos/lejos-NXJ/0.9.1beta/leJOS_NXJ_0.9.1beta-3.tar.gz?
+r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Flejos%2Ffiles%2Flejos-NXJ%2F0.9.1beta%2F&ts=1356791160&use_mirror=heanet
+$ tar -zxvf leJOS_NXJ_0.9.1beta-3.tar.gz 
+$ mv leJOS_NXJ_0.9.1beta-3 ~/software/lejos_nxj (or something)
+$ cd ~/software/lejos_nxj/bin
+$ chmod +x nxj*
+$ cd ~/software/lejos_nxj/build
+$ ant
+$ export PATH=/home/user/software/lejos_nxj/bin:$PATH (or put in /etc/environment)
+# touch /etc/udev/rules.d/70-lego.rules
+# echo "BUS==\"usb\", SYSFS{idVendor}==\"03eb\", GROUP=\"lego\", MODE=\"0660\"" << /etc/udev/rules.d/70-lego.rules
+# echo "BUS==\"usb\", SYSFS{idVendor}==\"0694\", GROUP=\"lego\", MODE=\"0660\"" << /etc/udev/rules.d/70-lego.rules 
+$ groupadd lego
+$ useradd -G lego user
+
+

Remember to run eclipse as root(don't know why yet)

+ + diff --git a/mart@martlubbers.net.asc b/mart@martlubbers.net.asc new file mode 100644 index 0000000..ffba08a --- /dev/null +++ b/mart@martlubbers.net.asc @@ -0,0 +1,30 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- +Version: GnuPG v1.4.12 (GNU/Linux) + +mQENBFJUQNsBCADpv9X6QIYS/dsnGyc8T8ijmTGdcWj/NhXcUSsUqi48NHGMxwCH +s3hGWjb0jRSyzmxo5l8zsoi65iIMj+8S7sGdW1AJTmrE7At/s3MQu3hc6hpHR5Zb +SV18MSzRwFD5KsfDq6fFjtUwq4YXymlN9XaCN22i3966ACdtfOZr1NFuBd2BkqVu +wD5JGWCN7SSNZZMFEO8z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FLsQjC1YHg +UR2cqYOKPEIYkE8/yu4ayFJbJniX8t+IFfbliqBzr8Pr1yD0iwFq13PwkYZvW1WC +epXYnTiXKbisU4V1R/wQ+/S3XJLpWxoIKzJB0IJuxMHTJ2mT2m8FKqQf1djuLA1f +8K/1G3PbT43vh21IoUQLeNwTz0yv3RZ+PSZn3kgOiyUgjmS1/SR2z7MqCGbeGtdY ++LaM6XFzp+Ocr90yxDlYnnTOLUsIhPFZ7H25Hpq+6mGCzqolM3wGhgggJLO70RaR +XBldnRFcphP2W+krMxaLOGOFH3mfjoaRg+z+WpA4GBBJQw== +=7vNz +-----END PGP PUBLIC KEY BLOCK----- diff --git a/nsa-dropbox.html b/nsa-dropbox.html new file mode 100644 index 0000000..921e78e --- /dev/null +++ b/nsa-dropbox.html @@ -0,0 +1,46 @@ + + + Use any untrusted cloud storage with encryption + + + +

PREREQUISITES

+ Install encfs and fuse
+
# apt-get install fuse encfs
+ Install a cloud service(copy.com used here)(assuming ~/bin is in your path and running on a 64bits machine)
+ When using a different architecture just change x86_64 to x86 or armv6h in the client install script
+ If ~/bin is not in your path add to your bashrc(example using user: test): +
PATH=$PATH:/home/test/bin
+ Download and install the copy client for linux +
+$ wget https://copy.com/install/linux/Copy.tgz
+$ mkdir ~/bin/copy; tar -xf Copy.tgz -C ~/bin/copy
+$ ln -s ~/bin/copy/x86_64/CopyConsole ~/bin/CopyConsole
+
+

SETUP

+

Make sure your user is in the fuse group and setup the encfs share by doing this: +

+$ mkdir ~/.copy.encr ~/copy
+$ encfs ~/.copy.encr ~/copy
+
+ When they ask use option p for paranoia and pick a password.
+ Create an account on copy.com and setup the client by typing this command +
$ CopyConsole -u=the_mail_you_signed_up_with -r=/home/your_linux_username/.copy.encr -p=the_password_you_signed_up_with
+ This creates a setup that does this automatically in the future
+ Let the daemon and the encfs autostart when you and only you are logged in by adding this to ~/.bashrc +
+if ! mountpoint -q ~/copy; then
+    encfs ~/.copy.encr ~/copy
+fi
+if ! pidof CopyConsole >> /dev/null; then
+    CopyConsole -daemon 2>&1 1>/dev/null
+fi
+
+ Congratulations your setup is working.
+ When you want to stop the daemon you can kill the pid given by ~/.copy.pid.
+ From now on your computer or server will ask one time for you password when the first bash starts in your account.

+ +

NOTES

+

This could work with any cloud service, just mount the folder it wil sync first with encfs

+ + diff --git a/o.html b/o.html new file mode 100644 index 0000000..48dcc2b --- /dev/null +++ b/o.html @@ -0,0 +1,31 @@ + + +Website voor oma! + + + + + + + +

Hallo Oma

+

Het is je gelukt om het raadsel te ontcijferen en daarvoor heb ik deze internet site gemaakt met wat leuke en/of nostalgische dingen. +Ten eerste van harte gefeliciteerd met je 80ste verjaardag en ik hoop dat er nog veel jaren bij komen. +Iedereen werd gevraagd om iets te maken voor het boekje wat bij die gene past en ik vond dat dit wel bij mij past. +Deze website zal altijd te bereiken zijn voor als je het nog eens terug wilt kijken.

+ +

Leuke links

+Mijn website: hierop staan een paar leuke filmpjes van de dingen die ik op de universiteit allemaal beleef. + +

Leuke muziekjes van vroeger en nu

+ + + + +

Patience

+ + +

Email mij

+

mart@martlubbers.net

+ + diff --git a/p.jpg b/p.jpg new file mode 100644 index 0000000..f8e0a71 Binary files /dev/null and b/p.jpg differ diff --git a/put.bash b/put.bash new file mode 100644 index 0000000..46ca44b --- /dev/null +++ b/put.bash @@ -0,0 +1,6 @@ +#!/bin/bash +set -e +for f in $(find . -type f | grep -v "put\|/\.\|^\.$\|/$") +do + curl -u $(gpg --use-agent -d ~/passwd.gpg | grep ftp-user | awk '{print $2":"$3}') -T $f ftp://martlubbers.net/public_html/$f +done diff --git a/robots.txt b/robots.txt new file mode 100644 index 0000000..634ad20 --- /dev/null +++ b/robots.txt @@ -0,0 +1,3 @@ +# go away +User-agent: * +Disallow: / \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..59f1942 --- /dev/null +++ b/style.css @@ -0,0 +1,15 @@ +body +{ + color:#000000; + background-color:#e3e3e3; +} + +a:link +{ + color:#000080; +} + +a:visited, a:hover, a:active +{ + color:#0000c6; +} diff --git a/test.php b/test.php new file mode 100644 index 0000000..5d666fb --- /dev/null +++ b/test.php @@ -0,0 +1,47 @@ + + + + + + Doom Metal Band Name Generator! + + +" . $input[$rand_keys[0]] . " "; +echo $input[$rand_keys[1]] . "
\n"; +?> +
+
+ + new
+ contact +
+ + diff --git a/wlan-debian.html b/wlan-debian.html new file mode 100644 index 0000000..8f35522 --- /dev/null +++ b/wlan-debian.html @@ -0,0 +1,78 @@ + + + Automatic wifi without heavy network manager on debian + + + +

PREREQUISITES

+

Install wpa_supplicant and wireless-tools(standard in most distros).
+

# apt-get install wireless-tools wpa_supplicant
+
+ Identify your wifi controller. This can usually be found by typing
+
$ iwconfig
+
+ Locate all the config files for your desired networks. Mine are placed in /etc/network/wifi/.conf. More info on creating configs in the end of the file.

+ +

INSTALLATION

+

Create the SSID selection script.
+ I've put mine in /etc/network/wifi/select
+

+#!/bin/sh
+ifconfig [INTERFACE] up 1> /dev/null && { iwlist [INTERFACE] scan | grep -o "\".*\"" | tr -d \'\" | sort | uniq; grep -o "map\ .*" /etc/network/interfaces | awk '{print $2}'; } | sort | uniq -d | head -1
+
+
+ Make it executable.
+
# chmod +x /etc/network/wifi/select
+
+ Change in /etc/network/interfaces the [INTERFACE] specification.
+
		
+mapping [INTERFACE]
+	script /etc/network/wifi/select
+	map [SSID]1
+	map [SSID]2
+	..
+	map eduroam
+
+iface [SSID]1 inet dhcp
+wpa_conf /etc/network/wifi/[SSID]1.conf
+
+iface [SSID]2 inet dhcp
+wpa_conf /etc/network/wifi/[SSID]2.conf
+
+..
+
+iface eduroam inet dhcp
+wpa_conf /etc/network/wifi/eduroam.conf
+
+
+ You're finished! Restart the network service with:
+
# service networking restartworking restart
+ And you can connect to a available network by running this command.
+
# ifup [INTERFACE]
+ If you want to force an [SSID] you can run:
+
# ifup [INTERFACE]=[SSID]

+ +

CONFIG CREATION

+

Standard wpa2 network configs can be created by running:
+

# wpa_passphrase [SSID] [PASSWORD] > /etc/network/wifi/[SSID].conf
+
+ For eduroam you can use this example:
+
		
+network={
+	ssid="eduroam"
+	key_mgmt=WPA-EAP
+	eap=TTLS
+	phase2="auth=MSCHAPV2"
+	ca_cert="/etc/ssl/certs/AddTrust_External_Root.pem"
+	identity="login@university.nl"
+	scan_ssid=1
+	password="YOURPASSWORD"
+}
+
+ If you don't want your password in a config you can also use a hash generated by this command. (Don't forget to remove it from ~/.bash_history afterwards)
+
$ echo -n [PASSWORD] | iconv -t UTF16LE | openssl md4
+ You should replace the plaintext string with: "hash:[HASHOUTPUT]"
+ note: don't use quotes.

+
update 2014-03-04: fixed a few small errors concerning hashing and config files
+ + diff --git a/youtube-term.html b/youtube-term.html new file mode 100644 index 0000000..6f69543 --- /dev/null +++ b/youtube-term.html @@ -0,0 +1,31 @@ + + + Play youtube videos on a headless server + + + + Download the get_flash_videos latest version: +
$ git clone https://github.com/monsieurvideo/get-flash-videos.git
+ Install the dependencies: +
# apt-get install perl libmodule-find-perl libwww-mechanize-perl vlc
+ Install the get_flash_videos script: +
+$ cd get-flash-videos/
+$ make
+$ make install
+
+ Create a small script that combines these with vlc by adding this to bashrc or a shellscript in PATH the flag -A alsa could be different(when usig pulseaudio it can be omitted): +
+function ytview {
+	if [ "$#" -ne "1" ]; then
+		echo "usage $0 yturl"
+	else
+		get_flash_videos -q -f - $1 | cvlc -A alsa -V aa -
+	fi
+}
+
+ Play a video by typing: +
$ ytview http://www.youtube.com/watch?v=QAUzWtLMnU0
+ Some videos can't be downloaded, but most videos will just work. + +