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
@bajpangosh
bajpangosh / nginx.conf
Created Apr 28, 2019
Ghost Cloudflare Nginx Config
View nginx.conf
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name www.verifiedbyme.xyz;
# SSL
ssl_certificate /etc/nginx/ssl/nginx.crt;
ssl_certificate_key /etc/nginx/ssl/nginx.key;
# reverse proxy
@bajpangosh
bajpangosh / Nginx Rewrites for Rank Math Sitemaps
Created Mar 13, 2019
Nginx Rewrites for Rank Math Sitemaps
View Nginx Rewrites for Rank Math Sitemaps
# START Nginx Rewrites for Rank Math Sitemaps
rewrite ^/sitemap_index.xml$ /index.php?sitemap=1 last;
rewrite ^/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;
# END Nginx Rewrites for Rank Math Sitemaps
View keybase.md

Keybase proof

I hereby claim:

  • I am bajpangosh on github.
  • I am bajpangosh (https://keybase.io/bajpangosh) on keybase.
  • I have a public key ASCQrbxcN1Zg4c_dRFqTO7wunY82OaU5e0eK8qFpzUc06Ao

To claim this, I am signing this object:

@bajpangosh
bajpangosh / Ubuntu and www:data permissions in amazon AWS EC2
Last active Feb 15, 2019
Ubuntu and www:data permissions in amazon AWS EC2
View Ubuntu and www:data permissions in amazon AWS EC2
Every time I have to go to terminal, ssh and do this to change the permissions between Joomla (www-data) and FileZilla (ubuntu)
sudo chown -R www-data.www-data /var/www/html (Joomla)
sudo chown -R ubuntu /var/www/html (File Zilla)
How do I set it so that I don't have to change this every time?
Solution
Add the ubuntu user to the www-data group
@bajpangosh
bajpangosh / index.html
Created Nov 27, 2018
YouTube API - Multiple Videos on One Page
View index.html
<div class="video-item">
<iframe id="video0" src="//www.youtube.com/embed/4DMGfbje7NY?enablejsapi=1&html5=1" frameborder="0" allowfullscreen></iframe>
<button class="play">Play</button>
<button class="stop">Stop</button>
</div>
<div class="video-item">
<iframe id="video1" src="//www.youtube.com/embed/nJl-qVoEEJI?enablejsapi=1&html5=1" frameborder="0" allowfullscreen></iframe>
<button class="play">Play</button>
<button class="stop">Stop</button>
View php7
apt-get -y install php7.0-fpm php7.0-curl php7.0-gd php7.0-imap php7.0-mcrypt php7.0-readline php7.0-common php7.0-recode php7.0-mysql php7.0-cli php7.0-curl php7.0-mbstring php7.0-bcmath php7.0-mysql php7.0-opcache php7.0-zip php7.0-xml php-memcached php-imagick php-memcache memcached graphviz php-pear php-xdebug php-msgpack php7.0-soap
@bajpangosh
bajpangosh / php7.0 WordPress or other CMS PHP modules
Last active Feb 24, 2018
php7.0 WordPress or other CMS PHP modules
View php7.0 WordPress or other CMS PHP modules
The following PHP modules which can come in handy in case you are planning to install WordPress or other CMS.
sudo apt-get install -y php7.0-tidy php7.0 php7.0-fpm php7.0-mysql php-curl php-gd php-mcrypt php-pear php7.0-mbstring php-memcached php7.0-gmp php-zip
@bajpangosh
bajpangosh / WordPress+Cloudflare Full SSL - Nginx Configuration v3
Last active Feb 7, 2018
WordPress+Cloudflare Full SSL - Nginx Configuration v3
View WordPress+Cloudflare Full SSL - Nginx Configuration v3
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
root /var/www/example.com;
index index.html index.htm index.php;
server_name example.com www.example.com;
location / {
#try_files $uri $uri/ =404;
try_files $uri $uri/ /index.php?q=$uri&$args;
}
@bajpangosh
bajpangosh / How to Convert AdSense Hosted to Non-hosted Account
Created Jan 10, 2018
How to Convert AdSense Hosted to Non-hosted Account
View How to Convert AdSense Hosted to Non-hosted Account
https://www.google.com/adsense/app?hl=en&noaccount=false#main/upgrade
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.
You can’t perform that action at this time.