Skip to content

Commit

Permalink
vault backup: 2025-01-02 11:29:36
Browse files Browse the repository at this point in the history
  • Loading branch information
abhiaagarwal committed Jan 2, 2025
1 parent 9391383 commit ad70079
Show file tree
Hide file tree
Showing 43 changed files with 436 additions and 252 deletions.
9 changes: 5 additions & 4 deletions content/education/omscs/cs-6200.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ tags:
aliases:
- gios
---
My first class I took at Georgia Tech's OMSCS program was cs-6200, or Graduate Introduction to Operating Systems (**GIOS**). I took it in **Spring 2024**. This is my first formal CS class, ever. I took a couple in college but they were mostly fluff and designed around numerical applications of code. I took it alongside [[cs-7674|ml4t]].

I loved the class. It's probably my favorite class I've taken in anything, ever.
My first class I took at Georgia Tech's OMSCS program was cs-6200, or Graduate Introduction to Operating Systems (**GIOS**). I took it in **Spring 2024**. This is my first formal CS class, ever. I took a couple in college but they were mostly fluff and designed around numerical applications of code. I took it alongside [[cs-7674|ml4t]].

I loved the class. It's probably my favorite class I've taken in anything, ever.

In GIOS, the cool thing is that the projects are open-ended. All you have to do is pass a test suite they provided. For Project 1, I did it strictly by the book. For Project 3, I did something very weird and zany to the point where the Autograder actually got confused by my project. Project 4 was my least favorite: it uses gRPC and C++, and I ended up disliking both by the end of it (mostly the C++ API of gRPC, I've used the protocol in other languages successfully).

Expand All @@ -22,6 +23,6 @@ The projects don't really reflect "OS development". It's more, "you're developin

[[macos-native-docker]]: The class environment is an Ubuntu 20.04 x86 environment, I needed to run a class-provided docker image to perfectly replicate our testing environment to make sure I wasn't dealing with quirks. I use a M1 Pro Macbook 14 that I absolutely adore, and didn't want to deal with a Cloud VM to develop.

[[basic-fstream]]: I spent over 3 hours debugging this problem in Project 4. I hate C++.
[[basic-fstream]]: I spent over 3 hours debugging this problem in Project 4. I hate C++.

[[destructive-moves]]: A design choice I made in Project 4 was rendered impossible due to this.
[[destructive-moves]]: A design choice I made in Project 4 was rendered impossible due to this.
4 changes: 2 additions & 2 deletions content/education/omscs/cs-7674.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ tags:
aliases:
- ml4t
---

My second class at OMSCS was cs-7674, Machine Learning for Trading (**ML4T**). I thought it was... alright? It's mostly just Python stuff, of which I'm very familiar with. I took it alongside [[cs-6200|gios]]. It's kind of like an introduction into data science techniques with a focus on ML. Now I'm not an ML person at all, my undergraduate background is in economics and math, but ML is just statistical models. I came in not knowing much and breezed through the class with said knowledge of statistics.

I'm probably killing my career by saying ML isn't really my cup of tea. Honestly, stocks aren't either, I'm a believer in the Efficient Market Hypothesis and [[stocks|buy $VTSAX and chill]]. I'm more interested in ML from a mathematical standpoint, this class is mostly Applied ML. It'll certainly help you get a job, if that's what you're looking for.

I spent maybe 10 hours per week on the class. I didn't feel really engaged during the class at all. I just thought it was kinda...

I spent maybe 10 hours per week on the class. I didn't feel really engaged during the class at all. I just thought it was kinda...
2 changes: 1 addition & 1 deletion content/education/omscs/index.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Notes about all the classes I took at OMSCS, with a mini review and any thoughts I had about them.
Notes about all the classes I took at OMSCS, with a mini review and any thoughts I had about them.
4 changes: 3 additions & 1 deletion content/finance/credit-cards.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
tags:
- thoughts
draft: true
---

Credit cards are such a fun system. For me, there's kinda a thrill associated with them — you get access to "free" money for a month, but if you fuck up, you get hit with an exorbitant fine.

Credit cards are a big driver of inequality. The current system is based on rewards being funded through irresponsible borrowers. It's basically a wealth transfer from the poor to the wealthy. On a logical level, I shouldn't really support it. If credit cards rewards were to disappear tomorrow, I wouldn't mourn it.
Credit cards are a big driver of inequality. The current system is based on rewards being funded through irresponsible borrowers. It's basically a wealth transfer from the poor to the wealthy. On a logical level, I shouldn't really support it. If credit cards rewards were to disappear tomorrow, I wouldn't mourn it.
35 changes: 17 additions & 18 deletions content/finance/finance-for-new-grads.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,39 @@
title: '"I just graduated! What the hell am I supposed to do with all this money?"'
tags:
- observations
draft: true
---

> [!warning] Disclaimer
> Do I need to put a disclaimer on my own notes? I'm not a financial advisor, I don't have a license, this is not advice, I'm not liable for any decisions you don't make. Don't sue me.
# Introduction

I want to preface this by saying

**YOU ARE NOT A DUMMY!!!!!**

Finance is not something that's taught in schools.^[1] Money doesn't matter until it does matter. I certainly blindly earned paychecks from odd jobs until I got my first big-boy job after college, until everything hit me.
Finance is not something that's taught in schools.^[1] Money doesn't matter until it does matter. I certainly blindly earned paychecks from odd jobs until I got my first big-boy job after college, until everything hit me.

*What the heck is a ROTH IRA?*
*Girl, what the hell is a Traditional IRA*
*401k?? Employee match. Pre-tax deduction???*
*Why should I care about Retirement? I'm 22 years old?*
*Federal Taxes? State Taxes? WTF is a 'FICA'???*
*Will the government jail me if I underpay my taxes?*
_What the heck is a ROTH IRA?_
_Girl, what the hell is a Traditional IRA_
_401k?? Employee match. Pre-tax deduction???_
_Why should I care about Retirement? I'm 22 years old?_
_Federal Taxes? State Taxes? WTF is a 'FICA'???_
_Will the government jail me if I underpay my taxes?_

You are not alone if you have these questions. There are few trustworthy sources for financial information, with most companies trying to sell some product. You really shouldn't trust me either — instead, I'll do my best to link the sources that further elaborate on my thinking.

I wrote this primarily because I became "the guy" explaining finance to all my friends, and quite frankly, I got tired of copy-pasting the spiel I wrote in my notes app. As such, this is written from the perspective of someone making the median income after graduating college in the United States, which I've guesstimated to be around 50k, give or take. If you're not a college graduate, or you're making more or less, don't sweat; your income is not a reflection of your self-worth, and this advice can be generalized to anyone. Even if you've been working for a long time, you might learn something new from this.

Let's dive in!
Let's dive in!

>[!tip]
>If you're interested in reading a book, I'd recommend checking out *A Simple Path to Wealth* by JL Collins. While I personally haven't read it, I've had plenty of friends who have and strongly recommend it. I'd recommend it over this document. At the very least, consider checking it out from your local library after you've read this.
> [!tip]
> If you're interested in reading a book, I'd recommend checking out _A Simple Path to Wealth_ by JL Collins. While I personally haven't read it, I've had plenty of friends who have and strongly recommend it. I'd recommend it over this document. At the very least, consider checking it out from your local library after you've read this.
# Give me the rundown!

Okay, so you have a big boy job now. You've just earned your first paycheck. Let's break down what your paycheck actually *is*.
Okay, so you have a big boy job now. You've just earned your first paycheck. Let's break down what your paycheck actually _is_.

Here's an example paycheck for someone making a 50k salary, just base, no bonus/equity/whatever. This is modeled after my own paycheck in Massachusetts.

Expand All @@ -44,18 +47,16 @@ Here's an example paycheck for someone making a 50k salary, just base, no bonus/
| Social Security | -114 | Pays into Social Security |
| Medicare | -27 | Pays for Medicare |
| Healthcare | -85 | Healthcare you chose, deducted from your paycheck |
| => Net Income | 1470 | *your* money |
Your **gross** income is the money you make *before* taxes and various deductions, while your **net** income is the money you you get afterwards. Net goes into your bank account.
| => Net Income | 1470 | _your_ money |

Your **gross** income is the money you make _before_ taxes and various deductions, while your **net** income is the money you you get afterwards. Net goes into your bank account.

# Let's go deep.

## Banking

## Taxes



## Healthcare

## Retirement
Expand All @@ -64,6 +65,4 @@ Your **gross** income is the money you make *before* taxes and various deduction

## Credit Cards



[^1]: And I don't want to hear the "oh, it should've been taught in school", face it, you and I would've both slept through it.
[^1]: And I don't want to hear the "oh, it should've been taught in school", face it, you and I would've both slept through it.
10 changes: 6 additions & 4 deletions content/finance/stocks.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
---
tags:
- thoughts
draft: true
---

> [!warning] Disclaimer
> Do I need to put a disclaimer on my own notes? I'm not a financial advisor, I don't have a license, this is not advice, I'm not liable for any decisions you don't make. Don't sue me.
I think investing in single stocks is pretty much the biggest myth that gets constantly paraded around in "get-rich" type content. Trying to find the needle is not worth your time. Buy the haystack instead.

No one has managed to beat the market consistently for over 30+ years. People can do it in 1, 5, 10, even 20 year spurts, but no one has ever done it for 30 years. Why? The market is the sum of people's decision-making. If someone is successful at decision-making, other people are going to copy them. There's a first-movers advantage, and in the age of the internet, that has functionally evaporated.

Warren Buffet challenged a group of hedge fund managers in 2008 to beat his buy of the S&P500. 10 years later, he [overwhelmingly won](https://finance.yahoo.com/news/warren-buffett-once-bet-1m-113000485.html). Like, this is *thee* Warren Buffet, regarded as the greatest investor of all-time. And he won by doing something anyone can do, which is buy the S&P500 (or more broadly, an index).
Warren Buffet challenged a group of hedge fund managers in 2008 to beat his buy of the S&P500. 10 years later, he [overwhelmingly won](https://finance.yahoo.com/news/warren-buffett-once-bet-1m-113000485.html). Like, this is _thee_ Warren Buffet, regarded as the greatest investor of all-time. And he won by doing something anyone can do, which is buy the S&P500 (or more broadly, an index).

This general idea is called the Efficient Market Hypothesis. There are several forms of it, strong weak etc. I don't remember the name of the variant that I believe in, but I believe it's impossible to beat the market consistently unless you have insider information.
This general idea is called the Efficient Market Hypothesis. There are several forms of it, strong weak etc. I don't remember the name of the variant that I believe in, but I believe it's impossible to beat the market consistently unless you have insider information.

Hedge funds get a lot of praise but don't actually have much to show for it. Indeed, hedge funds aren't designed to grow your money, but to grow your money *consistently*. Sure, on a year-to-year basis you might outperform the S&P in a given year, but why care about that? Your goal is to grow your money over a long period of time, not to withdraw it on a year-to-year basis. You probably work a job, earn your money through there. They also charge a ridiculous fee, so even if they are growing your money, they're likely taking a huge chunk of it into their own properties.
Hedge funds get a lot of praise but don't actually have much to show for it. Indeed, hedge funds aren't designed to grow your money, but to grow your money _consistently_. Sure, on a year-to-year basis you might outperform the S&P in a given year, but why care about that? Your goal is to grow your money over a long period of time, not to withdraw it on a year-to-year basis. You probably work a job, earn your money through there. They also charge a ridiculous fee, so even if they are growing your money, they're likely taking a huge chunk of it into their own properties.

You can be lucky, you could be right, you could really be smarter than the market. You're not, no one is. So like, buy your index funds. All the effort you spend towards thinking about stocks, spent it towards increasing your earning potential. The ROI on that is stronger than it'll ever be on stocks.
You can be lucky, you could be right, you could really be smarter than the market. You're not, no one is. So like, buy your index funds. All the effort you spend towards thinking about stocks, spent it towards increasing your earning potential. The ROI on that is stronger than it'll ever be on stocks.
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@ title: Installing CUDA/Nvidia Drivers on a host to be shared with Linux Containe
tags:
- observations
---

I have a Proxmox server with an RTX 4090. I want to share the GPU across multiple lightweight Linux Containers (LXCs), of which they might share them with Docker containers, which could theoretically share... whatever, you get it. I want access to `nvcc` on LXCs for development. I also want access to the drivers so applications that use hardware acceleration (such as [Jellyfin](https://github.com/jellyfin/jellyfin)) can... accelerate.

This is a little bit more of a convoluted process than it may seem like. It involves messing with the kernel, building kernel modules, passing through drivers, and downloading multiple packages, but in the end, you get a GPU that can be used in multiple contexts avoiding the overhead of virtualization, with all the upside of containerization and isolation.

> [!info]
> If you can avoid it, don't install CUDA on your host or LXCs. You should use devcontainer ecosystem and develop inside a docker container, pulling [`nvidia/cuda-devel`](https://hub.docker.com/r/nvidia/cuda/) for `nvcc` access, and you *should* do this to pin your dependencies. However, you *will* need to have the corresponding drivers installed on the host and any additional layers of isolation. This guide includes the installation of drivers, you can skip the CUDA stuff if it's not relevant.
> If you can avoid it, don't install CUDA on your host or LXCs. You should use devcontainer ecosystem and develop inside a docker container, pulling [`nvidia/cuda-devel`](https://hub.docker.com/r/nvidia/cuda/) for `nvcc` access, and you _should_ do this to pin your dependencies. However, you _will_ need to have the corresponding drivers installed on the host and any additional layers of isolation. This guide includes the installation of drivers, you can skip the CUDA stuff if it's not relevant.
I'm doing this on a fresh installation of Proxmox. My server is using a 7950x3D + a PNY RTX 4090 (my beloved). I will be using debian (btw) as my LXC guest since it's the gold standard, but all of this can be adapted to your relevant distro.
I'm doing this on a fresh installation of Proxmox. My server is using a 7950x3D + a PNY RTX 4090 (my beloved). I will be using debian (btw) as my LXC guest since it's the gold standard, but all of this can be adapted to your relevant distro.

# Getting the relevant driver

Here's a fun fact: NVIDIA releases CUDA releases separately from their gaming/workload drivers, but the latter drivers may sometimes be ahead of their CUDA-based drivers. This can lead to some *fun* (author's note: horrible) scenarios. NVIDIA does not directly publish what version of the driver is associated with a CUDA release, you need to figure it out yourself. *woohoo!*
Here's a fun fact: NVIDIA releases CUDA releases separately from their gaming/workload drivers, but the latter drivers may sometimes be ahead of their CUDA-based drivers. This can lead to some _fun_ (author's note: horrible) scenarios. NVIDIA does not directly publish what version of the driver is associated with a CUDA release, you need to figure it out yourself. _woohoo!_

God, NVIDIA, I might be your only defender left, but can you please make it easier for the rest of us?
God, NVIDIA, I might be your only defender left, but can you please make it easier for the rest of us?
Loading

0 comments on commit ad70079

Please sign in to comment.