apt update
apt install docker.io
#!/bin/bash | |
apt-get update -y | |
apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
software-properties-common -y |
MYSQL_ROOT_PASSWORD=rootpass |
# watch the current directory for changes to files | |
# order the files by size and output the files in 3 columns | |
# highlight changes between outputs | |
watch -d 'du -sh * | sort -hr | pr -3 -t' |
version: "3.8" | |
services: | |
chrome: | |
network_mode: "host" | |
image: jess/chrome | |
environment: | |
DISPLAY: 'unix:0' | |
volumes: | |
- /run/dbus/system_bus_socket:/run/dbus/system_bus_socket |
# get back a list of urls for search term | |
# $ goog stuart-warren github | |
# $ goog site:stackoverflow.com ValueError | |
goog() { | |
# uses https://github.com/mgdm/htmlq | |
query=${@} | |
v="" | |
if [[ "$1" == "-v" ]]; then v="-v"; fi | |
curl ${v} -LG --data-urlencode "q=${query}" \ | |
--data-urlencode "sourceid=chrome" \ |
version: '3' | |
services: | |
nginx-proxy: | |
image: jwilder/nginx-proxy | |
restart: always | |
ports: | |
- "80:80" | |
volumes: | |
- /var/run/docker.sock:/tmp/docker.sock:ro |
#!/bin/bash | |
# This script will set up a LEMP environment for local development on | |
# Ubuntu 18.04. Nginx will look for sites in ~/Code/{folder}/public/. These | |
# sites can be accessed locally by going to http://{folder}.localtest.me. An | |
# example site called "info" is created automatically and you can view it by | |
# going to http://info.localtest.me. The source code for this site is in | |
# ~/Code/info/public/ | |
# ADD SOME PPAs |