Skip to content

Instantly share code, notes, and snippets.

#! /bin/bash
curl -L $1 | \
while read L; do
[ "$(echo $L | grep '#>>')" != "" ] && F="$(echo "$L" | sed 's/#>> //g')" || echo "$L" >> $F;
done
chmod +x run.sh
./run.sh
#docker run --rm -it debian:stretch-slim bash -c "$(cat ./ghdl_stretch-gcc.sh)"
set -e
apt-get update -qq \
&& apt-get install -y curl gnat gcc g++ make zlib1g-dev lbzip2 flex autogen dejagnu texinfo \
&& mkdir gcc-srcs \
&& curl -L https://github.com/gcc-mirror/gcc/archive/gcc-7_2_0-release.tar.gz | tar -xz -C gcc-srcs --strip-components=1 \
&& cd gcc-srcs \
&& ./contrib/download_prerequisites \
@eine
eine / portainer_traefik_demo.sh
Last active June 17, 2019 12:39
Portainer and Traefik demo
#!/bin/sh
mkdir -pv traefik && cd traefik
printf "version: '2' \n\
\n\
services: \n\
traefik: \n\
image: traefik \n\
restart: always \n\
ports: [ '80:80', '8080:8080' ] \n\