Skip to content

Instantly share code, notes, and snippets.

State of Roblox graphics API across all platforms, with percentage deltas since EOY 2020. Updated December 31 2021.

Windows

API Share
Direct3D 11+ 92% (+3%)
Direct3D 10.1 5% (-2%)
Direct3D 10.0 3% (-0.5%)
@FreddieOliveira
FreddieOliveira / docker.md
Last active August 9, 2026 12:24
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@seldo
seldo / can-spam.md
Last active May 2, 2023 19:52
CAN-SPAM

Hi! I notice your email doesn't contain instructions on how to unsubscribe, which is illegal:

https://www.ftc.gov/tips-advice/business-center/guidance/can-spam-act-compliance-guide-business

Despite its name, the CAN-SPAM Act doesn’t apply just to bulk email. It covers all commercial messages, which the law defines as “any electronic mail message the primary purpose of which is the commercial advertisement or promotion of a commercial product or service,” including email that promotes content on commercial websites. The law makes no exception for business-to-business email. That means all email – for example, a message to former customers announcing a new product line – must comply with the law.

Each separate email in violation of the CAN-SPAM Act is subject to penalties of up to $46,517, so non-compliance can be costly. But following the law isn’t complicated. Here’s a rundown of CAN-SPAM’s main requirements:

  1. Don’t use false or misleading header information.
  2. Don’t use deceptive subject lines.
@sharpbai
sharpbai / README.md
Last active March 28, 2022 20:50
A optimization for ffmpeg tonemap_opencl

A optimization for ffmpeg tonemap_opencl

Introduction

On my MacBook Pro (13-inch, 2020, Four Thunderbolt 3 ports), i5 four Cores, originally using tonemap_opencl the speed of converting hevc 10bit smpte2084 to bt2020-10 is about 28fps.

After optimization, the speed is about 43fps. Without tonemap the speed is 48fps.

@t3dotgg
t3dotgg / persisted-synced-atom.ts
Last active June 24, 2021 19:07
A pattern for persisting and syncing an atom's value in Jotai
import { atom, useAtom } from "jotai";
const atomWithSyncedLocalStorage = <T>(key: string, initialValue: T) => {
const baseAtom = atom(initialValue);
baseAtom.onMount = (setValue) => {
const storageUpdateListener = (e: StorageEvent) => {
if (e.key === key) {
console.log("Updating instance of ", key, " remotely");
setValue(e.newValue ? JSON.parse(e.newValue) : undefined);
}
import os
import pickle
import warnings
import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
from tensorflow.keras.callbacks import EarlyStopping
from tensorflow.keras.layers import Dense
from tensorflow.keras.layers import Dropout
@bitonic
bitonic / configuration.nix
Last active August 20, 2025 22:59
NixOS configuration for a remote ZFS server on Hetzner
# Full NixOS configuration for a ZFS server with full disk encryption hosted on Hetzner.
# See <https://mazzo.li/posts/hetzner-zfs.html> for more information.
{ config, pkgs, ... }:
let
# Deployment-specific parameters -- you need to fill these in where the ... are
hostName = "...";
publicKey = "...";
# From `ls -lh /dev/disk/by-id`
@motorailgun
motorailgun / idea.md
Last active July 27, 2026 06:23
Installing Windows and Linux into the same partition

Installing Windows and Linux into the same partition

But WHY?

There was a reddit post about installing Arch on NTFS3 partition. Since Windows and Linux doesn't have directories with same names under the /(C:\), I thought it's possible, and turned out it was actually possible.
If you are not familiar to Linux, for example you've searched on Google "how to dualboot Linux and Windos" or brbrbr... you mustn't try this. This is not practical.

Pre-requirements

  • UEFI system
  • Any Linux live-boot CD/DVD/USB... with Linux kernel newer than 5.15
  • Windows installer USB
@iosifnicolae2
iosifnicolae2 / Readme.md
Last active December 7, 2025 19:52
Youtube is Boring

How To Make Youtube Less Boring

Tutorial: https://www.youtube.com/watch?v=hIqMrPTeGTc
Paste the below code in your browser console (F12 > Console):

/**
 * YouTube "Not Interested" Automation Script
 *
 * This script marks all videos in the YouTube feed as "Not interested".
 *
 * Usage:
@tostercx
tostercx / goip_pkg.md
Created February 18, 2022 08:08
reversed GoIP PKG format

PKG format

offset sample name details
DB AD 47 5E magic
00 01 version PKG format version 1
00 00 encrypt resellers can crypt these?
00 2A 60 00 pkg_len total package length
69 4F 82 7D pkg_md5 md5 of rest of pkg
6B DE CA 4F -