List of important shortcuts for pycharm
Ctrl + B Navigate to the definition to the term under the cursor
Ctrl + Alt + left arrow Navigate back to last location in code
#!/bin/bash | |
# Check sudo. | |
# If credentials not already cached, ask for password and cache credentials. | |
# If already cached, increase sudo timeout by 5 min | |
sudo -v && exit 1 'Sudo access needed to execute this script' | |
# First update | |
echo "Updating apt list ...." |
Setting up dotfile from scratch
dotfiles
and initialize it with a README.md and LICENSE (optional)export PATH=${PATH}:${HOME}/.local/bin
dotfiles
on github and initialize with readmedotfiles
repository git clone [email protected]:hemenkapadia/dotfiles.git
in $HOME directory. This would only have your README and LICENSE (if selected) for now.#!/bin/bash | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |
Use #!/usr/bin/env bash
for maximum portability
References: Bash Hacker's wiki
Use a live usb to try Ubuntu before installing. Boot from the live usb. On the GRUB screen highlight the "Try Ubuntu ...." option and press e
. Update kernel parameters by adding options before quiet splash
such that the line should read as below
nogpumanager nomodeset i915.modeset=1 quiet splash
Note: On HighDPI screen machines there is a known issue whereby Ubiquity (ubuntu installer) craashes at the copying files step i.e. immediatly after the user setup screen. The cause and workaround are discussed in other gist post
Post installation, to avoid updating the above mentioned kernel options each time the system is booted, edit GRUB configuration file sudo vi /etc/default/grub
and make th
While installing Ubuntu LTS on a laptop with HighDPI screen (and potentiall selecting Something Else option for the Installation type, ubuquity used to crash with the below error while copying files. This happens post the initial user creation details are provided. | |
The way to resolve this was to before starting the installation, we should Try ubuntu and in that modift the diaplay setting as shown below |
Installing Ubuntu 18.04 resulted in an error with the Ubiquity process crashing while copying files. As a result files possibly were not copied on the drives as intended. | |
I tried following the GRUB recovery process mentioned at https://www.linux.com/learn/how-rescue-non-booting-grub-2-linux%20 but the /boot partition did not include the vmlinuz files hence this approach had to be abandoned | |
Had to revert to the process mentioned at https://www.easeus.com/partition-manager-software/fix-uefi-boot-in-windows-10-8-7.html and used the Windows recovery drive created earlier. | |
Followed the below process | |
2.1 Use diskpart to repair Windows 10/8 UEFI |
1 sudo apt-get update | |
2 sudo dpkg --configure -a | |
3 sudo apt-get update | |
4 sudo apt-get upgrade | |
5 clear | |
6 sudo -lshw -class network | |
7 sudo lshw -class network | |
8 lshw | |
9 sudo lshw | |
10 lshw -calss network |