Skip to content

Instantly share code, notes, and snippets.

View rodabt's full-sized avatar

Rodrigo Abt rodabt

View GitHub Profile
@rodabt
rodabt / microgpt.py
Created February 22, 2026 04:07 — 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
@rodabt
rodabt / DuckDB_in_Databricks.ipynb
Created October 13, 2025 12:24 — forked from mniehoff/DuckDB_in_Databricks.ipynb
How to use DuckDB in Databricks to process data stored in Databricks Unity Catalog. https://www.codecentric.de/wissens-hub/blog/access-databricks-unitycatalog-from-duckdb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rodabt
rodabt / backup_digitalocean.md
Created January 2, 2025 18:52 — forked from amalmurali47/backup_digitalocean.md
Backup DigitalOcean droplet locally

DigitalOcean does not provide a way to download a snapshot of your droplet locally. You can use rsync to accomplish this instead.

On your local machine, assuming you have added your-server in your SSH config:

rsync -aAXHv --append-verify --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} your-server:/
  • -a : archive mode (all files, with permissions, etc.)
  • -A : preserve ACLs/permissions (not included with -a)
@rodabt
rodabt / resume.json
Last active May 28, 2024 18:14
My Resume From LinkedIn
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Rodrigo Abt",
"label": "Head of Data | Data Scientist | Data Strategist",
"email": "rodrigo.abt@gmail.com",
"summary": "With over 20 years of total experience and over 15 in advanced analytics, I've been developing solutions and data products in the fields of Data Science, Analytics, and Databases. I have a Diplom in Business Intelligence from Universidad de Chile and certifications in Machine Learning, Python, and Databases.\n\nMy mission is to develop incremental, actionable, and decision-driven data analytics products and enable advanced analytics capabilities in companies, at low cost, with modern methodologies and paradigms. I have designed and implemented information strategies and end-to-end advanced analytics solutions for various industries, such as Electric, Automotive, Retail, FMCG, Government, and Education. I have experience with Data Architectures, Machine Learni
@rodabt
rodabt / Oracle Instant Client on Debian or Ubuntu
Created May 23, 2023 16:30 — forked from phartenfeller/Oracle Instant Client on Debian or Ubuntu
Install an oracle instant client on a Debian or Ubuntu linux
apt-get install -y libaio1 alien
# Change version based on https://www.oracle.com/de/database/technologies/instant-client/linux-x86-64-downloads.html
# Example alternative: http://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/getPackage/oracle-instantclient19.5-basiclite-19.5.0.0.0-1.x86_64.rpm
wget http://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/getPackage/oracle-instantclient19.6-basic-19.6.0.0.0-1.x86_64.rpm
sudo alien -i --scripts oracle-instantclient*.rpm
rm -f oracle-instantclient*.rpm
# Optionally install SQLPlus
wget http://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/getPackage/oracle-instantclient19.6-sqlplus-19.6.0.0.0-1.x86_64.rpm
sudo alien -i --scripts oracle-instantclient*.rpm
@rodabt
rodabt / px-rem-tw.csv
Created November 1, 2021 23:23 — forked from trevorgreenleaf/px-rem-tw.csv
PX to REM'S to TAILWIND CSS
PX REM TW
4 0.25 1
8 0.5 2
16 1 4
32 2 8
48 3 12
64 4 16
80 5 20
96 6 24
112 7 28
@rodabt
rodabt / gist:cd09e703a61829a338294660fd842e5c
Created October 31, 2021 17:59 — forked from BjornDCode/gist:5cb836a6b23638d6d02f5cb6ed59a04a
Tailwind - Fixed sidebar, scrollable content
// Source: https://twitter.com/calebporzio/status/1151876736931549185
<div class="flex">
<aside class="h-screen sticky top-0">
// Fixed Sidebar
</aside>
<main>
// Content
</main>
@rodabt
rodabt / dv.py
Last active January 8, 2019 12:37
Función de una línea para dígito verificador de RUT en Python
def dv(n):
return 'K' if (11-sum([int(j)*(i%6+2) for i,j in enumerate(str(n)[::-1])])%11)%11==10 else (11-sum([int(j)*(i%6+2) for i,j in enumerate(str(n)[::-1])])%11)%11

Keybase proof

I hereby claim:

  • I am rodabt on github.
  • I am rodabt (https://keybase.io/rodabt) on keybase.
  • I have a public key whose fingerprint is 4A0A 83CA 08C9 2929 E34A 56C3 1508 AE6A D4CA 198E

To claim this, I am signing this object: