Skip to content

Instantly share code, notes, and snippets.

View danhtran94's full-sized avatar
🐰
Eat carrots 🥕

Danh Tran Thanh danhtran94

🐰
Eat carrots 🥕
View GitHub Profile
@danhtran94
danhtran94 / PKPass.md
Created June 21, 2025 20:04 — forked from rlanyi/PKPass.md
How to create Apple PKPass .p12 certificate using Linux

How to create Apple PKPass .p12 certificate using Linux

You don't need a Mac to do this :-)

For generating PKPass files, you'll need 4 things after this tutorial:

  • Certificate Identifier (pass.com.example.www)
  • Team Identified (Organizational Unit (OU) in the cert generated by Apple)
  • The .p12 file
  • The password for the .p12 file
@danhtran94
danhtran94 / introrx.md
Created May 24, 2025 14:00 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@danhtran94
danhtran94 / 0-README.md
Created April 17, 2025 04:43 — forked from rvanbaalen/0-README.md
Automatic Actions framework for Claude AI. Copy/paste into the Developer Tools of Claude desktop app.

Claude Auto-Actions Framework

A lightweight, extensible framework for automating interactions within the Claude AI interface.

Overview

This framework allows you to automate repetitive actions in Claude's UI by defining custom "actions" that execute when specific conditions are met. It uses a mutation observer to monitor DOM changes and triggers your defined actions automatically.

Features

@danhtran94
danhtran94 / repository.ts
Created September 1, 2024 23:02 — forked from cayter/LICENSE
Drizzle ORM Type-Safe Repository With PgTable
import { startSpan } from "@sentry/remix";
import type { StartSpanOptions } from "@sentry/types";
import {
type AnyColumn,
type AnyTable,
type BuildQueryResult,
type DBQueryConfig,
type DrizzleTypeError,
type Equal,
type ExtractTablesWithRelations,
@danhtran94
danhtran94 / manifests.yaml
Created March 21, 2024 04:10 — forked from alexeldeib/manifests.yaml
crictl image cleanup
apiVersion: v1
kind: ConfigMap
metadata:
name: imagecleanupconfig
namespace: default
labels:
component: imagecleanup
data:
# removes all images unused by a running container
cronjobs: 0 0 * * * crictl rmi --prune 2>&1
@danhtran94
danhtran94 / render fonts
Last active April 24, 2020 17:27
render fonts
http://www.linuxfromscratch.org/blfs/view/8.3/general/freetype2.html
https://github.com/achaphiv/ppa-fonts/blob/master/ppa/README.md
@danhtran94
danhtran94 / install-graphics.sh
Created April 22, 2020 14:04
graphic drivers ubuntu
sudo -s -- << EOF
sudo add-apt-repository ppa:oibaf/graphics-drivers
sudo apt update
sudo apt upgrade
sudo reboot
EOF
@danhtran94
danhtran94 / git-cleanup.txt
Last active July 5, 2019 07:02
git cleanup
git branch --merged master | grep -v '^[ *]*master$' | xargs git branch -d
git remote prune origin --dry-run
http://www.mocky.io/v2/5ca707a5340000012f76b27b