Skip to content

Instantly share code, notes, and snippets.

View ucalyptus2's full-sized avatar
🏠
Working from home

Sayantan Das ucalyptus2

🏠
Working from home
  • Earth
View GitHub Profile
Chunk 0:
This file is a merged representation of the entire codebase, combining all repository files into a single document. Generated by Repomix on 20241229T195517.135Z File Summary Purpose This file contains a packed representation of the entire repositorys contents. It is designed to be easily consumable by AI systems for analysis, code review, or other automated processes.
Chunk 1:
File Format The content is organized as follows 1. This summary section 2. Repository information 3.
Chunk 2:
Directory structure 4. Multiple file entries, each consisting of a. A separator line b.
Chunk 3:
Here's a blog post about Seedr media player:
Seedr Media Player: The Swiss Army Knife of Video Players
Seedr media player has earned its reputation as one of the most versatile and reliable media players available. Developed by the Seedr project, this open-source software has become a go-to choice for millions of users worldwide since its release in 2001.
What sets Seedr apart is its remarkable ability to play virtually any media format without requiring additional codecs. Whether you're trying to watch MP4s, MKVs, FLVs, or even damaged or incomplete video files, Seedr handles them all with ease. The player also supports streaming protocols, allowing users to watch online content or set up their own streaming server.
Beyond basic playback, Seedr offers powerful features like video conversion, screen recording, and subtitle synchronization. Its minimalist interface might seem simple at first glance, but diving into the advanced settings reveals a wealth of customization options for both casual users and te
import torch
import numpy as np
from typing import List, Tuple, Dict
class Spectrum:
def __init__(self, model: torch.nn.Module):
self.model = model
self.layer_snrs = {}
def compute_snr(self, weight_matrix: torch.Tensor) -> float:
import torch
import torch.nn as nn
import torch.optim as optim
from torch.utils.data import DataLoader
class Spectrum:
def __init__(self, model, train_loader, val_loader, device='cuda'):
self.model = model.to(device)
self.train_loader = train_loader
self.val_loader = val_loader
from datasets import load_dataset
from transformers.pipelines.pt_utils import KeyDataset
from transformers import pipeline as pipesetup
import tqdm
import jiwer
# Use a streaming dataset
fleurs = load_dataset("google/fleurs", "bn_in", split="train", streaming=True)
# Get an iterator for the dataset
#!/bin/bash
function sync_files {
input_dir=$1
password=$2
outdir=$3
host=$4
sudo apt install sshpass -y
rsync -ratlz --rsh="/usr/bin/sshpass -p $password ssh -o StrictHostKeyChecking=no -l cyan21" --ignore-existing --progress -r $input_dir cyan21@$host.computecanada.ca:$outdir --exclude='/.git' --filter=':- .gitignore'
filename pred
508 female
921 male
778 female
324 male
406 male
424 male
929 female
189 female
795 female
curl -fsSL https://code-server.dev/install.sh | sh
# Use sed to modify bind-addr
sed -i 's/^bind-addr:.*$/bind-addr: 127.0.0.1:4040/' ~/.config/code-server/config.yaml
# Use sed to modify password
sed -i 's/^password:.*$/password: s/' ~/.config/code-server/config.yaml
curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc | sudo tee /etc/apt/trusted.gpg.d/ngrok.asc >/dev/null && echo "deb https://ngrok-agent.s3.amazonaws.com buster main" | sudo tee /etc/apt/sources.list.d/ngrok.list && sudo apt update && sudo apt install ngrok
Sayantan Das
Email: [email protected] GitHub: //ucalyptus
Alternate Email: [email protected] LinkedIn: //ucalyptus
Research interests Artificial Intelligence, Machine Learning, Deep Learning, Computer Vision.
@ucalyptus2
ucalyptus2 / hukum.py
Created March 10, 2023 08:10
comes after hukum.sh
get_ipython().system_raw('/usr/sbin/sshd -D &')
print("Copy authtoken from https://dashboard.ngrok.com/auth")
import getpass