Skip to content

Instantly share code, notes, and snippets.

View vahidalvandi's full-sized avatar
🎯
Focusing

vahid alvandi vahidalvandi

🎯
Focusing
View GitHub Profile
@vahidalvandi
vahidalvandi / centos_firewall.sh
Created January 17, 2022 12:51 — forked from mortenbra/centos_firewall.sh
Basic firewall (iptables) script for CentOS with openings for SSH, HTTP and HTTPS
#!/bin/bash
# see http://oracle-base.com/articles/linux/linux-firewall.php
# Set the default policies to allow everything while we set up new rules
# Prevents cutting yourself off when running from remote SSH
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
@vahidalvandi
vahidalvandi / deploy.sh
Created June 22, 2019 16:40 — forked from BenSampo/deploy.sh
Laravel deploy script
# Change to the project directory
cd /home/forge/domain.com
# Turn on maintenance mode
php artisan down
# Pull the latest changes from the git repository
# git reset --hard
# git clean -df
git pull origin master