Skip to content

Instantly share code, notes, and snippets.

View akhilesh-sirvi92's full-sized avatar
🎯
Focusing

akhilesh sirvi akhilesh-sirvi92

🎯
Focusing
  • Froiden
  • Jaipur
View GitHub Profile
@akhilesh-sirvi92
akhilesh-sirvi92 / docker-compose.yml
Created August 10, 2023 09:12 — forked from ankurk91/docker-compose.yml
My docker compose for local development
version: "3"
services:
postgres15:
image: 'nickblah/postgis:15-postgis-3'
container_name: postgres-15
restart: unless-stopped
ports:
- "${FORWARD_PGSQL_PORT:-5432}:5432"
volumes:
@akhilesh-sirvi92
akhilesh-sirvi92 / laravel-project.conf
Created August 10, 2023 09:12 — forked from ankurk91/laravel-project.conf
Ngnix conf with php on Ubuntu 20/22
# /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;
@akhilesh-sirvi92
akhilesh-sirvi92 / example-virtual-host.ssl.test.conf
Created August 10, 2023 09:11 — forked from ankurk91/example-virtual-host.ssl.test.conf
Sample virtual host .conf file for Apache2 on Ubuntu
# This to be used when you need to implement SSL
# Make sure that apache mod_ssl is on
# You can generate self signed certificates for development
# http://www.selfsignedcertificate.com/
<VirtualHost *:443>
ServerName yourapp.test
#ServerAlias www.yourapp.test
@akhilesh-sirvi92
akhilesh-sirvi92 / import-sql.md
Created August 10, 2023 09:11 — forked from ankurk91/import-sql.md
MySQL/Postgresql: Import database via command line

Import large database to MySql ⚡

cd /path/to/backups
mysql -u root -h 127.0.0.1 -p --default-character-set=utf8
# Switch to database 
USE database_name;
@akhilesh-sirvi92
akhilesh-sirvi92 / install_lamp_ubuntu.sh
Created August 10, 2023 09:10 — forked from ankurk91/install_lamp_ubuntu.sh
Ubuntu 22 - PHP development (php 7.4 / 8.2, apache 2.4)
#!/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