Skip to content

Instantly share code, notes, and snippets.

@h4n2k
h4n2k / idea.properties
Last active December 5, 2021 14:46
webstorm tune up
# custom WebStorm properties
editor.zero.latency.typing=true
idea.max.intellisense.filesize=3500
idea.cycle.buffer.size=2048
@h4n2k
h4n2k / gist:37dcc0d764642bf13fe557a1de58c74b
Created August 3, 2019 15:07
Save git username and password
git config --global credential.helper store
git config --global credential.helper cache
yay -Sy python-virtualenv
virtualenv
yay -Sy python-pipenv
pipenv
pipenv shell
pipenv install flask
pipenv install flask_restful
pipenv install opencv-python
@h4n2k
h4n2k / gist:82ffe7a7ab4097d94c63831ae2cd272b
Created March 24, 2019 03:05
install minikube arch linux
egrep --color 'vmx|svm' /proc/cpuinfo
sudo pacman -Sy libvirt qemu ebtables dnsmasq
sudo usermod -a -G libvirt $(whoami)
newgrp libvirt
sudo systemctl start libvirtd.service
sudo systemctl enable libvirtd.service
sudo systemctl start virtlockd.service
@h4n2k
h4n2k / nanorc
Created November 15, 2018 00:02
gnu nano setting
## Sample initialization file for GNU nano.
##
## This file should not be in DOS or Mac format, and characters
## specially interpreted by the shell should not be escaped here.
##
## To make sure an option is disabled, use "unset <option>".
##
## For the options that take parameters, the default value is given.
## Other options are unset by default.
##
@h4n2k
h4n2k / gist:825c197aa89e10fd6bc4104e7ba710fc
Created July 27, 2018 01:27
cant unmute using amixer - arch linux
//change
amixer -q set Master toggle
//to
amixer -D pulse set Master toggle
@h4n2k
h4n2k / gist:ccc3843c8d5122f914cfd4ccc851e5ce
Last active August 27, 2018 14:11
Cleaning the package cache & Removing unused packages (orphans) Arch Linux
Removing unused packages (orphans)
# sudo pacman -Rns $(pacman -Qtdq)
Cleaning the package cache
# sudo pacman -Sc
# journalctl --disk-usage
# sudo journalctl --vacuum-size=10M
@h4n2k
h4n2k / gist:d4eacc45452eba4cf5ad9f9e004ea4fa
Last active July 31, 2018 07:52
Changing Display Manager to i3 (from gnome) - Arch Linux (Antergos)
sudo pacman -S i3
:: There are 5 members in group i3:
:: Repository community
1) i3-gaps 2) i3-wm 3) i3blocks 4) i3lock 5) i3status
Enter a selection (default=all): 1, 4
Optional dependencies for i3-gaps
rxvt-unicode: The terminal emulator used in the default config.
@h4n2k
h4n2k / gist:8bdd39940ad5971cc7cc3f8eddb9c3fd
Created April 15, 2018 08:10
Fix gnome-tweaks appliction theme list not show
gsettings get org.gnome.desktop.interface gtk-theme
locate Vimix-Laptop-Doder
ls /usr/share/themes
gsettings set org.gnome.desktop.interface gtk-theme Numix
@h4n2k
h4n2k / gist:717e5edd4c48bdb124b9632eba7c227e
Created January 31, 2018 00:38
arch linux - php-mongo
yaourt php-pear
sudo pecl channel-update pecl.php.net
sudo pecl install mongodb
sudo echo "extension=mongodb.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
or
sudo nano /etc/php/php.ini
add extension=mongodb.so
sudo systemctl restart httpd.service