Posts from 2013-03
My Raspberry Pi running Arch Linux didn't get the proper time on system startup and here is the solution I came up with to solve this problem:
Create the file
[Unit] Description=Set the time using NTP time servers [Service] Type=simple ExecStart=/usr/sbin/ntpd -s
I.e. deploying a tool or Python app using systemd.
I would recommend setting up the environment variables as well as activating the virtualenv in a Bash script and call that from systemd.
Here is the bash script starting the bottle.py web app after setting up the virtualenv. It's stored in
OK, here is how to start ssh on system startup (this is the content of the systemd .service configuration file
[Unit] Description=AutoSSH service for a reverse tunnel from some.example.com to localhost After=network.target [Service] ExecStart=/usr/bin/autossh -M 0 -q -N -o "ServerAliveInterval 60"...
Getting IPv4 and IPv6 addresses of your local machine on Mac OS X 10.8 Mountain Lion is quite easy. Here is how it works:
IF='en0' # ← restrict to wired connection or do IF="" to get all # Get local IPv4 addresses (without...
False color (or more exactly pseudo color) can be useful when a device / detector records a grayscale image and a human has to interpret it. Fine differences are hard to see in grayscale images und a false color mapping allows us to map the 255 shades of gray...
Here are the commands to issue in order to crop and/or cut a movie file with
# cutting: ffmpeg -i [input_file] -qscale 0 -ss [start_seconds] -t [duration_seconds] [output_file] # so for example: ffmpeg -i BSX234.avi -qscale 0 -ss
After installation of the driver, the Console application in Mac OS X 10.8 shows a new log entry:
2012-10-02 2:52:55.000 PM kernel: FTDIUSBSerialDriver: 0 4036001 start - ok
The System Information App...