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 / README.md
Last active March 26, 2024 05:27
Ebay Average Selling Price Statistics

Ebay Average Selling Price Statistics

This repository contains two versions of a JavaScript script designed to analyze and display statistical information about prices listed on ebay. The script extracts prices using a specific CSS selector, calculates statistical measures such as the minimum, maximum, average, median, and mode prices, and filters out outliers.

Important

THIS ONLY WORKS FOR SOLD/COMPLETED LISTINGS

Versions

There are two versions of the script:

@Syzygianinfern0
Syzygianinfern0 / log_wandb.py
Created July 30, 2023 01:04
Initialize wandb and import to setup notification system
import wandb
def init_wandb(project, name=None, notes=None, config=None):
wandb.login()
run = wandb.init(
project=project,
name=name,
notes=notes,
config=config,
@Syzygianinfern0
Syzygianinfern0 / is_being_debugged.py
Created July 27, 2023 22:45
Find out if python code is being executed by a debugger
import sys
def is_being_debugged():
return sys.gettrace() is not None
if is_being_debugged():
print("The script is being debugged")
else:
@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
@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 / sm-litv2.ipynb
Last active April 10, 2023 03:24
Install LITv2
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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 / 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 / install_stow.sh
Last active May 6, 2024 08:17
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 / 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.