Skip to content

Instantly share code, notes, and snippets.

View hackerbin's full-sized avatar
👨‍💻
Learning everyday

Nurul Huda Robin hackerbin

👨‍💻
Learning everyday
View GitHub Profile
# First, install all of the things
sudo su
apt-get update
apt-get install nginx
/etc/init.d/nginx start
sudo apt-get install python-dev
sudo apt-get install python-pip
sudo add-apt-repository "deb http://security.ubuntu.com/ubuntu xenial-security main"
sudo apt update
# login with cli
psql -U username
example: psql -U postgres
# see available databases list
\l
# see available tables
\dt
@hackerbin
hackerbin / useful_commands.sh
Last active May 6, 2019 07:34
some useful bash commands and scripts
#clear linux cache
sync ; echo 3 | sudo tee /proc/sys/vm/drop_caches
# download all bangla font in linux
wget --no-check-certificate https://raw.githubusercontent.com/fahadahammed/linux-bangla-fonts/master/font.sh -O font.sh;chmod +x font.sh;bash font.sh;rm font.sh
# remove nginx cache
sudo rm -rf /var/cache/nginx/*
# without pass sudoer user