Skip to content

Instantly share code, notes, and snippets.

View sangdth's full-sized avatar
📖
Docendo discimus

Sang Dang sangdth

📖
Docendo discimus
View GitHub Profile
set noshowmode
set noruler
autocmd ColorScheme * highlight link ModeNFGC StatuslineNC
autocmd ColorScheme * highlight link ModeNFGCS LineNr
autocmd ColorScheme * highlight link ModeIFGC DiffAdd
autocmd ColorScheme * highlight link ModeIFGCS DiffAdded
autocmd ColorScheme * highlight link ModeRFGC Search
autocmd ColorScheme * highlight link ModeRFGCS Repeat
autocmd ColorScheme * highlight link ModeVFGC CursorIM
@sangdth
sangdth / auto-generate-git-branch-from-jira.md
Last active April 6, 2023 16:59
Generate git branch based on Jira tasks
@sangdth
sangdth / fmain.md
Last active December 5, 2024 18:14
Companies can market their ideas, but I have the right to decide whether to buy or not.

Config

git config --global alias.fmain '!git checkout -b master && git branch -D main'

Usage

git fmain
@jdarcy
jdarcy / activitypub.md
Created November 9, 2022 16:10
Some thoughts about ActivityPub

I've commented a few times about some issues I see with the scalability of ActivityPub - the protocol behind the Fediverse and its best-known implementation Mastodon. A couple of folks have asked for more elaboration, so ... here it is.

First, let me add some disclaimers and warnings. I haven't devoted a lot of time to looking at ActivityPub, so there might be some things I've misunderstood about it. On the other hand, I've brought bigger systems - similar node counts and orders of magnitude more activity per node - from broken to working well based on less study of the protocols involved. So if you want to correct particular misconceptions, that's great. Thank you in advance. If you want to turn this into an appeal to authority and say that I'm wrong only because I haven't developed a full ActivityPub implementation or worked on it for X years ... GTFO.

What

What is ActivityPub? It's an HTTP- and JSON-based protocol for exchanging information about "activities". An activity could be many things.

@sangdth
sangdth / redis-commands.md
Last active December 14, 2023 12:56
My list of most used Redis commands