Skip to content

Instantly share code, notes, and snippets.

View saqib1707's full-sized avatar
๐Ÿ‘‹

Saqib Azim saqib1707

๐Ÿ‘‹
View GitHub Profile

Tips & Tricks for Unix Systems

iTerm2

  • Split terminal into two vertical panes: Cmd + D
  • Split terminal into two horizontal panes: Cmd + Shift + D

Macbook On-board Keyboard (proceed with caution using sudo)

  • Tested on Macbook Air 2017
  • To disable keyboard (in case on-board keyboard not functioning correctly):
@saqib1707
saqib1707 / python_virtual_env.md
Last active April 16, 2024 19:33
A brief description of Python Virtual Environments

Python Virtual Environments

A python virtual environment is a lighweight tool used to create an isolated Python environment with its own -

  • Package directories that doesn't share libraries with other virtual environments
  • Python binary (either copied or linked from the python environment used to create the virtual env)
  • optionally doesn't access the globally installed libraries either

Note: venv is a package that comes only with Python3.x and not with Python2.x.

  1. To create a python virtual environment:
@qin-yu
qin-yu / gpu-tf-ubuntu.md
Last active April 28, 2024 19:39
Use TensorFlow with GPU support on Ubuntu
@saqib1707
saqib1707 / sed-cheatsheet.md
Created January 11, 2020 06:26 — forked from sergeyklay/sed-cheatsheet.md
Sed Cheatsheet

Sed Cheat Sheet

Sed command line options

sed [options] sed-command [input-file]
Option Description Example
@reinvanoyen
reinvanoyen / terminal-prompt-git-branch-zsh.md
Last active October 30, 2025 18:39
Add Git Branch Name to Terminal Prompt (MacOS zsh)

Add Git Branch Name to Terminal Prompt (zsh)

Updated for MacOS with zsh

  • Catalina
  • Big Sur
  • Monterey
  • Ventura
  • Sonoma

screenshot

@matheustguimaraes
matheustguimaraes / install-cuda-cudnn.md
Last active March 20, 2023 05:08
Install CUDA 10.0 and cuDNN v7.4.2 on Ubuntu 16.04

Install CUDA 10.0 and cuDNN v7.4.2 on Ubuntu 16.04

Install the latest NVIDIA driver

Update package lists, download and install NVIDIA driver

sudo apt-get update
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt install nvidia-410
@jdhao
jdhao / gcc-5.4.0-install.sh
Last active February 20, 2024 08:46
The script will install GCC 5.4.0 on your CentOS 7 system, make sure you have root right. See https://jdhao.github.io/2017/09/04/install-gcc-newer-version-on-centos/ for more details.
echo "Downloading gcc source files..."
curl https://ftp.gnu.org/gnu/gcc/gcc-5.4.0/gcc-5.4.0.tar.bz2 -O
echo "extracting files..."
tar xvfj gcc-5.4.0.tar.bz2
echo "Installing dependencies..."
yum -y install gmp-devel mpfr-devel libmpc-devel
echo "Configure and install..."
@r00tdaemon
r00tdaemon / Install PyQt5 on Ubuntu with python3 .md
Last active March 3, 2025 02:10
Install PyQt5 on Ubuntu with python3. Steps to set up PyQt5 (ubuntu). With python code generation

Installation

pip3 install --user pyqt5  
sudo apt-get install python3-pyqt5  
sudo apt-get install pyqt5-dev-tools
sudo apt-get install qttools5-dev-tools

Configuring to run from terminal

@gr1ev0us
gr1ev0us / find.sh
Last active April 22, 2025 05:25
Cheatsheet for find linux
# List of cheatsheet for linux find.
# Taken from here http://alvinalexander.com/unix/edu/examples/find.shtml
# basic 'find file' commands
# --------------------------
find / -name foo.txt -type f -print # full command
find / -name foo.txt -type f # -print isn't necessary
find / -name foo.txt # don't have to specify "type==file"
find . -name foo.txt # search under the current dir
find . -name "foo.*" # wildcard