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 / 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 / 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 / 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 / memoizer.py
Last active April 30, 2021 14:44
Memoization in Python
import time
import numpy as np
class Memoize:
def __init__(self, fn):
self.fn = fn
self.memo = {}
@Syzygianinfern0
Syzygianinfern0 / .p10k.zsh
Created March 1, 2021 16:53
Powerline Configs
# Generated by Powerlevel10k configuration wizard on 2020-09-27 at 01:18 IST.
# Based on romkatv/powerlevel10k/config/p10k-lean.zsh, checksum 47471.
# Wizard options: nerdfont-complete + powerline, small icons, unicode, lean, 12h time,
# 2 lines, dotted, left frame, light-ornaments, sparse, many icons, fluent,
# transient_prompt, instant_prompt=verbose.
# Type `p10k configure` to generate another config.
#
# Config for Powerlevel10k with lean prompt style. Type `p10k configure` to generate
# your own config based on it.
#
@Syzygianinfern0
Syzygianinfern0 / clone.sh
Created March 1, 2021 16:11
Rclone Ignores
rclone check -P --drive-server-side-across-configs \
--log-file=/home/user/Documents/Random/rclone_logs/"$(date +"%Y_%m_%d_%I_%M_%p").log" \
--log-level INFO \
--exclude-if-present rcignore \
--exclude-from "/mnt/nvme0n1p5/Studies/Semester 6/rcignore-list" \
"/mnt/nvme0n1p5/Studies/Semester 6" "__quack:Studies/Semester 6/"
@Syzygianinfern0
Syzygianinfern0 / extract.sh
Created March 1, 2021 16:10
Extract Multipart Zips
zip -s- FILE_NAME.zip -O COMBINED_FILE.zip
@Syzygianinfern0
Syzygianinfern0 / post_it.py
Created February 21, 2021 12:02
Post to SXCU.NET
# Head over to https://sxcu.net/
# Create a subdomain
# Run script
# Replace returned sxcu.net base-url by the one you requested
# Profit
import os
import pprint
import requests
@Syzygianinfern0
Syzygianinfern0 / tmux-cheatsheet.markdown
Created August 30, 2020 04:25 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
<mxfile host="app.diagrams.net" modified="2020-10-16T04:53:57.971Z" agent="5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36" etag="0v1r6DdWemNUy2TWQ8kH" version="13.8.0" type="device"><diagram id="iGWFmQ01a8dNWYouVAQU" name="Page-1">7V1Zc5tIEP41qvI+WAWMuB5t+chuxVmX5a3s60iMJMocCqDYzq/fGW5o7GizgpaHTSUR6kECff31TF/AhMz9l9uI7rZ3ocO8iaY4LxNyNdE0TbdV/iIkr5nENGeZYBO5TiZSK8HC/cFyoZJL967D4saOSRh6ibtrCldhELBV0pDRKAqfm7utQ6951B3dMCBYrKgHpV9dJ9nmUtWwq4FPzN1s80NbmpEN+LTYOf8l8ZY64XNNRK4nZB6FYZJt+S9z5gnwClyyz928MVqeWMSC5JAP/EHMR/vPL/qD/feD42+CT+QyObet7Gu+U2+f/+L8bJPXAoLnrZuwxY6uxPtnruYJudwmvsffqXyTxrsM+LX7wvixLkO+q5sIfZsKfwvPMz/17yxK2EtNlJ/3LQt9lkSvfJd89LzAMCeRVpDouVKJaeX7bGvaKIU0p8Gm/O4KKb6Rg/UvgFN/jlsU7gNHIJLC9BMU167nzUMvjNLPEocya73i8jiJwidWGzFWFluuj4MraeE6UxSAaxess75Q1QCqi+njlEvmoe/HUwAx/51JE8cmXkEYsBa4uYh67ibgb1ccPcbllwI1l9v9RT7gu44jDtOpuEq1R2I40IR6mCa0vjSh98xvnVnOrIvflrYkhnEcVFVdb6Bq2HDeKJEehOAGgPXK3bgJFR9ccOKlG/dRuGJxHEaxOIXA4f9f7HYeZ2fihoEQnvN/1/P7uVC/ckZ+y0V3wlQutzR+opG