Skip to content

Instantly share code, notes, and snippets.

View Nesh108's full-sized avatar

Nesh Nesh108

View GitHub Profile
@Nesh108
Nesh108 / iptables.md
Created January 3, 2023 11:53 — forked from mattbell87/iptables.md
IPtables for routing over OpenVPN on Linux

Enable forwarding:

sysctl -w net.ipv4.ip_forward=1

Create this script eg sudo nano iptables.sh

eth=$1
proto=$2
Shader "Custom/Warlocracy/CharacterShader"
{
Properties
{
_MainTex ("Sprite Texture", 2D) = "white" {}
_OutlineColor ("Outline Color", Color) = (1,1,1,1)
_OutlineWidth ("Outline Width", float) = 2
[HideInInspector] _Color ("Tint", Color) = (1,1,1,1)
[HideInInspector] _RendererColor ("RendererColor", Color) = (1,1,1,1)
@Nesh108
Nesh108 / gitlab_permissions_fixer.sh
Created January 20, 2023 17:25
[Ubuntu] GitLab Permission Fixer
# root:root
sudo chown root:root /var/opt/gitlab
sudo chown root:root /var/opt/gitlab/gitlab-kas/VERSION
sudo chown root:root /var/opt/gitlab/trusted-certs-directory-hash
sudo chown root:root /var/opt/gitlab/postgresql/VERSION
sudo chown root:root /var/opt/gitlab/bootstrapped
sudo chown root:root /var/opt/gitlab/public_attributes.json
sudo chown root:root /var/opt/gitlab/logrotate
sudo chown root:root /var/opt/gitlab/logrotate/logrotate.conf
sudo chown root:root /var/opt/gitlab/logrotate/logrotate.status
@Nesh108
Nesh108 / Sendy Nginx Config
Created March 16, 2023 13:21 — forked from amanjuman/Sendy Nginx Config
Sendy Nginx Config for PHP7.4 FPM
sudo su
//Setup Hostname
hostnamectl set-hostname subdomain.domain.tld
## Basic
sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get autoremove -y && sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php -y && add-apt-repository ppa:nginx/stable -y
//Setup SWAP
sudo fallocate -l 1G /swapfile;