Check Machine and CPU list
qemu-system-arm -M virt -cpu ?
Check Machine and NIC list
qemu-system-arm -machine vexpress-a9 -net nic,model=?
Run Raspbain with Network
| package main | |
| import ( | |
| "bytes" | |
| "crypto/sha256" | |
| "crypto/tls" | |
| "crypto/x509" | |
| "log" | |
| "net" | |
| "net/http" |
| import java.io.FileDescriptor; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| import java.io.OutputStream; | |
| import java.io.PrintStream; | |
| public class HelloWorld{ | |
| private static HelloWorld instance; | |
| public static void main(String[] args){ | |
| instantiateHelloWorldMainClassAndRun(); |
| # in case of conflict with local nginx: | |
| # make sure in all *.confs ( | |
| # also in default and example to avoid error like | |
| # 'nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)' | |
| # ) | |
| # set for instance "listen 127.0.0.1:80" instead of "listen *:80" | |
| # docker & network settings | |
| DOCKER_IMAGE_NAME="maxexcloo/nginx-php" # build of nginx-php - for example | |
| DOCKER_CONTAINERS_NAME="nginx_bridged" # our container's name |
| //usr/bin/env go run $0 "$@"; exit | |
| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| ) | |
| func main() { | |
| fmt.Println("Hello world!") |
| package main | |
| import ( | |
| "archive/tar" | |
| "compress/gzip" | |
| "flag" | |
| "fmt" | |
| "io" | |
| "os" | |
| ) |
Check Machine and CPU list
qemu-system-arm -M virt -cpu ?
Check Machine and NIC list
qemu-system-arm -machine vexpress-a9 -net nic,model=?
Run Raspbain with Network
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048
# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| "os/exec" | |
| ) | |
| type SSHCommander struct { | |
| User string |
Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
Please comment & let me know if you have a fork / fixes you'd like to include.
This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.
A file below this one contains the steps for doing this with Travis CI. However, these days I recommend GitHub Actions, for the following reasons: