Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Scenario: | |
# pip refers to python3 | |
# python refers to python2 | |
# pip install doesn't work for python instead works for python3 | |
# Problem: Can't install modules for python2 | |
#______________________________________________________________ | |
# Solution: | |
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py | |
python get-pip.py | |
# Now pip install this way below (dnspython is the interesting module): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo find / -iname "*tomcat*" ! -path "/media/*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find ~/ -iname "gimp" # find where gimp script directory is located | |
cd /home/utshaw/snap/gimp/273/.config/GIMP/2.10/scripts/ | |
wget https://web.archive.org/web/20180208191139/http://registry.gimp.org:80/node/28566 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Let, user wants to ssh into remote machine from user machine | |
# User machine: | |
ssh-keygen | |
cat ~/.ssh/id_rsa.pub # then copy the content | |
# Remote machine | |
mkdir -p ~/.ssh && chmod 700 ~/.ssh ; touch ~/.ssh/authorized_keys | |
MY_KEY="<paste_here>" | |
echo "${MY_KEY}" >> ~/.ssh/authorized_keys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt install ibus-avro | |
# Go to Region & Languages from Settings | |
# Click on "Manage Installed Languages" & click on install in the popup window | |
# Restart the machine | |
# Click on '+' sign , select Bangla (Bangladesh) | |
# Select Bangla (Avro Phonetic) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "save-position-on-quit" >> ~/.config/mpv/mpv.conf | |
# Acknowledgement: https://unix.stackexchange.com/questions/414639/is-it-possible-to-continue-movies-from-where-one-leaves-in-mpv-as-can-be-done-in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add this line in /etc/apt/sources.list | |
# deb http://httpredir.debian.org/debian/ jessie main contrib non-free | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7638D0442B90D010 | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CBF8D6FD518E17E1 | |
sudo apt-get update --allow-unauthenticated | |
sudo apt-get install firmware-atheros | |
sudo dpkg -i --force-overwrite /var/cache/apt/archives/firmware-atheros_0.43_all.deb # if error says error processing archive /var/cache/apt/archives/firmware-atheros_0.43_all.deb | |
sudo apt -f install # to fix broken packages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Turn off windows cache for the specific drive from windows 10: https://www.maketecheasier.com/disable-disk-write-caching-windows10/ | |
On Ubuntu (make sure sda1 is unmounted): sudo mount -t ntfs-3g /dev/sda1 /mnt/ntfs/ | |
The above command can give following error: | |
Metadata kept in Windows cache, refused to mount. | |
Falling back to read-only mount because the NTFS partition is in an | |
unsafe state. Please resume and shutdown Windows fully (no hibernation | |
or fast restarting.) | |
For resolving the above error: | |
sudo ntfsfix /dev/sda1 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo ln -s /usr/bin/python3 /usr/bin/python |
NewerOlder