Skip to content

Instantly share code, notes, and snippets.

View amanjuman's full-sized avatar
😀
Ill

Aman Juman amanjuman

😀
Ill
View GitHub Profile
@amanjuman
amanjuman / AWS SES as SendMail MTA on AWS EC2 Instance
Last active November 18, 2024 10:30
AWS SES Relay with Sendmail
// Update Packages
sudo apt-get update && sudo apt-get -y upgrade && sudo apt dist-upgrade -y && sudo apt-get autoremove -y
// Setup Hostname
hostnamectl set-hostname subdomain.domain.tld
// Create Host Record
sudo nano /etc/hosts
// Add this line
@amanjuman
amanjuman / Install Tailscale
Last active January 21, 2022 15:13
Install Tailscale
curl -fsSL https://tailscale.com/install.sh | sh
sudo apt-get update && sudo apt-get install tailscale -y
echo 'net.ipv4.ip_forward = 1' | sudo tee -a /etc/sysctl.conf
echo 'net.ipv6.conf.all.forwarding = 1' | sudo tee -a /etc/sysctl.conf
sudo sysctl -p /etc/sysctl.conf
## Linux Up
@amanjuman
amanjuman / Install V2Ray Client on OpenWRT and Configure Vmess
Last active July 14, 2025 12:49
Install V2Ray Client on OpenWRT and Configure Vmess
### The original Author of this package had enabled CloudFlare JS verification. As a result, this automated script will not work.
### Therefore you have to download each package and install it manually.
## Change Directory
cd /tmp/
## Update opkg
opkg update
## If wget not installed already
@amanjuman
amanjuman / SendMail with Office365 SMTP Relay
Created September 28, 2021 20:40
SendMail with Office365 SMTP Relay
// Update Packages
sudo apt-get update && sudo apt-get -y upgrade && sudo apt dist-upgrade -y && sudo apt-get autoremove -y
// Setup Hostname
hostnamectl set-hostname subdomain.domain.tld
// Create Host Record
sudo nano /etc/hosts
// Add this line
@amanjuman
amanjuman / Shiny RStudio Nginx Reverse Proxy
Created September 29, 2021 14:48
Shiny RStudio Nginx Reverse Proxy
server
{
# Listen
listen 80;
listen [::]:80;
listen 443 ssl http2;
listen [::]:443 ssl http2;
# Directory & Server Naming
server_name fqdn.domain.tld;
@amanjuman
amanjuman / SendMail with Google Workspace SMTP Relay
Last active February 9, 2025 21:30
SendMail with Google Workspace SMTP Relay
## Update Packages
sudo apt -y update && sudo apt -y upgrade && sudo apt -y dist-upgrade && sudo apt -y autoremove
## Setup Hostname
hostnamectl set-hostname subdomain.domain.tld
## Create Host Record
sudo nano /etc/hosts
## Add this line
@amanjuman
amanjuman / mta-sts-nginx
Last active October 22, 2021 19:49
Nginx MTA STS Configuration
# This
location ^~ /.well-known/mta-sts.txt {
try_files $uri @mta-sts;
}
# Or This
location @mta-sts {
# add_header Content-Type "text/plain";
return 200 "version: STSv1\nmode: enforce\nmx: mailserver.example.com\nmax_age: 1036800\n";
}
@amanjuman
amanjuman / Install-Minecraft-1.18.1-on-Ubuntu-20.04-x64-(log4j2-patch)
Last active May 20, 2022 19:38
Install Minecraft 1.18.1 on Ubuntu 20.04 x64 ( log4j2 patch)
## Update System
sudo apt update -y && sudo apt upgrade -y && sudo apt dist-upgrade -y && sudo apt autoremove -y
## Install Dependency
sudo apt install libc6-i386 libc6-x32 curl -y
## Install Jave
wget https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.deb && sudo dpkg -i jdk-17_linux-x64_bin.deb && rm jdk-17_linux-x64_bin.deb
## Download and install Minecraft
@amanjuman
amanjuman / runcloud-mssql
Last active December 27, 2021 13:03
Installing the Microsoft ODBC Driver for RunCloud Linux
## Repo
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list > /etc/apt/sources.list.d/mssql-release.list
## Install Tools
sudo ACCEPT_EULA=Y apt install msodbcsql17 mssql-tools autoconf libpcre3-dev unixodbc-dev -y
## Source path
echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc
@amanjuman
amanjuman / route53-domain-transfer
Created January 15, 2022 06:34
AWS Account to Account Route53 Domain Transfer Cli
# Initiate Domain Transfer
aws route53domains transfer-domain-to-another-aws-account --domain-name yourdomain.tld --account-id 123456789101
# Cancel Domain Transfer
aws route53domains cancel-domain-transfer-to-another-aws-account --domain-name yourdomain.tld
{
"OperationId": "MNOP-MNOP-MNOP-MNOP-MNOP",
"Password": "XYZXYZXYZXYZ"
}
# Accept Domain Transfer
aws route53domains accept-domain-transfer-from-another-aws-account --domain-name yourdomain.tld --password "XYZXYZXYZXYZ"