Skip to content

Instantly share code, notes, and snippets.

@haytefli92
haytefli92 / squid_proxy_setup.txt
Created April 6, 2024 06:37 — forked from zazencodes/squid_proxy_setup.txt
Squid proxy setup on linux server (NO WARRANTY)
# https://linuxize.com/post/how-to-install-and-configure-squid-proxy-on-ubuntu-20-04/
# Install squid
sudo apt update
sudo apt install squid
# Backup config
sudo cp /etc/squid/squid.conf{,.orginal}
# Add allowed IPs
@haytefli92
haytefli92 / Laravel on VestaCP.md
Last active January 13, 2021 22:37 — forked from peterbrinck/Laravel on VestaCP.md
Laravel web templates for VestaCP

I'm not using this or VestaCP anymore, so I can't confirm if still working or not.

I've made a new web template to make Laravel work easily on VestaCP, and so I wouldn't have to change my Laravel installation, if I ever wanted to deploy it elsewhere.

Each file should be put in /usr/local/vesta/data/templates/web/apache2

Then, when you edit your domain/site, you can change the web template to Laravel and just upload your whole project into public_html

@haytefli92
haytefli92 / install-redis.sh
Last active May 10, 2020 19:20 — forked from clzola/install-redis.sh
Bash script for installing Redis on Ubuntu 16.04
#!/bin/bash
# Install the Build and Test Dependencies
apt-get update
apt-get install -y curl build-essential tcl
# Download and Extract the Source Code
cd /tmp
curl -O http://download.redis.io/redis-stable.tar.gz
tar xzvf redis-stable.tar.gz
@haytefli92
haytefli92 / mysql_replication_autostart.sh
Last active September 6, 2019 21:57 — forked from nicomak/mysql_replication_autostart.sh
This script automates the process of starting a Mysql Replication on 1 master node and N slave nodes. More details on how it works at http://blog.ditullio.fr/2016/04/30/initialize-mysql-master-slave-replication-script/
#!/bin/bash
#title : replication-start.sh
#description : This script automates the process of starting a Mysql Replication on 1 master node and N slave nodes.
#author : Nicolas Di Tullio
#date : 20160706
#update : 20190905
#version : 0.3
#usage : bash mysql_replication_autostart.sh
#bash_version : 4.3.11(1)-release
#=============================================================================