All of the following information is based on go version go1.17.1 darwin/amd64.
| GOOS | Out of the Box |
|---|---|
aix |
✅ |
android |
✅ |
| package main | |
| import ( | |
| "flag" | |
| "log" | |
| "net/http" | |
| "strings" | |
| ) | |
| // FileSystem custom file system handler |
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "os" | |
| "os/signal" |
| // Copyright © 2016 Alex | |
| // | |
| // This program is free software: you can redistribute it and/or modify it under | |
| // the terms of the GNU Affero General Public License as published by the Free | |
| // Software Foundation, either version 3 of the License, or (at your option) any | |
| // later version. | |
| // | |
| // This program is distributed in the hope that it will be useful, but WITHOUT | |
| // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |
| // FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more |
| ''' | |
| This is an example of how to send data to Slack webhooks in Python with the | |
| requests module. | |
| Detailed documentation of Slack Incoming Webhooks: | |
| https://api.slack.com/incoming-webhooks | |
| ''' | |
| import json | |
| import requests |
# 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)| FROM ubuntu | |
| RUN apt-get update | |
| RUN apt-get install -y socat | |
| VOLUME /foo | |
| CMD socat UNIX-LISTEN:/foo/bar.sock - |
You might want to read this to get an introduction to armel vs armhf.
If the below is too much, you can try Ubuntu-ARMv7-Qemu but note it contains non-free blobs.
First, cross-compile user programs with GCC-ARM toolchain. Then install qemu-arm-static so that you can run ARM executables directly on linux
| package main | |
| import ( | |
| "fmt" | |
| "github.com/gorilla/mux" | |
| "github.com/gorilla/securecookie" | |
| "net/http" | |
| ) | |
| // cookie handling |
| image: ruby2.0.0 | |
| script: | |
| - cp config/database.example.yml config/database.yml | |
| - bundle install | |
| - psql -c 'create extension hstore;' -U postgres -h 127.0.0.1 | |
| - psql -c 'create role exmu with superuser login;' -U postgres -h 127.0.0.1 | |
| - psql -c 'create database exmu_test;' -U postgres -h 127.0.0.1 | |
| - bundle exec rake db:test:prepare | |
| - bundle exec rspec spec | |
| services: |