This describes how you could configure your Raspberry PI to work, hopefully, better with Codesys.
- Based on raspbian image
package copy_vs_append | |
import ( | |
"testing" | |
) | |
func buildArray(n int64) []int64 { | |
ret := make([]int64, n, n) | |
var i int64 | |
for i = 0; i < n; i++ { |
box: wercker-labs/docker | |
build: | |
steps: | |
- script: | |
name: fix timestamps | |
code: | | |
sudo wget https://gist.githubusercontent.com/davidwindell/fbfef588c6295666c6a1/raw/c2870b13a50a7aeb4aed1e6eb4daec3a905a7fc0/git-timestamp.sh -O /usr/local/bin/git-timestamp | |
sudo chmod +x /usr/local/bin/git-timestamp | |
git-timestamp composer.json | |
git-timestamp composer.lock |
[Unit] | |
Description=A phpbb-like bulletin board in Go | |
[Service] | |
ExecStart=/home/stevenleeg/go/bin/gobb | |
Restart=on-abort | |
[Install] | |
WantedBy=multi-user.target |
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: mydaemon | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: mydaemon does stuff | |
# Description: this is an actual executable script, and should be saved in | |
# /etc/init.d/mydaemon. |