Skip to content

Instantly share code, notes, and snippets.

View JacobFV's full-sized avatar
🧑‍💻
Building the thing

Jacob Valdez JacobFV

🧑‍💻
Building the thing
View GitHub Profile
@JacobFV
JacobFV / README.md
Last active September 16, 2024 08:47
open1

open1

This is a start. It doesn't work atm.

Running

$ python open1.py --epochs 3 --use_mcts --multi_agent --progressive_training --visualize

2024-09-16 07:51:04.977649: I tensorflow/core/util/port.cc:153] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
@JacobFV
JacobFV / dont_raise_until_done.py
Created May 17, 2024 18:44
Collect all the errors in a block of code before raising
import traceback
class DontRaiseUntilDone:
def __init__(self):
self.exceptions = []
def __enter__(self):
return self
def __exit__(self, exc_type, exc_val, exc_tb):
@JacobFV
JacobFV / README.md
Last active April 21, 2024 15:35
huggingface_to_s3

Hugging Face Repository to S3 Transfer Script

This Python script allows you to transfer files from a Hugging Face repository to an Amazon S3 bucket. It iterates over all the files in the specified repository, downloads them one at a time, and uploads them to the designated S3 bucket.

Prerequisites

Before running the script, ensure that you have the following:

  • choose the aws linux ami with 10kIOPS and IO2 storage. make sure you can https out and ssh in
from celery import Celery
from enum import Enum
from sqlmodel import SQLModel, Field, create_engine, Session
from datetime import datetime, timedelta
from sqlalchemy.exc import SQLAlchemyError
from contextlib import contextmanager
import threading
import time
from loguru import logger
from sqlalchemy import Enum as SQLEnum

Ubuntu 22.04 for Deep Learning

In the name of God

This gist contains steps to setup Ubuntu 22.04 for deep learning.


Install Ubuntu 22.04

@berkorbay
berkorbay / github_desktop_ubuntu.md
Last active May 6, 2025 14:31
To install Github Desktop for Ubuntu

IMPORTANT

See the following links for further updates to Github Desktop for Ubuntu. These are official instructions. (also mentioned by fetwar on Nov 3, 2023)

For the sake of "maintaining the tradition" here is the updated version.

@1wErt3r
1wErt3r / SMBDIS.ASM
Created November 9, 2012 22:27
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger ([email protected])
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no