Skip to content

Instantly share code, notes, and snippets.

View tuananh's full-sized avatar
☁️
Head of Tech Platform @ VPBank. AWS Community Builder

Tuan Anh Tran tuananh

☁️
Head of Tech Platform @ VPBank. AWS Community Builder
View GitHub Profile
@tuananh
tuananh / Dockerfile
Created March 6, 2025 05:56 — forked from michaelkosir/Dockerfile
An example Python web application distroless image using uv. An extremely fast Python package and project manager, written in Rust.
# Stage 0
# Installs dependencies and builds the application
# Artifacts will be copied to the final image
FROM debian:12-slim AS build
ARG PYTHON_VERSION="3.13"
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin
ENV UV_COMPILE_BYTECODE="1"
@tuananh
tuananh / output.md
Last active February 26, 2025 03:39
xlarge & 2xlarge, low interruption rate, sort by saving rate desc in ap-southeast-1 (singapore)
Instance Type Saving Rate (%) Interruption Rate
d3en.xlarge 71 1
is4gen.xlarge 70 1
im4gn.xlarge 67 1
r3.xlarge 66 1
g5g.2xlarge 61 1
r7gd.xlarge 60 1
g5g.xlarge 60 1
m7gd.xlarge 58 1
@tuananh
tuananh / ycombinator-w24-ai-companies.md
Created February 23, 2025 02:08
Y Combinator W24 AI Companies

YCombinator W24 AI Companies

Company Name Company Description Segment Subsegment Company Details Page Tag 1 Tag 2
Abel Transforming law firm document review workflows Application Vertical https://www.ycombinator.com/companies/abel B2B LEGAL
Adagy Robotics Rescuring robots Application Vertical https://www.ycombinator.com/companies/adagy-robotics
Aedilic Faster, cheaper drone delivery. Application Horizontal / Functional https://www.ycombinator.com/companies/aedilic B2B
Aether Energy AI design and workflow software for solar installers worldwide Application Vertical https://www.ycombinator.com/companies/aether-energy B2B ENGINEERING, PRODUCT AND DESIGN
AgentHub A no-code platform for automating workflows with AI Application Horizontal / Functional https://www.ycombinator.com/companies/agenthub B2B
Agentic Labs AI system design tools for
@tuananh
tuananh / log.txt
Created November 24, 2024 00:52
docker history of quay.io/fedora/fedora-bootc:41
IMAGE CREATED CREATED BY SIZE COMMENT
3dad097ec28e 13 hours ago Reserved for new packages 45B
<missing> 13 hours ago initramfs (kernel 6.11.8-300.fc41.x86_64) an… 133MB
<missing> 13 hours ago 11 components 23.1MB
<missing> 13 hours ago 22 components 54.7MB
<missing> 13 hours ago 17 components 6.49MB
<missing> 13 hours ago 22 components 11.2MB
<missing> 13 hours ago 22 components 11.6MB
<missing> 13 hours ago 22 components 10.9MB
<missing> 13 hours ago 22 components 11.8MB
@tuananh
tuananh / main.js
Last active October 2, 2024 12:24
Go to first commit of GitHub repo
async function goToFirstCommit(owner, repo) {
const headers = {
"Accept": "application/vnd.github.v3+json",
// Optional: Add authorization if you hit the rate limit (use a personal access token)
// "Authorization": "Bearer YOUR_GITHUB_TOKEN"
};
const repoInfo = await fetch(`https://api.github.com/repos/${owner}/${repo}`, { headers });
const repoData = await repoInfo.json();
@tuananh
tuananh / README.md
Last active April 16, 2024 05:47
i3blocks script to toggle warp on/off

This is a tiny script to toggle Cloudflare Warp on/off.

  • warp-cli status output is changing, unreliable to grep/awk. So I just use https://cloudflare.com/cdn-cgi/trace endpoint.
  • -z "$BLOCK_BUTTON" check is performed in order to see if it's a block click or not.
@tuananh
tuananh / starship.toml
Created April 2, 2024 10:05
starship prompt
format = """\
[ ](bg:#7DF9AA fg:#7DF9AA)\
[󰣇 ](bg:#7DF9AA fg:#090c0c)\
[](fg:#7DF9AA bg:#1C3A5E)\
$time\
[](fg:#1C3A5E bg:#3B76F0)\
$directory\
[](fg:#3B76F0 bg:#FCF392)\
$git_branch\
$git_status\
@tuananh
tuananh / readme.md
Created March 14, 2024 08:50
Ubuntu: how to change tty resolution at boot

Edit /etc/default/grub file

sudo nano /etc/default/grub

Edit the GRUB_CMDLINE_LINUX_DEFAULT flag to add nomodeset and vga=795. Change vga modeset accordingly. You can reference the table below.

Color Depth 800x600 1024x768 1152x864 1280x1024 1600x1200
@tuananh
tuananh / starship.toml
Created February 23, 2024 14:00
My starship.toml configuration
format = """\
[ ](bg:#7DF9AA fg:#7DF9AA)\
[󰣇 ](bg:#7DF9AA fg:#090c0c)\
[](fg:#7DF9AA bg:#1C3A5E)\
$time\
[](fg:#1C3A5E bg:#3B76F0)\
$directory\
[](fg:#3B76F0 bg:#FCF392)\
$git_branch\
$git_status\