Skip to content

Instantly share code, notes, and snippets.

View Iftakharpy's full-sized avatar
👻
Learning

Iftakhar Husan Iftakharpy

👻
Learning
View GitHub Profile
@Iftakharpy
Iftakharpy / names-of-some-linux-commands.md
Last active November 25, 2020 20:56
Just a list of Linux command line tools

Names of some Linux Commands

  1. whatis
  2. help
  3. man
  4. apropos
  5. whoami
  6. which
  7. date
  8. history
  9. find
@Iftakharpy
Iftakharpy / help-postgresql.md
Last active January 10, 2025 20:22
Note of necessary commands to set up postgresql on linux

Installation

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install postgresql postgresql-contrib

postgresql.conf file

ls /etc/postgresql//main/

@Iftakharpy
Iftakharpy / download embedded private vimeo videos.md
Last active April 28, 2025 05:58
This shows how to download any vimeo videos that are embedded in an webpage. You can download all the available qualities.

Requirements

  1. Text editor with regular expression support (optional but will save time) - Recommended: Visual Studio Code
  2. Browser with devtools - Recommended: Chrome
  3. Ability to expand(clicking 🔻) and copy an html element by the requirement-2.

Steps with requirements fulfiled

  1. Go to the web page where the vimeo video is embedded.
  2. Right click on the video player and then click on inspect element.
@Iftakharpy
Iftakharpy / Tailwind setup for Django.md
Last active December 1, 2024 04:59
How to add Tailwind CSS to your Django project

Requirements

  • Install Node.js and npm
  • Install Django with pip

Steps

  1. Start Django project
    django-admin startproject mysite
    
  2. Change working directory to the project directory
@Iftakharpy
Iftakharpy / build_python3_from_source.sh
Last active July 5, 2022 18:32
Build python3 from source on Linux OS
sudo apt-get update
sudo apt-get install build-essential build-dep python gdb lcov pkg-config libpq-dev \
libbz2-dev libffi-dev libgdbm-dev libnss3-dev libgdbm-compat-dev liblzma-dev \
libncurses5-dev libreadline6-dev libreadline-dev libsqlite3-dev libssl-dev \
lzma lzma-dev tk-dev uuid-dev zlib1g-dev wget
# download latest python source code
wget https://www.python.org/ftp/python/3.10.4/Python-3.10.4.tgz
# unzip the source code
tar -xf Python-3.10.4.tgz
@Iftakharpy
Iftakharpy / pyenv_requirements.sh
Last active April 9, 2025 04:00
pyenv python installation requirements
sudo apt update
sudo apt -y upgrade
sudo apt install -y python2-dev python2
sudo apt install -y build-essential checkinstall python-dev-is-python3 libffi-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev liblzma-dev libreadline-dev
# # tried to install numpy in python3.12 manged by pyenv on pi4b, didn't work
# sudo apt install -y libopenblas-dev cmake libblas3 liblapack3 liblapack-dev libblas-dev gfortran libatlas-base-dev
sudo pyenv install 3.13.1