Skip to content

Instantly share code, notes, and snippets.

View Nesh108's full-sized avatar

Nesh Nesh108

View GitHub Profile
@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;
@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
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 / 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
@Nesh108
Nesh108 / praat_speech_processing.py
Created December 16, 2022 13:37
[Speed Processing] Processing Praat TextGrids to calculate F1, F2 and F0 of angry and sad emotion files.
import glob
import tgt
import sys
import parselmouth
import statistics
DEBUG = False
def get_f0_mean_stdev(filesSounds):
sum = 0
@Nesh108
Nesh108 / get_latest_commits.sh
Created April 22, 2020 08:11
Git - Show Commits since TAG
TAG="${%1}..HEAD"
git log --pretty=format:"- %s" $TAG
@Nesh108
Nesh108 / credentials.json
Created April 22, 2020 07:59
Dispatch Build System Credentials Template
{
"BotCredentials": {
"application_id": "<APP_ID>",
"token": "<BOT_TOKEN>"
}
}
@Nesh108
Nesh108 / setup_gitlab_runner.sh
Created April 22, 2020 07:49
Setup GitLab Runner for Automated Builds
sudo gitlab-runner register \
--name BuildRunner \
--executor shell \
--non-interactive \
--registration-token <TOKEN> \
--url <REPO_URL> \
--tls-ca-file <PATH_TO_LETSENCRYPT_FULLCHAIN_PEM> \
--run-untagged true
# Activate it
@Nesh108
Nesh108 / trigger_builds.sh
Created April 22, 2020 07:40
Unity3D-CI: Running Automated Builds via Script - Discord Message
#!/usr/bin/env bash
set -ex
LICENSE_PATH="<PATH_TO_YOUR_LICENSE_FILE>"
export UNITY_VERSION="2019.3.9f1"
export BUILD_NAME="<YOUR_PROJECT_NAME>"
export UNITY_LICENSE_CONTENT="$(cat $LICENSE_PATH)"
export UNITY_USERNAME="<YOUR_UNITY_USERNAME>"
@Nesh108
Nesh108 / trigger_builds.sh
Last active April 22, 2020 07:38
Unity3D-CI: Running Automated Builds via Script - Simple
#!/usr/bin/env bash
set -ex
LICENSE_PATH="<PATH_TO_YOUR_LICENSE_FILE>"
export UNITY_VERSION="2019.3.9f1"
export BUILD_NAME="<YOUR_PROJECT_NAME>"
export UNITY_LICENSE_CONTENT="$(cat $LICENSE_PATH)"
export UNITY_USERNAME="<YOUR_UNITY_USERNAME>"