Skip to content

Instantly share code, notes, and snippets.

View aozisik's full-sized avatar

Ahmet Özışık aozisik

View GitHub Profile
@aozisik
aozisik / laravel-forge-zero-downtime.sh
Last active December 29, 2020 08:42
Zero downtime deploys using Laravel Forge
# Zero-downtime deployment script for Laravel Forge
#
# !!! WARNING FOR FIRST DEPLOYMENT !!!
# 1. Proceed with caution!
# During first setup this script will backup your .env file and storage folder, then DELETE your existing app directory.
# Make sure you don't have any important files inside your app directory and take a backup up beforehand as needed.
#
# 2. Your web server should now point at /current/public instead of /public
#
@aozisik
aozisik / .php-cs-fixer.php
Last active March 4, 2024 09:22
Swiftmade's php-cs-fixer (v3) config.
<?php
$finder = Symfony\Component\Finder\Finder::create()
->notPath('bootstrap/*')
->notPath('storage/*')
->notPath('vendor')
->notPath('nova')
->notPath('spark')
->in([
__DIR__ . '/app',
@aozisik
aozisik / ubuntu20-php8-v8js-setup.sh
Last active May 6, 2023 08:07
Installing V8JS extension for PHP 8.0 on Ubuntu 20.x
apt-get update
# Install dependencies
apt-get install -y --no-install-recommends \
libtinfo5 libtinfo-dev \
build-essential \
curl \
git \
libglib2.0-dev \
libxml2 \
@aozisik
aozisik / 00.howto_install_phantomjs.md
Last active July 31, 2022 13:53 — forked from julionc/00.howto_install_phantomjs.md
How to install PhantomJS on Debian/Ubuntu

How to install PhantomJS on Ubuntu

Version: 2.1.1

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
@aozisik
aozisik / cleanup-code-folder.sh
Created March 23, 2025 12:50
Remove reproducible folders from your code directory (node_modules, vendor, Pods). Useful for backups.
#!/bin/bash
# Colors for better readability
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
NC='\033[0m' # No Color
# Set starting directory - default is current directory
START_DIR="${1:-.}"