🔐
Github : Signing commits using GPG (Ubuntu/Mac) - Do you have an Github account ? If not create one.
- Install required tools
- Latest Git Client
- gpg tools
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
#!/bin/bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
# Ubuntu 20/22 dev Server | |
# Run like (without sudo) - bash install_lamp.sh | |
# Script should auto terminate on errors | |
export DEBIAN_FRONTEND=noninteractive |
version: "3" | |
services: | |
postgres15: | |
image: 'nickblah/postgis:15-postgis-3' | |
container_name: postgres-15 | |
restart: unless-stopped | |
ports: | |
- "${FORWARD_PGSQL_PORT:-5432}:5432" | |
volumes: |
Laravel 8+, Horizon 5.x, Redis 6+
Parepare application
http://yourapp.com/horizon
inactive
on dashbaordInstall redis-server
cd /path/to/backups
mysql -u root -h 127.0.0.1 -p --default-character-set=utf8
# Switch to database
USE database_name;
#!/bin/sh | |
# Install node and npm via nvm - https://github.com/nvm-sh/nvm | |
# Run this script like - bash script-name.sh | |
# Define versions | |
INSTALL_NODE_VER=18 | |
INSTALL_NVM_VER=0.39.3 |
# /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; |
# Source internet | |
# Use at your own risk, test on localhost first | |
# Ovrride Default index.php | |
DirectoryIndex home.php | |
# Prevent access to some files | |
<FilesMatch "^(wp-config.php|readme.html|license.txt|README.md|.gitignore|.gitattributes|.htaccess|error_log)"> | |
Order allow,deny | |
Deny from all |
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)/'
}