Skip to content

Instantly share code, notes, and snippets.

View AbrarJahin's full-sized avatar
🌴
On vacation

S. M. Abrar Jahin AbrarJahin

🌴
On vacation
View GitHub Profile
@AbrarJahin
AbrarJahin / Allow List for Facebook
Last active September 1, 2025 12:24
Home Allow/Deny List
# ==============================
# ✅ AdGuard Home Allowlist
# Only list explicit domains/subdomains! No wildcards.
# ==============================
# --- Facebook domains needed for mobile app core functionality ---
graph.facebook.com
b-graph.facebook.com
api.facebook.com
@AbrarJahin
AbrarJahin / Install ASP.Net Core 3.1 app in ubuntu 20.04.md
Last active December 4, 2022 23:51
Install ASP.Net Core 3.1 app in ubuntu 20.04

Install ASP.Net Core 3.1 app in ubuntu 20.04

  1. Update system-
sudo apt update -y        # Fetches the list of available updates
sudo apt upgrade -y       # Installs some updates; does not remove packages
sudo apt full-upgrade -y  # Installs updates; may also remove some packages, if needed
sudo apt autoremove -y    # Removes any old packages that are no longer needed
@AbrarJahin
AbrarJahin / Complete ASP.Net Core deploy in Centos 8.md
Created March 19, 2021 17:07
Complete ASP.Net Core deploy in Centos 8

Complete ASP.Net Core deploy in Centos 8

If you need to deploy the whole project in a new server, you can follow this procedure. If your application is deployed with git and you need to just update the project, please read this.

Procedure

  1. Create a new user in your CentOS
  2. Install Required Packages
  3. Configure Application
  4. Configure Supervisor
  5. Configure Application with Supervisor for making the app Up and running with log management
  6. Add the application ports in the firewall allowed port
  7. Viewing the server Log
@AbrarJahin
AbrarJahin / Public Time Servers.md
Last active March 12, 2020 04:14 — forked from mutin-sa/Top_Public_Time_Servers.md
List of Top Public Time Servers

Google Public NTP [AS15169]:

time.google.com

time1.google.com

time2.google.com

time3.google.com

sudo su
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
sudo add-apt-repository "$(wget -qO- https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2017.list)"
exit
sudo apt-get update -y && sudo apt-get install -y mssql-server
Update your CentOS system-
==========================
sudo yum install epel-release -y && sudo yum update kernel -y && sudo yum update -y && sudo yum upgrade -y && sudo yum install nano net-tools git wget -y && sudo reboot -h now
Ading a User with sudo access-
==============================
adduser [username] && usermod -aG wheel [username] && passwd [username] && exit
-------------------------------
Update your CentOS system-
==========================
sudo yum install epel-release -y && sudo yum update kernel -y && sudo yum update -y && sudo yum upgrade -y && sudo yum install nano net-tools git wget -y && sudo reboot -h now
Ading a User with sudo access-
==============================
adduser [username] && usermod -aG wheel [username] && passwd [username] && exit
-------------------------------
netstat -ano | FIND “22”
tasklist /FI “PID eq xxxx”
taskkill /F /IM “FreeSSHDService.exe”
netstat -ano | FIND “22”
Update your CentOS system-
==========================
sudo yum install epel-release -y && sudo yum update kernel -y && sudo yum update -y && sudo yum upgrade -y && sudo yum install nano net-tools git wget -y && sudo reboot -h now
Ading a User with sudo access-
==============================
adduser [username] && usermod -aG wheel [username] && passwd [username] && exit
-------------------------------
Update-
=======
sudo yum update kernel -y && sudo yum update -y && sudo yum upgrade -y && sudo yum install nano net-tools git wget -y
NGinX-
======
sudo yum install epel-release -y && sudo yum install nginx -y && sudo systemctl start nginx && sudo firewall-cmd --permanent --zone=public --add-service=http && sudo firewall-cmd --permanent --zone=public --add-service=https && sudo firewall-cmd --reload && sudo systemctl enable nginx
check- sudo systemctl status nginx