Skip to content

Instantly share code, notes, and snippets.

View lavantien's full-sized avatar
🧘‍♂️
chillax

лавантиен lavantien

🧘‍♂️
chillax
View GitHub Profile
@lavantien
lavantien / modern-software-engineering-resources.md
Last active July 15, 2024 06:53
Modern Software Engineering Resources

Modern Software Engineering

Wake up dog, we're being enslaved! Don't ever join the army under any circumstance, or anything adjacent, you're just die and kill for the rich, meanwhile their sons are enjoying luxury and femoids abroad. All hierarchical power structures are inherently evil. They'll do whatever it takes to maintain the asymmetries of power, wealth, and information, whether it's deception, manipulation, coercion, or violent domination.

The Foundation (jump)

Knowledge and Education should be open and free. Hierarchy and Exploitation must be abolished.

Wayback Machine (internet's archive), Library Genesis/Anna's Archive (ebooks/papers library), 1337x/bk (media's archive).
Fight slavery & monopoly with FOSS, ad blockers, paywall bypassers, VPNs, proxies, peer to peer, tor snowflake,

@lavantien
lavantien / daily-routine.md
Last active July 12, 2024 00:50
Daily Routine

Daily Routine of a Warrior

  • "Greater in battle than the man who would conquer a thousand-thousand men, is he who would conquer just one — himself." - KN Dhp 103
  • On Uposatha (1-3 no moon days, 2-6 half moon days, and 1-3 full moon days per month), replace Programming, Chess, Cubing, Researching, and Gaming with Dhamma study and practice.
Time Mon Tue Wed Thu Fri Sat Sun
06:00 - 06:15 Stretching and Meditation Stretching an
@lavantien
lavantien / baseline-health-maintenance.md
Last active August 6, 2023 09:48
Baseline Physical & Mental Health Maintenance Guide
  • Mental

    • Guarding Action: 1. Avoid killing any creature; 2. Avoid stealing anything; 3. Avoid sex crimes & adultery
    • Guarding Speech: 4. Avoid any lie; 5. Avoid divisive speeches; 6. Avoid cruel speeches; 7. Avoid nonsensical speeches
    • Guarding Mind: 8. Avoid covetousness; 9. Avoid ill-will; 10. Avoid harmful views
    • Useful Emotions: 1. Good-Will; 2. Compassion; 3. Rejoicing; 4. Equanimity
  • Diet

    • One Meal A Day or 8-hour eating window
  • No Alcohol or Substance Abuse

@lavantien
lavantien / what-the-Buddha-really-taught.md
Last active April 30, 2024 20:20
What the Buddha really taught

Based on the earliest ancient Buddhist texts and oral tradition.

Will revolve around this text, MN 107, ordered in a Gradual Approach.

"Why do I, being liable to be reborn, grow old, fall sick, sorrow, die, and become corrupted, seek things that have the same nature? Why don’t I seek the unborn, unaging, unailing, undying, sorrowless, uncorrupted supreme sanctuary from the yoke, extinguishment?’

Some time later, while still black-haired, blessed with youth, in the prime of life—though my mother and father wished otherwise, weeping with tearful faces—I shaved off my hair and beard, dressed in ocher robes, and went forth from the lay life to homelessness.

Once I had gone forth I set out to discover what is skillful, seek

@lavantien
lavantien / go-table-driven-tests-parallel.md
Created June 10, 2023 11:31 — forked from posener/go-table-driven-tests-parallel.md
Be Careful with Table Driven Tests and t.Parallel()

Be Careful with Table Driven Tests and t.Parallel()

We Gophers, love table-driven-tests, it makes our unittesting structured, and makes it easy to add different test cases with ease.

Let’s create our table driven test, for convenience, I chose to use t.Log as the test function. Notice that we don't have any assertion in this test, it is not needed to for the demonstration.

func TestTLog(t *testing.T) {
	t.Parallel()
@lavantien
lavantien / # julia - 2023-06-04_18-56-50.txt
Created June 4, 2023 11:57
julia on Ubuntu 23.04 - Homebrew build logs
Homebrew build logs for julia on Ubuntu 23.04
Build date: 2023-06-04 18:56:50
@lavantien
lavantien / # julia - 2023-06-04_18-17-07.txt
Created June 4, 2023 11:17
julia on Ubuntu 23.04 - Homebrew build logs
Homebrew build logs for julia on Ubuntu 23.04
Build date: 2023-06-04 18:17:07
@lavantien
lavantien / # julia - 2023-06-04_18-05-53.txt
Created June 4, 2023 11:07
julia on Ubuntu 23.04 - Homebrew build logs
Homebrew build logs for julia on Ubuntu 23.04
Build date: 2023-06-04 18:05:53
@lavantien
lavantien / tbds.go
Created March 3, 2022 15:52
Golang - Optimized Hashmap Tree-based Disjoint Set
package main
import "fmt"
type DisjointSet interface {
Find(item int) int
Union(setA int, setB int)
}
type hashmapDisjointSet struct {
@lavantien
lavantien / lcs.go
Created March 3, 2022 15:12
Golang - Longest Common Subsequence
package main
import "fmt"
func main() {
x := "ACCGGGTTACCGTTTAAAACCCGGGTAACCT"
y := "CCAGGACCAGGGACCGTTTACCAGCCTTAAACCA"
n := len(x)
m := len(y)