Skip to content

Instantly share code, notes, and snippets.

View rakibulinux's full-sized avatar
🥰
Work Lover

MD RAKIBUL ISLAM RAKIB rakibulinux

🥰
Work Lover
View GitHub Profile
@rakibulinux
rakibulinux / keybase.md
Created December 31, 2019 20:48
keybase.md

Keybase proof

I hereby claim:

  • I am rakibulinux on github.
  • I am rakibulinux (https://keybase.io/rakibulinux) on keybase.
  • I have a public key whose fingerprint is E8CC 7400 1372 0CB2 012D 6109 6407 5A3E A42D 7B66

To claim this, I am signing this object:

@rakibulinux
rakibulinux / NTFS.sh
Created January 13, 2020 13:03
Ubuntu 18.04 Read Only Problem On NTFS
#Ubuntu 18.04 Read Only Problem On NTFS
sudo fdisk -l
sudo ntfsfix /dev/sdb2 #device name or HDD/SSD name
@rakibulinux
rakibulinux / Composer.sh
Last active January 13, 2020 23:50
How to Install and Use PHP Composer on Ubuntu 18.04
#!/bin/sh
# Install PHP Composer
sudo apt update
sudo apt install wget php-cli php-zip unzip
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
HASH="$(wget -q -O - https://composer.github.io/installer.sig)"
php -r "if (hash_file('SHA384', 'composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
#If the hashes match, you will see the following output:
@rakibulinux
rakibulinux / FormatUSB.sh
Created January 16, 2020 00:02
How to Format USB drive in Linux Ubuntu using terminal
#!/bin/sh
# 1st go SU
sudo su
# 2nd See the Disk list
fdisk -l
# 3rd Select the USB and umount usb. In my case /dev/sdc1 It can be different for you
umount /dev/sdc1
# 4th Formate the USB
@rakibulinux
rakibulinux / X-Frame.sh
Created January 19, 2020 17:57
X-Frame-Options - How to Combat Clickjacking on cPanel
#1. deny directive
#The deny directive completely disables the loading of the page in a frame, regardless of what site is trying. Below is what the header request will look like if this is enabled.
X-Frame-Options: deny
#2. sameorigin directive#
#The sameorigin directive allows the page to be loaded in a frame on the same origin as the page itself. Below is what the header request will look like if this is enabled.
X-Frame-Options: sameorigin
@rakibulinux
rakibulinux / PowerShell.sh
Created January 26, 2020 16:50
How to Install PowerShell on Ubuntu 18.04
# Download the Microsoft repository GPG keys
wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
# Register the Microsoft repository GPG keys
sudo dpkg -i packages-microsoft-prod.deb
# Update the list of products
sudo apt-get update
# Enable the "universe" repositories
@rakibulinux
rakibulinux / Redis.sh
Last active February 2, 2020 20:00
How To Install and Secure Redis on Ubuntu 18.04
#!bin/sh
sudo apt update
sudo apt install redis-server
#Open this file with your preferred text editor. Inside the file, find the supervised directive. This directive allows you to declare an init system to manage Redis as a service, providing you with more control over its operation. The supervised directive is set to no by default. Since you are running Ubuntu, which uses the systemd init system, change this to (systemd):
sudo nano /etc/redis/redis.conf
Add this (supervised systemd)
@rakibulinux
rakibulinux / Erlang.sh
Created February 3, 2020 00:19
How to install Latest Erlang on Ubuntu 18.04 LTS
#!/bin/sh
wget -O- https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc | sudo apt-key add -
echo "deb https://packages.erlang-solutions.com/ubuntu bionic contrib" | sudo tee /etc/apt/sources.list.d/rabbitmq.list
sudo apt update
sudo apt -y install erlang
erl
@rakibulinux
rakibulinux / vsftpd.sh
Last active February 5, 2020 21:44
How to Install and Configure vsftpd on Ubuntu 18.04
#!/bin/sh
#Install vsftpd
sudo apt-get install vsftpd -y
sudo systemctl start vsftpd
sudo systemctl enable vsftpd
#Setup Directory Structure For FTP
#Create a User
@rakibulinux
rakibulinux / wireshark.sh
Created February 10, 2020 16:56
How to Install and Use Wireshark on Ubuntu
#!/bin/sh
sudo apt update
sudo apt install wireshark
#If you want you can create account for wireshark
sudo usermod -aG wireshark $(whoami)
sudo reboot