Skip to content

Instantly share code, notes, and snippets.

View jose-compu's full-sized avatar
🔬
Focusing.

José I. O. jose-compu

🔬
Focusing.
View GitHub Profile
@jose-compu
jose-compu / microgpt.py
Created February 17, 2026 09:12 — forked from karpathy/microgpt.py
microgpt
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp

Keybase proof

I hereby claim:

  • I am jose-blockchain on github.
  • I am jose_blockchain (https://keybase.io/jose_blockchain) on keybase.
  • I have a public key ASC9eutcEaU5fzrdC1hk0JbZLs64H2G7RnztQb2ETKS1yQo

To claim this, I am signing this object:

@jose-compu
jose-compu / README.md
Last active April 18, 2023 16:53 — forked from empeje/README.md
Mini sBTC project mindmap
mindmap
  root((Mini sBTC))
    Projects
      2 Step Escrow Transaction Support Library #151
      Bitcoin Transaction Library #152
      Controller Contract #153
      Disbursement Clarity API #154
      Peg Web application sBTC Bridge #155
 Peg-In Clarity API #156
@jose-compu
jose-compu / vimeo_download_subtitles.md
Created January 1, 2022 17:04 — forked from pjmartorell/vimeo_download_subtitles.md
How to download subtitles/text tracks of a On Demand Vimeo video

Download subtitles/text tracks of an On-Demand Vimeo video

It works with on-demand videos that have the subtitles/captions included (CC symbol). You need to be registered in Vimeo in order to retrieve subtitles.

Steps

  1. Open Chrome Developer Tools
  2. Start playing the Vimeo video
  3. Look for any request named segment-XX.m4s (where XX is a number)
  4. Select the request and inspect the request payload, which is something in the form:
@jose-compu
jose-compu / BLSExample.sol
Created December 16, 2021 14:27 — forked from BjornvdLaan/BLSExample.sol
Verification of BLS signatures and BGLS aggregate signatures in Ethereum
pragma solidity ^0.4.14;
/*
Example of how to verify BLS signatures and BGLS aggregate signatures in Ethereum.
Signatures are generated using https://github.com/Project-Arda/bgls
Code is based on https://github.com/jstoxrocky/zksnarks_example
*/
contract BLSExample {
@jose-compu
jose-compu / signing-vbox-kernel-modules.md
Last active November 23, 2020 12:38 — forked from reillysiemens/signing-vbox-kernel-modules.md
Signing VirtualBox Kernel Modules for UBUNTU 18 and 20

Signing VirtualBox Kernel Modules

These are the steps I followed enable VirtualBox on my laptop without disabling UEFI Secure Boot. They're nearly identical to the process described on [Øyvind Stegard's blog][blog], save for a few key details. The images here are borrowed from the [Systemtap UEFI Secure Boot Wiki][systemtap].

  1. Install the VirtualBox package (this might be different for your platform).
    src='https://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo'
@jose-compu
jose-compu / wine416_staging__dotnet416_devpack.md
Last active November 20, 2020 22:23 — forked from diyan/wine416_staging__dotnet416_devpack.md
WORKS. Setup Wine 4.16 Staging, winetricks, .NET 4.6.1 Developer Pack, NuGet. Compile ASP.NET Web Forms Web Site using Wine/MSBuild
FROM debian:9.11
# Wine on Debian 9, see https://wiki.winehq.org/Debian
# Winetricks, see https://wiki.winehq.org/Winetricks#Installing_winetricks
# WINEDEBUG=-all to suppress Wine debug output
# .NET Runtime via Winetricks, install sequence:
#   v4.0 on WinXP, v4.5 on Win7, v4.6 on Win2003, v4.6.1 on Win7.
RUN set -x \
    && tempDeps='software-properties-common apt-transport-https gnupg wget curl cabextract' \
    && apt-get update \
60606040526000600560006101000a81548160ff0219169083151502179055506000600560016101000a81548160ff0219169083151502179055506000600560026101000a81548160ff0219169083151502179055506000600560036101000a81548160ff02191690831515021790555034156200007c57600080fd5b5b73d889caa9847f64c77118ad5ec60291525a3d3939600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506200019560036000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600860ff16600a0a620f424002600f02600860ff16600a0a620f424002600f02600860ff16600a0a620f424002605002600860ff16600a0a620f424002609602030303620002e264010000000002620010b2176401000000009004565b60036000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600860ff16
0xB7A86A3d8FFc8D295c677ea694D537438604d5B2
0xB7A86A3d8FFc8D295c677ea694D537438604d5B2