Full Stack Developer

Coen en Pepijn

About me

As soon as something gets out of the design stage I make sure it works. Whether it’s a website, webapp or script. Things I think are most important when working on a project are:

Maintainable and transmittable code
Being dependent on a single programmer doesn’t benefit anyone.

Prevent the front-end from being limited by the underlaying logic
User experience beats code.

Communicate on an appropriate level
Use technical terms only when useful.

  • (Cake)PHP 85%
  • Twitter Bootstrap 75%
  • Web Servers / Linux 60%
  • HTML/CSS 80%
  • jQuery 75%

What I'm most proud of? Dashboards for Autotask!

Slick ticket performance dashboard to provide your teams with an at-a-glance status overview.

Visit the site!

Recent Blog Posts

Send email with telnet

1. telnet mail.barney.com 25

2. helo fred.com

3. mail from:fred@fred.com

4. rcpt to:brubble@barney.com

5. data Hello Barney. Bowling tonight?

6. .

http://community.spiceworks.com/topic/265337-how-to-send-email-from-command-line-in-windows-7

Run a bash script or cronjob with a lockfile and timeout

#!/bin/bash
 
readonly PROGNAME=$(basename "$0")
readonly LOCKFILE_DIR=/tmp
readonly LOCK_FD=200
 
lock() {
    local prefix=$1
    local fd=${2:-$LOCK_FD}
    local lock_file=$LOCKFILE_DIR/$prefix.lock
 
    # create lock file
    eval "exec $fd>$lock_file"
 
    # acquier the lock
    flock -n $fd \
        && return 0 \
        || return 1
}
 
eexit() {
    local error_str="$@"
    echo $error_str
    exit 1
}
 
main() {
    lock $PROGNAME \
        || eexit "Only one instance of $PROGNAME can run at one time."
 
    timeout 5 /var/www/crontest/logtime.sh
 
}
 
main >> /var/www/crontest/log

Inspired by Kfir Lavi