I hereby claim:
- I am koenbollen on github.
- I am kaji (https://keybase.io/kaji) on keybase.
- I have a public key whose fingerprint is E429 280B 5525 9D90 B8FC 1B0D 521B 6165 3E9E F05D
To claim this, I am signing this object:
| #!/usr/bin/env python | |
| # wake.py - Send a wake-on-lan packet to a certain host specified by name. | |
| # The hosts that can be woken are stored a csv file. | |
| # | |
| # Default path for the hosts file is ~/.mac and the | |
| # format is this (one host per line): | |
| # Title, name, mac-address, port | |
| # Example: | |
| # My Computer, living, 00:11:22:33:44:55, 7 | |
| # |
| /** | |
| * bail.h supplies the macro bail( expr, s ); "no description, read the code" | |
| * version 1.0 | |
| * Copyright (C) 2008, Koen Bollen | |
| * | |
| * This program is free software; you can redistribute it and/or | |
| * modify it under the terms of the GNU General Public License | |
| * as published by the Free Software Foundation version 2. | |
| * | |
| * This program is distributed in the hope that it will be useful, |
| /* Copyright (c) 2014, Koen Bollen <meneer@koenbollen.nl> | |
| Permission to use, copy, modify, and/or distribute this software for any purpose | |
| with or without fee is hereby granted, provided that the above copyright notice | |
| and this permission notice appear in all copies. | |
| THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | |
| REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND | |
| FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | |
| INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS |
| #!/usr/bin/env python | |
| # | |
| # Copyright (c) 2014, Koen Bollen <meneer@koenbollen.nl> | |
| # | |
| # Permission to use, copy, modify, and/or distribute this software for any purpose | |
| # with or without fee is hereby granted, provided that the above copyright notice | |
| # and this permission notice appear in all copies. | |
| # | |
| # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | |
| # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env python3 | |
| # Koen Bollen, 2015 | |
| import sys | |
| import urllib.request | |
| import xml.etree.ElementTree | |
| # Train stations you are interested in: | |
| keywords = ("utrecht", "bijlmer", "amstel") | |
| # If one of those keywords is found in the |
| package main | |
| // usage: curl localhost:1544 -d"Text Here" | |
| import ( | |
| "io" | |
| "net/http" | |
| "os/exec" | |
| "golang.org/x/text/transform" |
| # branch will let you quickly create a git branch prefixed with your username | |
| function branch() { | |
| name=${@:?"mssing argument usage: branch BRANCH NAME"} | |
| slug=$(echo "${name}" | tr -s "A-Z_ " "a-z--" | tr -cd "a-z0-9-" ) | |
| cmd="git checkout -b ${USER}/${slug}" | |
| echo -n "\033[37;1m${cmd}?\033[0m [\033[0;32menter\033[0m/\033[0;31mctrl+c\033[0m] " | |
| read || return | |
| eval $cmd | |
| } |
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "net/http" | |
| "os" | |
| "regexp" | |
| "sort" | |
| "strconv" |
| DDH |