Skip to content

Instantly share code, notes, and snippets.

View sanzgiri's full-sized avatar

Ashutosh Sanzgiri sanzgiri

View GitHub Profile
@sanzgiri
sanzgiri / colab_setup.py
Last active December 25, 2022 00:11
Colab_Startup_File
# Borrowed from https://gist.githubusercontent.com/aseifert/3e2089f673a795029d46e625a46fffbb/raw/setup-colab.py
import json
import os
from getpass import getpass
from pathlib import Path
from typing import Dict, List, Optional, Union
from IPython.display import display, HTML, JSON
@sanzgiri
sanzgiri / wordle.md
Created March 21, 2022 00:12 — forked from huytd/wordle.md
Wordle in less than 50 lines of Bash

image

How to use:

./wordle.sh

Or try the unlimit mode:

# Install runner for Mac as per instructions
mkdir actions-runner && cd actions-runner
curl -O -L https://github.com/actions/runner/releases/download/v2.267.1/actions-runner-osx-x64-2.267.1.tar.gz
tar xzf ./actions-runner-osx-x64-2.267.1.tar.gz
./config.sh --url https://github.com/sanzgiri/action-numerai --token <your-token>
# Self-hosted runner on Mac
sudo mkdir /Users/runner
sudo chmod 777 runner
cd runner
import json
import os
import os.path
import posixpath
import subprocess
from urllib import request

import pandas as pd
import psutil
@sanzgiri
sanzgiri / git-lfs.md
Last active January 17, 2020 23:51
Removing a large file from git repo and adding via LFS
git filter-branch --tree-filter 'rm -rf </path/to/large_file' HEAD
git commit -m "removing large file"
git push origin master

curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
sudo apt-get install git-lfs
git lfs install
git lfs track </path/to/large_file>
git commit -m "adding large file" .
### Remote Training
* https://github.com/aws-robotics/aws-robomaker-sample-application-deepracer
* https://github.com/crr0004/deepracer
### Gym Environment
* https://github.com/mtmoncur/deepracer_env
### Sample Reward Functions
* https://github.com/scottpletcher/deepracer