Skip to content

Instantly share code, notes, and snippets.

View AnmolTomer's full-sized avatar
💻
Learning

Anmol Tomer AnmolTomer

💻
Learning
View GitHub Profile

To Launch Jetbrains programs after adding to environment variables:

export PATH=$PATH:/home/<UserName>/Software/JetBrains_Linux/clion-2019.3.4/bin/
source ~/.bashrc
clion.sh```

To fix this follow these steps:

  • Unmount the drive
sudo blkid
See the location of device in my case it was /dev/sda1, and specify a place (a folder) where to mount this device
sudo mount -o rw, /dev/sda1 /media/anmol/
Add in settings.json
"python.linting.pylintArgs": ["--generate-members"]
https://stackoverflow.com/questions/51593147/cv2-python-has-no-imread-member
@AnmolTomer
AnmolTomer / Rclone_setup.md
Last active April 22, 2020 10:20
Set up Ubuntu 18.04 LTS after Install. Install basic stuff for development environment, machine learning, deep learning, web development.

Setup Rclone

135  cd Downloads/
  136  curl -O https://downloads.rclone.org/rclone-current-linux-amd64.zip
  137  unzip rclone-current-linux-amd64.zip 
  138  cd rclone-v1.51.0-linux-amd64/
  139  sudo cp rclone /usr/bin/
  140  sudo chown root:root /usr/bin/rclone 
  141  sudo chmod 755 /usr/bin/rclone
  142  sudo mkdir -p /usr/local/share/man/man1
  • Problem Description: "VMware Workstation and Device/Credential Guard are not compatible" error in VMware Workstation on Windows 10 host (2146361)

Solution

Just run cmd as Admin and type

bcdedit /set hypervisorlaunchtype off

and REBOOT
{"lastUpload":"2020-07-09T20:12:02.633Z","extensionVersion":"v3.4.3"}
# Use as: wget -O - -q https://git.io/Jf15N | bash
# Make sure USB debugging is on and adb is installed
# else run sudo apt-get update && sudo apt-get install android-tools-adb android-tools-fastboot
adb forward tcp:9222 localabstract:chrome_devtools_remote
wget -O tabs.json http://localhost:9222/json/list
@AnmolTomer
AnmolTomer / wget.sh
Created July 9, 2020 20:35
Takes download links from a txt file, makes a folder same as directory name, puts all the downloads in the dir and upon completion put all the files inside zip and save the structure with file size inside a tree.txt. Does this for all txt present in path.
for file in ./* ; do
dir=$(basename $file .txt)
mkdir $dir
cd $dir
wget -i "../${file}"
tree -h -D -o "${dir}_tree.txt" .
zip -r "${dir}.zip" .
rm *.pdf
cd ..
dir=""