Skip to content

Instantly share code, notes, and snippets.

View Syzygianinfern0's full-sized avatar
:dependabot:
sudo apt-get rekt

S P Sharan Syzygianinfern0

:dependabot:
sudo apt-get rekt
View GitHub Profile
@Syzygianinfern0
Syzygianinfern0 / Environements.md
Last active July 25, 2021 18:24
OpenAI Gym Environements

Classic Control

Name State Action
Acrobot-v1 Box(6) Discrete(3)
CartPole-v1 Box(4) Discrete(2)
MountainCar-v0 Box(2) Discrete(3)
MountainCarContinuous-v0 Box(2) Box(1)
Pendulum-v0 Box(1) Box(3)

Box 2D

@Syzygianinfern0
Syzygianinfern0 / sharded_mnist.py
Created July 29, 2021 10:38
Model Sharding - PyTorch
import argparse
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torch.optim.lr_scheduler import StepLR
from torchvision import datasets, transforms
@Syzygianinfern0
Syzygianinfern0 / 0 - A Diary of my Preparation for Higher Education.md
Last active May 25, 2022 05:08
A Diary of my Preparation for Higher Education
@Syzygianinfern0
Syzygianinfern0 / 0-Quick-Code-Snippets.md
Last active September 4, 2021 12:50
Quick Code Snippets

Quick Code Snippets

I have a bunch of useful code snippets I use quite frequently. I log them all here.

@Syzygianinfern0
Syzygianinfern0 / install_stow.sh
Last active June 9, 2025 07:21
Install stow without root
#!/bin/bash
# Its better to run each line in this bash script line by line rather than at a
# stretch cuz its not that good. It also creates ~/.ctan ~/perl5 and a few lines
# in the ~/.(bash/zsh)rc for fixing the perl5 paths. So I dont really like this
# script cuz its too invasive for me. But if there is no other option, I would
# run it. Or just make an alias or a Makefile with a bunch of ln -s commands for
# the project you wanna use stow for.
set -euo pipefail
@Syzygianinfern0
Syzygianinfern0 / Credit Cards.md
Last active October 2, 2022 02:59
Random information from random sources and own research about credit cards in USA

Do Your Own Research FFS

@Syzygianinfern0
Syzygianinfern0 / sort_spotify.py
Created October 29, 2022 23:32
Sort Spotify Playlists by Followers/Likes
import spotipy
from spotipy.oauth2 import SpotifyClientCredentials
sp = spotipy.Spotify(
auth_manager=SpotifyClientCredentials(
client_id="",
client_secret="",
),
)
@Syzygianinfern0
Syzygianinfern0 / sm-litv2.ipynb
Last active April 10, 2023 03:24
Install LITv2
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Syzygianinfern0
Syzygianinfern0 / .pre-commit-config.yaml
Last active May 22, 2023 13:19
My personal pre commit config!
exclude: "cliport/environments/assets/"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
args: ["--maxkb=10240"] # 10MB
@Syzygianinfern0
Syzygianinfern0 / install_age.sh
Last active June 27, 2023 02:12
Install Age
#!/bin/bash
if [[ $(uname) == "Linux" ]] && [[ $(uname -m) == "x86_64" ]]; then
wget --content-disposition https://dl.filippo.io/age/latest?for=Linux/amd64
elif [[ $(uname) == "Darwin" ]]; then
wget --content-disposition https://dl.filippo.io/age/latest?for=$(uname)/$(uname -m)
else
echo "Error: Unsupported OS"
fi
tar xvf age-*.tar.gz