DNSmasq wildcard on Ubuntu 18/20
- Install dnsmasq
sudo apt install -y dnsmasq
sudo apt install -y resolvconf
💡 The dnsmasq service will fail to start, you can ignore those errors for timebeing- Disable the default systemd-resolved service
# /etc/nginx/sites-enabled/laravel.conf | |
server { | |
listen 80; | |
# listen 443 ssl; | |
# ssl_certificate /etc/nginx/certs/laravel.test.pem; | |
# ssl_certificate_key /etc/nginx/certs/laravel.test-key.pem; | |
server_name laravel.test *.laravel.test; |
version: "3" | |
services: | |
postgres15: | |
image: 'nickblah/postgis:15-postgis-3' | |
container_name: postgres-15 | |
restart: unless-stopped | |
ports: | |
- "${FORWARD_PGSQL_PORT:-5432}:5432" | |
volumes: |
sudo apt install -y dnsmasq
sudo apt install -y resolvconf
#!/bin/bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
# Run this script without sudo | |
# bash script_name.sh | |
INSTALL_TMP_DIR=~/phpstorm-tmp | |
mkdir -p $INSTALL_TMP_DIR |
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
Laravel 8+, Horizon 5.x, Redis 6+
Parepare application
http://yourapp.com/horizon
inactive
on dashbaordInstall redis-server
This guide has been updated for elementaryOS v5.0+.
sudo apt-get update
sudo apt-get -y install software-properties-common
# Install x-code command line tools
xcode-select --install
# Install homebrew iteself
zsh
terminal
Add these lines in your ~/.bash_profile
file
# Show current git branch name
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/