Skip to content

Instantly share code, notes, and snippets.

View woosal1337's full-sized avatar
🦇
1337

Vusal Ismayilov woosal1337

🦇
1337
View GitHub Profile

Keybase proof

I hereby claim:

  • I am woosal1337 on github.
  • I am woosal (https://keybase.io/woosal) on keybase.
  • I have a public key ASAd4qcLbIUVqMGKX8ibx6Ibn17D3vc0I30X-upT3VfoLAo

To claim this, I am signing this object:

@woosal1337
woosal1337 / .p10k.zsh
Created March 26, 2021 15:53
My custom Powerlevel10K zsh configuration.
# Generated by Powerlevel10k configuration wizard on 2021-03-26 at 01:17 +03.
# Based on romkatv/powerlevel10k/config/p10k-classic.zsh, checksum 40036.
# Wizard options: awesome-fontconfig, small icons, classic, unicode, dark, 24h time,
# blurred heads, flat tails, 2 lines, dotted, full frame, compact, many icons, fluent,
# instant_prompt=verbose.
# Type `p10k configure` to generate another config.
#
# Config for Powerlevel10k with classic powerline prompt style. Type `p10k configure` to generate
# your own config based on it.
#
@woosal1337
woosal1337 / OpenCV-Build-*UNIX
Created March 26, 2021 17:35
Full OpenCV Build from source guide.
# Full OpenCV Build From Source Guide
### Notes:
- Do not use Anaconda, or any other version of debugger.
- Make sure your Python interpreter is as same the UNIX base, which usually is located at `/usr/bin/python`
- Make sure you are at the `/home/user` directory
1) Install the build tools:
```
@woosal1337
woosal1337 / CUDA & cuDNN Installation
Created March 26, 2021 17:42
Complete CUDA and cuDNN Installation guide for *UNIX.
# CUDA Installation
1) Download and Install CUDA Local Files
```
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget https://developer.download.nvidia.com/compute/cuda/11.2.2/local_installers/cuda-repo-ubuntu2004-11-2-local_11.2.2-460.32.03-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu2004-11-2-local_11.2.2-460.32.03-1_amd64.deb
sudo apt-key add /var/cuda-repo-ubuntu2004-11-2-local/7fa2af80.pub
sudo apt-get update
sudo apt-get -y install cuda
1) `sudo /etc/bluetooth/main.conf`.
2) Search for `ControllerMode` and uncomment it.
@woosal1337
woosal1337 / IP-Display-Python
Created May 11, 2021 16:34
Get device IP with one line code while redirecting the users to the Cloudflare servers and getting the response.
(requests.get("https://www.cloudflare.com/cdn-cgi/trace").text).split("\n")[2][3:]
@woosal1337
woosal1337 / E: Unable to correct problems, you have held broken packages.
Created May 14, 2021 19:33
E: Unable to correct problems, you have held broken packages.
```
$ sudo dpkg --list
then look for a package with the name of the one you're trying to install
eg mysql and purge them by name. I repeat by name.
$sudo apt-get purge <package name>
```
@woosal1337
woosal1337 / powerlevel10k-Installation
Created May 19, 2021 18:35
powerlevel10k installation for zsh terminals.
1) Download and Install zsh
2) Download and Install the according fonts: https://github.com/romkatv/powerlevel10k/blob/master/font.md
3) git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
4) Edit the .zshrc with $sudo nano ~/.zshrc
5) Change the ZSH_THEME="" to ZSH_THEME="powerlevel10k/powerlevel10k"
6) Refresh and Update the terminal: $source ~/.zshrc
7) Do the configuration according to your preference, and you are done!
@woosal1337
woosal1337 / Setup
Created May 23, 2021 16:16
My current setup details.
Computer: HP Omen 17.3' / 120Hz / GTX1070 / i7-8750H / 16GB
Monitor: HP Omen 24.5' / 144Hz
Keyboard: HP Omen 1100 / Blue Mechanical
Mouse: HP Omen 400 / 5000 DPI Pixart Sensor
Headphones: HP Omen Mindframe | AirPods 2
Mousepad: HP Omen 100
Operating System: Windows 10 x64 | Pop OS 20.04LTS
WITH_CUDA=1
BUILD_opencv_dnn=1
OPENCV_DNN_CUDA=1
ENABLE_FAST_MATH=1
BUILD_opencv_world=1
OPENCV_EXTRA_MODULES_PATH="1"
CMAKE_CONFIGURATION_TYPES=1