- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
- They are the people who get things done. Effective Engineers produce results.
| #!/bin/sh | |
| # To the extent possible under law, the person who associated CC0 | |
| # with this work has waived all copyright and related or neighboring | |
| # rights to this work. | |
| # http://creativecommons.org/publicdomain/zero/1.0/ | |
| SCRIPT_DIR=`dirname $0` | |
| if [ -e $1 ] ; then |
| mike@rbci:~$ psql -U postgres | |
| psql (9.0.3) | |
| Type "help" for help. | |
| postgres=# update pg_database set datallowconn = TRUE where datname = 'template0'; | |
| UPDATE 1 | |
| postgres=# \c template0 | |
| You are now connected to database "template0". | |
| template0=# update pg_database set datistemplate = FALSE where datname = 'template1'; | |
| UPDATE 1 |
| #!/usr/bin/env perl | |
| use feature 'switch'; | |
| use strict; | |
| use warnings; | |
| use Data::Dumper; | |
| use File::Basename; | |
| use File::Copy; | |
| use File::Path qw/make_path/; |
| ffmpeg -f image2 -i render-%04d.png -i audio.mp3 -r 25 -vcodec libx264 -b:v 1024k -b:a 192k -t 00:00:04 -vf "movie=watermark.png [watermark]; [in][watermark] overlay=10:10 [out]" out.mp4 |
| sudo apt-get update && sudo apt-get -y dist-upgrade && sudo shutdown -r now | |
| # wait for reboot | |
| # as root | |
| apt-get autoremove -y --purge | |
| # basics and osm2pgsql deps | |
| apt-get install -y subversion git build-essential libxml2-dev libgeos-dev libgeos++-dev libpq-dev libbz2-dev libproj-dev protobuf-c-compiler libprotobuf-c0-dev autoconf automake libtool make g++ sysstat iotop apache2.2 apache2.2-common apache2-mpm-worker liblua5.2-dev lua5.2 | |
| mkdir -m 000 /planet |
| autodock: | |
| image: prologic/autodock | |
| ports: | |
| - "1338:1338/udp" | |
| - "1338:1338/tcp" | |
| volumes: | |
| - /var/run/docker.sock:/var/run/docker.sock | |
| autodocklogger: | |
| image: prologic/autodock-logger |
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "os" | |
| "os/signal" |
| # commits to be built | |
| ARG CGAL55_GIT_COMMIT=tags/v5.6 # https://github.com/CGAL/cgal/tags | |
| ARG SFCGAL_GIT_COMMIT=tags/v1.5.0 # https://github.com/Oslandia/SFCGAL_CI/tags | |
| ARG PROJ_GIT_COMMIT=tags/9.3.0 # https://github.com/OSGeo/PROJ/tags | |
| ARG GEOS_GIT_COMMIT=tags/3.12.0 # https://github.com/libgeos/geos/tags | |
| ARG GDAL_GIT_COMMIT=tags/v3.7.3 # https://github.com/OSGeo/gdal/tags | |
| ARG POSTGIS_GIT_COMMIT=tags/3.4.0 # https://github.com/postgis/postgis/tags | |
| # base container with build-dependencies | |
| FROM docker://postgres:16-bookworm AS build-deps |