Skip to content

Instantly share code, notes, and snippets.

View apoorvagnihotri's full-sized avatar
🚀
Moonshots!

Apoorv Agnihotri apoorvagnihotri

🚀
Moonshots!
View GitHub Profile
import sys
import requests
base_url = "https://x.company/media/images/home/timeline/"
count = 0
tol = 20
for i in range(200):
try:
file_url = base_url + str(i) + '.jpg'
@apoorvagnihotri
apoorvagnihotri / gloud-install.sh
Created January 3, 2019 18:50
gcloud-install.sh
# Create environment variable for correct distribution
export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)"
# Add the Cloud SDK distribution URI as a package source
echo "deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
# Import the Google Cloud Platform public key
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
# Update the package list and install the Cloud SDK

This is a README for setting up Ubuntu 18.04 on a laptop that has Nvidia Graphics Card. Use install-gpu.sh.

Note: Use this at your own risk. :)

First:

  • To install an ubuntu, do the usual UEFI ISO buring on the USB.
  • When booting from the live USB, follow the step given here(Dealing with the Open-Source version of graphic card drivers and replacing them with Nvidia drivers).
  • After booting into the Ubuntu after the OS installation. Follow steps here to install the Nvidia Drivers found on ppa, repository of ubuntu. Steps linked here