Skip to content

Instantly share code, notes, and snippets.

View AnmolTomer's full-sized avatar
💻
Learning

Anmol Tomer AnmolTomer

💻
Learning
View GitHub Profile
  • 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
@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
Add in settings.json
"python.linting.pylintArgs": ["--generate-members"]
https://stackoverflow.com/questions/51593147/cv2-python-has-no-imread-member

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/

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```
@AnmolTomer
AnmolTomer / speedtest_cli.md
Last active November 2, 2019 11:09
fast.com or Ookla speedtest on CLI - nice and easy :-)

Ubuntu

export INSTALL_KEY=379CE192D401AB61
# Ubuntu versions supported: xenial, bionic
# Debian versions supported: jessie, stretch, buster
export DEB_DISTRO=$(lsb_release -sc)
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $INSTALL_KEY
echo "deb https://ookla.bintray.com/debian ${DEB_DISTRO} main" | sudo tee  /etc/apt/sources.list.d/speedtest.list
sudo apt-get update
import os
path = input("Enter source path:")
images = os.listdir(path)
print(images)
for f in images:
if(".jpg" in f[-4:]):
src = path
if(f[0]=="0"):
dst = src + '/8' + f[1:]
import os
path = "/home/cosmic/Desktop/Sem-3/Events/Technocrats/Rover/vid_2/video_wise_frames/Done/img_folder_1_annotated/"
files = os.listdir(path)
for file in files:
if('.jpg' in file[-4:]):
filename = file[:-4]
txtFile = filename + '.txt'
if not (txtFile in files):
# print()