Skip to content

Instantly share code, notes, and snippets.

🛰
Working from Moon

Bajpan Gosh bajpangosh

🛰
Working from Moon
Block or report user

Report or block bajpangosh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Change VPS time zone
On Ubuntu/Debian distros, you can easily change the timezone by running the command :
sudo dpkg-reconfigure tzdata
You will be prompt with a list of timezones that you can select from.
@bajpangosh
bajpangosh / NGINX.conif
Last active Dec 7, 2017
NGINX .conif tuning for Maximum performance
View NGINX.conif
user www-data;
worker_processes auto;
pid /run/nginx.pid;
worker_rlimit_nofile 100000;
error_log /var/log/nginx/error.log crit;
events {
worker_connections 4000;
@bajpangosh
bajpangosh / Flarum+Cloudflare Full SSL - Nginx Configuration
Created Jun 19, 2017
Flarum+Cloudflare Full SSL - Nginx Configuration
View Flarum+Cloudflare Full SSL - Nginx Configuration
# HTTPS Server
server {
listen 443 ssl http2 default_server;
listen [::]:443 ssl http2 default_server;
root /var/www/html;
index index.html index.htm index.php;
server_name example.com;
ssl_certificate /etc/nginx/ssl/example.com.crt;
ssl_certificate_key /etc/nginx/ssl/example.com.key;
@bajpangosh
bajpangosh / WordPress+Cloudflare Full SSL - Nginx Configuration
Created May 26, 2016
WordPress+Cloudflare Full SSL - Nginx Configuration
View WordPress+Cloudflare Full SSL - Nginx Configuration
# HTTP Server
server {
listen 80;
server_name yourwebsitename.com www.yourwebsitename.com;
rewrite ^ https://$server_name$request_uri permanent;
}
# HTTPS Server
server {
listen 443;
@bajpangosh
bajpangosh / Install and Test Sendmail on Ubuntu VPS.txt
Created Jun 15, 2016
Install and Test Sendmail on Ubuntu VPS
View Install and Test Sendmail on Ubuntu VPS.txt
sudo apt-get install php-pear
sudo pear install mail
sudo pear install Net_SMTP
sudo pear install Auth_SASL
sudo pear install mail_mime
You can’t perform that action at this time.