Skip to content

Instantly share code, notes, and snippets.

@pesterhazy
pesterhazy / building-sync-systems.md
Last active December 8, 2024 10:40
Building an offline realtime sync engine

So you want to write a sync system for a web app with offline and realtime support? Good luck. You might find the following resources useful.

Overview articles

@HashbrownKazang
HashbrownKazang / index.html
Created July 20, 2023 08:03
🌌 The aurora (only CSS)
<div class="content">
<h1 class="title">spuntentertainment
<div class="aurora">
<div class="aurora__item"></div>
<div class="aurora__item"></div>
<div class="aurora__item"></div>
<div class="aurora__item"></div>
</div>
</h1>
<p class="subtitle">we are not sorry, at all..</p>
@AmazingTurtle
AmazingTurtle / router-patch.tsx
Created December 8, 2024 10:30
NextJS App Router NProgress Compatibility Patch
'use client';
import { useEffect } from 'react';
import type { NavigateOptions } from 'next/dist/shared/lib/app-router-context.shared-runtime';
import { usePathname, useRouter } from 'next/navigation';
import * as NProgress from 'nprogress';
export function RouterPatch() {
const router = useRouter();
const pathname = usePathname();
@elfefe
elfefe / regex.md
Created April 14, 2023 12:20
Markdown regex

A regex by itself won't be sufficient to fully parse text into Markdown, as Markdown has a variety of syntax rules that can't be captured by a single regular expression. However, I can provide you with a set of regex patterns to help identify some common Markdown elements. You can use these patterns to build a parser or converter:

  1. Headers: ^(#{1,6})\s+(.+)$

  2. Bold text: \*\*(.+?)\*\*|__(.+?)__

  3. Italic text: \*(.+?)\*|_(.+?)_

  4. Strikethrough: ~~(.+?)~~

@gkwurst
gkwurst / piler.sh
Last active December 8, 2024 10:33
Installation script for Mail Piler (open source version) with Manticore on Ubuntu 24.04 Noble (credit cmer)
#!/bin/bash
#
#
# This script installs the latest open source version of Mail Piler (mailpiler.org) from the master
# branch on GitHub by compiling it from source. It also installs all dependencies, including a MySQL database.
#
# You should run this script as root on a vanilla Ubuntu 24.04 installation.
#
#
set -o errexit
@assarbad
assarbad / VMProtect.md
Created March 27, 2024 22:52
Links to VMProtect related resources
@irazasyed
irazasyed / outbound-email-with-cloudflare.md
Last active December 8, 2024 10:20
Using Gmail SMTP with Cloudflare Email Routing: A Step-by-Step Guide

Using Gmail SMTP with Cloudflare Email Routing: Step-by-Step Guide

Learn how to send emails through Gmail SMTP with Cloudflare Email Routing in this comprehensive guide.

Step 1: Enable 2-Factor Authentication

To proceed with this method, ensure that you have enabled two-factor authentication for your Google account. If you haven't done so already, you can follow the link to set it up → Enable 2FA in your Google account.

Step 2: Create an App Password for Mail

@grossbart
grossbart / nix.md
Last active December 8, 2024 10:15
Nix on macOS

Nix

Nix is a powerful package manager that makes package management reliable and reproducible. It provides atomic upgrades and rollbacks, side-by-side installation of multiple versions of a package, multi-user package management and easy setup of build environments.

Installation

@laicasaane
laicasaane / TestGCAllocStructInterfaceCasting.cs
Last active December 8, 2024 10:14
Test GC Alloc for struct to interface casting
using System;
using UnityEngine;
namespace Examples
{
public partial class ExampleBehaviour : MonoBehaviour
{
private static readonly UnityEngine.Profiling.Recorder s_recorder;
static ExampleBehaviour()
@MaciejkaG
MaciejkaG / 300-free-discord-nitro-links.txt
Last active December 8, 2024 10:14
300 Free Discord Nitro 1 Month Trial Links