Skip to content

Instantly share code, notes, and snippets.

@HacKanCuBa
HacKanCuBa / find-https-debian-archives.py
Last active May 26, 2024 03:45 — forked from eighthave/find-https-debian-archives.py
Script to find official Debian mirrors that support HTTPS
#!/usr/bin/env python3
"""Find Debian HTTPS archives.
Script based on https://gist.github.com/eighthave/7285154
I made it asynchronous and parallel, so overall I measured it to be 6 times faster or more.
Requires Python 3.7+
Additional resources not exactly related to this script but could be helpful for
@jesvs
jesvs / mpcsimilar.sh
Last active June 1, 2023 20:44
Shell script that uses last.fm API to add similar artists to MPD.
#!/bin/bash
# depends on jq to parse json
# https://stedolan.github.io/jq/
#
# This script will query the last.fm API for
# similar artists based on the currently playing track.
# It will crop the current playlist, and shuffle the API results.
#
# You can configure 3 parameters:
@LorbusChris
LorbusChris / MatrixIRC.md
Last active December 30, 2022 19:27
Matrix libera.chat IRC Bridge Setup

Matrix libera.chat IRC Bridge Setup

Change libera.chat IRC Nick

This is optional, in case you prefer your nick to be shown as something other than <matrix_nick>[m] on IRC, e.g. just <matrix_nick> (without the [m] suffix) or <libera_nick>.

Open a private chat with @appservice:libera.chat:

!nick <new_libera_nick>

Note: This does not change your Matrix nick!

@jauderho
jauderho / Time Servers with NTS support.md
Last active June 13, 2024 19:03
A curated list of NTP time servers that support NTS
@yewtudotbe
yewtudotbe / what-happened-downtime-july2023.md
Last active July 9, 2024 10:18
Why yewtu.be was down? (July 2023)

On the 30th of June, my cloud provider, Oracle Cloud, decided to shutdown all my servers hosted on two Oracle Cloud accounts.
It is known that this provider will randomly ban accounts without any reason.

Why yewtu.be doesn't accept new registrations nor logging into an account?

Unfortunately and this is 100% my fault for forgetting that, I only had data duplication between servers located in the two Oracle Cloud accounts and no backups.
I thought that I wouldn't get all my accounts in trouble at the same time and able to recover the data from one of the two accounts but unfortunately this turned out otherwise.

Implementing some backup was something I had in my notes for a long time but I think I forgot about it, maybe due to the huge amount of work I spend on the open source projects.
I'm deeply sorry if you have lost your subscriptions list or playlists or watch history. I did try to contact Oracle Cloud for recovering the data, I'm waiting for their answer but you should be certain that they