Skip to content

Instantly share code, notes, and snippets.

View clouedoc's full-sized avatar

Camille Louédoc-Eyriès clouedoc

View GitHub Profile
@clouedoc
clouedoc / disable_icloud_storage_optimisation.md
Created September 30, 2024 14:05
iCloud drive making it impossibe to access files, right clicking, stuck on a loading state

Disabling iCloud optimisation

Recently, my mac started exhibiting a strange behavior...

Accessing some files, even from the terminal, was extremely slow.

Finder was stuck when opening some folders.

Uploading some files from my terminal through Firefox made Finder hang forever.

@clouedoc
clouedoc / Migrating from Arc to Zen Browser.md
Created September 20, 2024 08:57
Migrating from Arc to Zen Browser

A guide to leaving Arc for Zen Browser

The problem with Arc is that it doesn't allow exporting data (history, bookmarks) to a file natively.

One way to do this is to use a script but that only exports Bookmarks and not the history.

I don't really use the bookmarks feature that much; what I really liked about Arc was that it was really easy to navigate to somewhere I already visited.

So, if you're like me, follow this guide and you'll be able to import your browsing history into Zen browser!

@clouedoc
clouedoc / hetzner_outgoing_traffic.md
Last active April 17, 2024 01:24
Hetzner Robo outgoing traffic is not reaching some IPs

Hetzner stroking on some TCP outgoing traffic

My Robo server can access some IPs, but not some others. Weird!

Adding explicit TCP outgoing allow rules (fail)

I explicitely enabled outgoing IPv4 TCP + UDP traffic. Four entries in total:

  • IPv4 TCP
  • IPv4 UDP
@clouedoc
clouedoc / swc_converts_dynamic_import_to_require.md
Created April 15, 2024 01:23
SWC converts dynamic `import` calls to `require`, and it made me crazy. But I found the solution!

SWC converts dynamic import calls to require

This document describes the problem I faced as well as the solution

Problem

I need to access an ESM module from my output CJS project.

(I don't understand all of these terms well)

@clouedoc
clouedoc / pgbackrest-kawaii-n8n.json
Last active October 4, 2023 21:12
An n8n pgbackrest backup checker that talks to you nicely — because managing a database is already hard as it is!
{
"name": "pgbackrest auto-verifications",
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{
"triggerAtHour": 16
}

k8s

Adding nodes

Control plane

hostnamectl hostname controlplane
pacman -S wireguard-tools open-iscsi mosh git zsh
systemctl enable iscsid && systemctl start iscsi
import type { IMailCredentials } from './credentials';
import { findAndFetchMessage } from './fetch-mail';
/**
* Check if the credentials are working.
* @param credentials
* @throws if the credentials are invalid
*/
export async function mailCheckValid(credentials: IMailCredentials): Promise<void> {
const messages = await findAndFetchMessage(credentials, ['ALL']);

pgbouncer: no such user

If pgbouncer is returning a no such user error, make sure that BYPASSRLS is not enabled on the user that you are trying to connect to.

I don’t exactly know why, but it won’t work.

ALTER USER myuser WITH NOBYPASSRLS
@clouedoc
clouedoc / timescaledb_error.md
Created October 15, 2022 15:19
Pq: function time_bucket(unknown, timestamp without time zone) does not exist

Weird TimescaleDB permission error

Hello there,

I've encountered this error while trying to add a TimescaleDB (Postgres) datasource to Postgres:

Pq: function time_bucket(unknown, timestamp without time zone) does not exist

There is no solution online, so I've decided to post mine here. I hope that it finds you well