This commit is contained in:
counterweight 2025-08-18 23:20:43 +02:00
parent c4fab04e88
commit 12dc73abe3
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
4 changed files with 305 additions and 10 deletions

113
nodesource_setup.sh Normal file
View file

@ -0,0 +1,113 @@
#!/bin/bash
# Logger Function
log() {
local message="$1"
local type="$2"
local timestamp=$(date '+%Y-%m-%d %H:%M:%S')
local color
local endcolor="\033[0m"
case "$type" in
"info") color="\033[38;5;79m" ;;
"success") color="\033[1;32m" ;;
"error") color="\033[1;31m" ;;
*) color="\033[1;34m" ;;
esac
echo -e "${color}${timestamp} - ${message}${endcolor}"
}
# Error handler function
handle_error() {
local exit_code=$1
local error_message="$2"
log "Error: $error_message (Exit Code: $exit_code)" "error"
exit $exit_code
}
# Function to check for command availability
command_exists() {
command -v "$1" &> /dev/null
}
check_os() {
if ! [ -f "/etc/debian_version" ]; then
echo "Error: This script is only supported on Debian-based systems."
exit 1
fi
}
# Function to Install the script pre-requisites
install_pre_reqs() {
log "Installing pre-requisites" "info"
# Run 'apt-get update'
if ! apt-get update -y; then
handle_error "$?" "Failed to run 'apt-get update'"
fi
# Run 'apt-get install'
if ! apt-get install -y apt-transport-https ca-certificates curl gnupg; then
handle_error "$?" "Failed to install packages"
fi
if ! mkdir -p /usr/share/keyrings; then
handle_error "$?" "Makes sure the path /usr/share/keyrings exist or run ' mkdir -p /usr/share/keyrings' with sudo"
fi
rm -f /usr/share/keyrings/nodesource.gpg || true
rm -f /etc/apt/sources.list.d/nodesource.list || true
# Run 'curl' and 'gpg' to download and import the NodeSource signing key
if ! curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /usr/share/keyrings/nodesource.gpg; then
handle_error "$?" "Failed to download and import the NodeSource signing key"
fi
# Explicitly set the permissions to ensure the file is readable by all
if ! chmod 644 /usr/share/keyrings/nodesource.gpg; then
handle_error "$?" "Failed to set correct permissions on /usr/share/keyrings/nodesource.gpg"
fi
}
# Function to configure the Repo
configure_repo() {
local node_version=$1
arch=$(dpkg --print-architecture)
if [ "$arch" != "amd64" ] && [ "$arch" != "arm64" ] && [ "$arch" != "armhf" ]; then
handle_error "1" "Unsupported architecture: $arch. Only amd64, arm64, and armhf are supported."
fi
echo "deb [arch=$arch signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$node_version nodistro main" | tee /etc/apt/sources.list.d/nodesource.list > /dev/null
# N|solid Config
echo "Package: nsolid" | tee /etc/apt/preferences.d/nsolid > /dev/null
echo "Pin: origin deb.nodesource.com" | tee -a /etc/apt/preferences.d/nsolid > /dev/null
echo "Pin-Priority: 600" | tee -a /etc/apt/preferences.d/nsolid > /dev/null
# Nodejs Config
echo "Package: nodejs" | tee /etc/apt/preferences.d/nodejs > /dev/null
echo "Pin: origin deb.nodesource.com" | tee -a /etc/apt/preferences.d/nodejs > /dev/null
echo "Pin-Priority: 600" | tee -a /etc/apt/preferences.d/nodejs > /dev/null
# Run 'apt-get update'
if ! apt-get update -y; then
handle_error "$?" "Failed to run 'apt-get update'"
else
log "Repository configured successfully."
log "To install Node.js, run: apt-get install nodejs -y" "info"
log "You can use N|solid Runtime as a node.js alternative" "info"
log "To install N|solid Runtime, run: apt-get install nsolid -y \n" "success"
fi
}
# Define Node.js version
NODE_VERSION="22.x"
# Check OS
check_os
# Main execution
install_pre_reqs || handle_error $? "Failed installing pre-requisites"
configure_repo "$NODE_VERSION" || handle_error $? "Failed configuring repository"

View file

@ -142,6 +142,10 @@
<h2 id="writings-header">Writings</h2> <h2 id="writings-header">Writings</h2>
<p>Sometimes I like to jot down ideas and drop them here.</p> <p>Sometimes I like to jot down ideas and drop them here.</p>
<ul> <ul>
<li>
<a href="writings/a-note-for-the-future-the-tax-bleeding-in-2025.html" target="_blank"
rel="noopener noreferrer">A note for the future: the tax bleeding in 2025</a>
</li>
<li> <li>
<a href="writings/notes-and-lessons-from-my-departure-from-superhog.html" target="_blank" <a href="writings/notes-and-lessons-from-my-departure-from-superhog.html" target="_blank"
rel="noopener noreferrer">Notes and lessons from my departure from Superhog</a> rel="noopener noreferrer">Notes and lessons from my departure from Superhog</a>

View file

@ -0,0 +1,188 @@
<!doctype html>
<html>
<head>
<title>Pablo here</title>
<meta charset="utf-8" />
<meta viewport="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="../styles.css" />
</head>
<body>
<main>
<h1>Hi, Pablo here</h1>
<p><a href="../index.html">back to home</a></p>
<hr />
<section>
<h2>A note for the future: the tax bleeding in 2025</h2>
<p>
I hate taxes deeply. I fell through the rabbit hole of libertarian and
anarcocapitalist ideas some years ago, and taxes have been repulsive
to me ever since. I go to great lengths to not pay them, and feel
deeply hurt everytime they sting my wallet against my will.
</p>
<p>
I know life goes by fast, and what today is vivid in your memory fades
away bit by bit until it's gone. I'm truly hoping that, some day in
the future, the world will have changed to the better and people won't
be paying as much tax as we're doing today in the West. Since in that
bright, utopical future I'm dreaming of I might have forgotten about
how bad things were on this matter in 2025, I've decided to make a
little entry here making an estimate on how many taxes I'm
theoretically bleeding on a yearly basis right now. So that we can
someday look back in time and wonder: "how the fuck did we tolerate
that pillaging".
</p>
<h3>Inventory</h3>
<p>
Before going hard into the number crunching let's list all the tax
items I'm aware of being subject to:
</p>
<ul>
<li>
Income Tax: for the sin of making money, the state takes a hefty
bite of my salary.
</li>
<li>
Social Security: the state runs a forceful Social Security
programme. If you work, it is illegal to not pay for it. It is
specially unnerving since it is quite literally a ponzi scheme. At
least Madoff lured you into it with pretty words, not violence.
</li>
<li>
VAT Tax: for the sin of buying stuff, the state takes another hefty
bite.
</li>
<li>
Real State Tax: for the sin of owning an apartment, the state
charges me rent. Do I own it actually?
</li>
<li>
Vehicle Tax: for the sin of owning a motorcycle, the state charges
me a yearly fee.
</li>
<li>
Wealth Transfer Tax: when you buy real state, you must pay 10% of
its value in taxes. This is a one off fee if you only buy one house
in your lifetime, but it is such a slap on the face that it would be
dishonest to not consider it.
</li>
<li>
Inheritance tax: you thought you were going to keep daddy's loot all
for yourself? When you inherit, you'll go through the register
again. Like the wealth transfer tax, is not a frequent one, but it's
big so let's consider it.
</li>
</ul>
<p>
There may be some other small, less frequent taxes that I'm not
considering. These are the ones that will hit most people in my
country.
</p>
<h3>The numbers</h3>
<p>
Okay, let's go compute the hideous bill. I'll make a hypothetical
profile that's roughly close to mine, with a few assumptions along the
way.
</p>
<ul>
<li>
<em>Salary</em>: online sources say the typical salary for my job
position in my area is 70k€ yearly. Including the Social Security
paid by the company, the sum rises to ~85K€. I consider this way of
measuring honest, since I think that all the money paid out by the
employer reflects what's the true salary and value of the employee.
I read it as, "the company is willing to pay 85K€ for this. What
ends up in the employees pocket, and what in the State's, they don't
mind".
</li>
<li><em>Expenses</em>: I'll assume I spend half of my salary.</li>
<li>
<em>Home Purchase</em>: I'll assume that, during my adult life, I
would buy once the average home in my town. From what I could find
online, that's somewhere around 500K€.
</li>
<li>
<em>Vehicles</em>: I own a motorcycle and share the expenses of a
car with my partner, so I'll count 1.5 vehicles.
</li>
<li>
<em>Inheritance tax</em>: I found a figure stating the average
windfall in my country is 250K€. We'll go with that.
</li>
</ul>
<p>With those clear, let's see the actual figures:</p>
<table>
<thead>
<tr>
<th>Tax</th>
<th>€/year</th>
</tr>
</thead>
<tbody>
<tr>
<td>Income Tax (IRPF)</td>
<td>22,401&nbsp;</td>
</tr>
<tr>
<td>Social Security (worker&nbsp;+&nbsp;employer)</td>
<td>
25,375&nbsp;
<small
>(worker&nbsp;4,445&nbsp;&nbsp;+&nbsp;employer&nbsp;20,930&nbsp;€)</small
>
</td>
</tr>
<tr>
<td>VAT (blended basket)</td>
<td>5,250&nbsp;</td>
</tr>
<tr>
<td>Real Estate Tax (IBI)</td>
<td>1,000&nbsp;</td>
</tr>
<tr>
<td>Vehicle Tax (1.5 vehicles)</td>
<td>225&nbsp;</td>
</tr>
<tr>
<td>Wealth Transfer (10% home, spread 50y)</td>
<td>1,000&nbsp;</td>
</tr>
<tr>
<td>Inheritance (7% of 250k, spread 50y)</td>
<td>350&nbsp;</td>
</tr>
</tbody>
<tfoot>
<tr>
<th>Total</th>
<th>55,602&nbsp;</th>
</tr>
</tfoot>
</table>
<p>
So there you go. A peaceful existence as a tech professional living a
normal life leads to bleeding at least 55K€ per year, all while
getting an 85K€ salary. The tax rate sits at a wonderful 64%. How far
away is this from hardcore USSR-grade communism?
</p>
<p>
And this is generous, since I didn't model (1) what gets stolen
through inflation diluting savings and (2) any capital gains that this
profile might end up paying for whatever investments he is doing with
his savings.
</p>
<p>
Then you'll see mainstream media puppets discussing why young people
don't have children. As if it was some kind of mistery. They're being
robbed their children's bread left and right, while getting hypnotized
into believing that protecting themselves against this outrageous
robbery is somehow morally despicable.
</p>
<p>Motherfuckers.</p>
<hr />
<p><a href="../index.html">back to home</a></p>
</section>
</main>
</body>
</html>

View file

@ -1,10 +0,0 @@
I hate taxes deeply. I feel through the rabbit hole of libertarian and anarcocapitalist ideas some years ago, and taxes have been repulsive to me ever since. I go to great lengths to not pay them, and feel deeply hurt everytime they sting my wallet.
I know life goes by fast, and what once was vivid in your memory fades away bit by bit until it's gone. I'm truly hoping that, some day in the future, the world will have changed to the better and young people won't be paying as much taxes as we're doing today in the West. Since in that bright, utopical future I'm dreaming of I might have forgotten about how bad things were in 2025, I've decided to make a little entry here making an estimate on how many taxes I'm bleeding on a yearly basis right now. So that we can someday look back in time and wonder: "how the fuck did we tolerate that pillaging".
## Inventory
Before going into the number, let's make a list of all the taxes I'm currently facing.
- Income Tax: for the sin of making money, the state takes some.
- Social Security: in Spain, you're forcefully enrolled in a pension system designed as a ponzi scheme (not ponzi-like: it's actually a ponzi scheme), with no way to opt out.