Using a fresh Ubuntu 18.04 (latest LTS) install:
# Install prerequisites
sudo apt update
sudo apt install -y bison binutils gcc make| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| "regexp" | |
| "strings" | |
| ) | |
| var reS3KeyPDFUpload = regexp.MustCompile(`^.*\/(?P<year>\d{4})\/(?P<month>\d{2})\/(?P<day>\d{2})\/.*\.pdf$`) |
| ; /usr/local/bin/nasm -f macho 32.asm && ld -macosx_version_min 10.7.0 -o 32 32.o && ./32 | |
| global start | |
| section .text | |
| start: | |
| push dword msg.len | |
| push dword msg | |
| push dword 1 | |
| mov eax, 4 |
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| func dispByteSlice(slice []byte) { | |
| for i, b := range slice { | |
| if (i % 8) == 0 { | |
| fmt.Printf("\n") |
| # network | |
| testnet=0 | |
| listen=1 | |
| daemon=0 # leave this set to 0 for Docker | |
| logtimestamps=1 | |
| maxconnections=256 | |
| debug=0 | |
| printtoconsole=1 | |
| # optional indices (required for Insight) |
| #!/usr/bin/python | |
| import subprocess | |
| import os | |
| import simplejson | |
| import datetime | |
| import sys | |
| import math | |
| import re | |
| from time import time |
| #! /bin/bash | |
| # search based on prefix and most recent date | |
| IMAGE_PREFIX="ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-" | |
| # Canonical (makers of Ubuntu) | |
| OWNER_ID="099720109477" | |
| for REGION in $(aws ec2 describe-regions | jq -r '.Regions[].RegionName'); do | |
| IMAGE_ID=$(aws ec2 describe-images --region "${REGION}" --filters "Name=name,Values=${IMAGE_PREFIX}*" --owners "$OWNER_ID" | jq -r '.Images | sort_by(.CreationDate)[-1].ImageId') |