Skip to content

Instantly share code, notes, and snippets.

Avatar
🤣
Fake it to make it

vahid alvandi vahidalvandi

🤣
Fake it to make it
View GitHub Profile
@vahidalvandi
vahidalvandi / centos_firewall.sh
Created Jan 17, 2022 — forked from mortenbra/centos_firewall.sh
Basic firewall (iptables) script for CentOS with openings for SSH, HTTP and HTTPS
View centos_firewall.sh
#!/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 Jun 22, 2019 — forked from BenSampo/deploy.sh
Laravel deploy script
View deploy.sh
# 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