Skip to content

Instantly share code, notes, and snippets.

View samazgor's full-sized avatar
🎯
Focusing

Sam Azgor samazgor

🎯
Focusing
View GitHub Profile
@samazgor
samazgor / top 100+ social bookmarking sites list.md
Created August 18, 2024 22:21 — forked from nzzzen/top 100+ social bookmarking sites list.md
DoFollow Backlink Sites | High PR Free Backlink Sites

TOP 100+ Social Bookmarking Sites List

DoFollow Backlink Sites | High PR Free Backlink Sites

Detailed article is shared here- TOP 100+ Social Bookmarking Sites List

A backlink is a type of link pointing out from a website to your website. It is also called inbound or incoming backlinks. Backlinks are used to generate traffic to your website. Search engines continuously crawls the web pages and if they find a link to your website at some page then they crawl your page too. So it increases the search engine visibility in the back end. Get top 100+ DoFollow High PR Backlink Sites list.

There are plenty of backlink websites available for free. But not all websites provide high quality free backlinks. This article will provide you high quality Free Backlink sites list.

@samazgor
samazgor / scp.md
Last active August 7, 2024 17:10
SCP command for upload files from one server to another

Command

scp foo.zip username@TARGET_HOST:~/TARGET_PATH

Copy directory

scp SOUR_DIR username@TARGET_HOST:~/TARGET_PATH

@samazgor
samazgor / paste.js
Created May 15, 2024 06:59 — forked from shahidmalla1337sm/paste.js
Remove Powered by WHMCompleteSolution
Edit your theme file footer.tpl
Past the code above the code of footer.tl.
@samazgor
samazgor / npm-install-ubuntu.md
Created December 26, 2023 13:25
Install npm via nvm for ubuntu

Switch user sudo su USER

wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.39.0/install.sh | bash
source ~/.profile
nvm ls-remote
nvm install 18.18.2
npm -v
node -v
@samazgor
samazgor / create-mysql-db-user.md
Created November 30, 2022 09:06
Create MySQL DB and User

Login to SSH and then sudo mysql -u root -p

Hit enter, by default there's no password.

CREATE DATABASE db_name;

CREATE USER 'db_user' IDENTIFIED BY 'STRONG_PASSWORD';

GRANT ALL PRIVILEGES ON db_name.* TO 'db_user';

@samazgor
samazgor / performance.conf
Created October 6, 2022 01:04 — forked from JamiesonRoberts/performance.conf
Apache Security Headers Setup for Serverpilot
Header set Connection keep-alive
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType image/svg+xml "access 1 month"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
@samazgor
samazgor / .htaccess
Created July 30, 2021 15:17 — forked from NinjaPress/.htaccess
Evitando HotLinking via .htaccess no Wordpress (Exceto permitidos)
# Disable hotlinking of images with forbidden message
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?seu-dominio.com.br/.*$ [NC]
RewriteCond %{HTTP_REFERER} !search\?q=cache [NC]
RewriteCond %{HTTP_REFERER} !google\. [NC]
RewriteCond %{HTTP_REFERER} !yahoo\. [NC]
RewriteCond %{HTTP_REFERER} !googleusercontent\. [NC]
RewriteCond %{HTTP_REFERER} !bing\. [NC]
@samazgor
samazgor / php7.4-fpm.conf
Created October 28, 2020 09:00
Custom php-fpm configuration file for v7.4
; sudo nano /etc/php/7.4/fpm/pool.d/digitechpoint.conf
; Start a new pool named 'digitechpoint'.
; the variable $pool can be used in any directive and will be replaced by the
; pool name ('digitechpoint' here)
[digitechpoint]
; Per pool prefix
; It only applies on the following directives:
; - 'access.log'
; - 'slowlog'
@samazgor
samazgor / .htaccess.md
Created August 13, 2020 14:33
redirect HTTP to HTTPS Using .htaccess

Redirecting HTTP to HTTPS

  1. Redirect All Web Traffic If you have existing code in your .htaccess, add the following:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]
@samazgor
samazgor / nginx-wehost.conf
Last active July 22, 2021 18:47
nginx website block config sudo nano /etc/nginx/sites-available/samazgor.me
server {
listen 80;
listen [::]:80;
root /home/digitechpoint/apps/samazgor.me/public;
index index.php index.html index.htm;
server_name samazgor.me www.samazgor.me;
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {