Skip to content

Instantly share code, notes, and snippets.

@avestura
avestura / why-go-bad.md
Created January 17, 2024 12:08
The reasons why Golang is a bad language, according to my friend.

Why Go is bad?

"If Go wasn't made by Google, what would be bad about it?" Stafn asked.

And this is the response from Thomas:

  1. uncomposable error handling, this is like being back to:
function foo(x, errback) {
@fizzxed
fizzxed / update_qbit_port.sh
Created September 15, 2023 08:15
Determine protonvpn port via gluetun and update qbittorrent
#!/usr/bin/env bash
# Determine protonvpn port via gluetun and update qbittorrent
#
# Add the following to sudo crontab -e to run every 5 minutes
# */5 * * * * /bin/sh /path/to/update_qbit_port.sh
# For synology users, run the script as root via the task scheduler every 5 minutes.
QBITTORRENT_USER= # qbittorrent username
QBITTORRENT_PASS= # qbittorrent password
QBITTORRENT_PORT=8080
@mpyw
mpyw / free_email_provider_domains.txt
Last active May 7, 2024 10:26 — forked from tbrianjones/free_email_provider_domains.txt
A list of free email provider domains. All forks from the original gist are merged. The list only contains valid hostnames.
0039.cf
0039.ga
0039.ml
00b2bcr51qv59xst2.cf
00b2bcr51qv59xst2.ga
00b2bcr51qv59xst2.ml
02466.cf
02466.ga
02466.ml
07819.cf
@probonopd
probonopd / Wayland.md
Last active May 7, 2024 10:25
Think twice about Wayland. It breaks everything!

Think twice before abandoning Xorg. Wayland breaks everything!

Hence, if you are interested in existing applications to "just work" without the need for adjustments, then you may be better off avoiding Wayland.

Wayland solves no issues I have but breaks almost everything I need. Even the most basic, most simple things (like xkill) - in this case with no obvious replacement. And usually it stays broken, because the Wayland folks mostly seem to care about Automotive, Gnome, maybe KDE - and alienating everyone else (e.g., people using just an X11 window manager or something like GNUstep) in the process.

Wayland proponents make it seem like Wayland is "the successor" of Xorg, when in fact it is not. It is merely an incompatible alternative, and not even one that has (nor wants to have) feature parity (missing features). And unlike X11 (the X Window System), Wayland protocol designers actively avoid the concept of "windows" (making up incompr

@otokichi3
otokichi3 / 2024-05-05.md
Last active May 7, 2024 10:24
Rarejob conversation auto-feedback by Claude3

Here is the revised conversation with the improved sentences and the reasons for each change:

Original Sentence Improved Sentence Reason
Good morning! Good noon here. Good morning! It's noon here already. The original sentence is grammatically incorrect. The improved sentence uses the correct phrase "It's noon here already" to indicate the current time.
Today, I was so busy as well like yesterday or two days ago. I've been quite busy today, just like yesterday or the day before. The original sentence has a few grammatical issues. The improved sentence uses more natural phrasing and correct verb tense.
So you have to support your members. So I need to support my members. The original sentence is phrased in the second person, which sounds a bit awkward. The improved sentence uses the first person to make it more natural.
Are you dedicated tutor to rare job or do you have any job other job? Are you a dedicated tutor for a rare job, or do you have any other
@xqm32
xqm32 / alacritty.md
Last active May 7, 2024 10:23
Automatically switch color theme for Alacritty on macOS

Original issue comment: alacritty/alacritty#5999 (comment)

Run the following command to clone themes:

mkdir -p ~/.config/alacritty/themes
git clone https://github.com/alacritty/alacritty-theme ~/.config/alacritty/themes

Add the following content to ~/.config/alacritty/alacritty.toml:

@MarcAlx
MarcAlx / README.md
Last active May 7, 2024 10:23
MAUI RangeSlider
@dabeaz
dabeaz / aproducer.py
Created October 17, 2019 17:46
"Build Your Own Async" Workshop - PyCon India - October 14, 2019 - https://www.youtube.com/watch?v=Y4Gt3Xjd7G8
# aproducer.py
#
# Async Producer-consumer problem.
# Challenge: How to implement the same functionality, but no threads.
import time
from collections import deque
import heapq
class Scheduler:
@nessthehero
nessthehero / cheat.md
Created May 27, 2015 13:27
Handlebars Cheat Sheet

Syntax

In this cheatsheet, to simplify, models are represented as JSON.

Code comments

\{{! code comments }}