Skip to content

Instantly share code, notes, and snippets.

View supriya-premkumar's full-sized avatar
:octocat:
Making bits go brrrrrrr

Supriya Premkumar supriya-premkumar

:octocat:
Making bits go brrrrrrr
View GitHub Profile
@supriya-premkumar
supriya-premkumar / git.md
Last active December 1, 2019 00:26
Git cheat sheet

Configure a remote for a fork

1. List configured current repository
git remote -v

> origin  https://github.com/YOUR_USERNAME/YOUR_FORK.git (fetch)
> origin  https://github.com/YOUR_USERNAME/YOUR_FORK.git (push)


2. Configuring remote for a fork
@supriya-premkumar
supriya-premkumar / nrel-data.py
Created November 6, 2018 19:52
Query NREL weather data
import pandas as pd
import numpy as np
import sys, os
# Our SLAC!
lat, lon, year = 37.420191, -122.204551, 2015
# NSRDB API KEY
api_key = <API KEY>
# Set the attributes to extract (e.g., dhi, ghi, etc.), separated by commas.
@supriya-premkumar
supriya-premkumar / dockerCheatSheet.md
Last active January 4, 2023 11:29
Docker Commands
@supriya-premkumar
supriya-premkumar / GCP-CLI.md
Last active February 1, 2018 19:51
GCP-CLI.md

Connect to the remote VM
gcloud compute --project "<Project-Name>" ssh --zone "us-central1-a" "<Instance-Name>"

Copy a file from local to remote VM
gcloud compute scp ~/Desktop/test.csv datacommons:~/REMOTE-DIR --zone us-central1-a

Copy a folder from local to remote VM
gcloud compute scp --recurse ~/test :~/ --zone us-central1-a

@supriya-premkumar
supriya-premkumar / conda-commands.md
Last active November 1, 2024 12:59
Conda Commands

Conda Commands

Install Anaconda Link: https://www.continuum.io/downloads

  1. Check/List installed packages:
    Conda list

  2. Upgrade Conda packages:
    conda upgrade conda conda upgrade --all

@supriya-premkumar
supriya-premkumar / Jupyter Kernels.md
Last active June 27, 2017 20:28
Adding Python2 and Python3 kernels in Jupyter Notebook

Check Jupyter Kernel Spec List

jupyter kernelspec list
Which displays available python version in the jupyter kernel

Adding Python2 to the Jupyter Kernel

python2.7 -m pip install --upgrade ipykernel
python2.7 -m ipykernel install

@supriya-premkumar
supriya-premkumar / AWS CLI on MAC.md
Last active March 7, 2017 19:51
Documentation of AWS CLI Installation on Mac

#Install AWS CLI on MAC

Open Terminal on MAC

  1. Check for python version on your Mac

    Run python --version

    For Python 2 version: 2.6.5+