Skip to content

Instantly share code, notes, and snippets.

@Rusydy
Rusydy / how-to-install-openssl-1.1.1-on-centos-9-and-fedora-41.md
Last active June 13, 2025 21:45 — forked from Bill-tran/how-to-install-openssl-1.1.1-on-centos-7.md
How to install openssl 1.1.1 on CentOS 9 or Fedora 41

How To Install OpenSSL 1.1.1 on CentOS 9 or Fedora 41

This tutorial goes through how to install openssl 1.1.1 on CentOS 9

Requirements

Upgrade the system

sudo dnf -y update
@realpoke
realpoke / npmbun.sh
Created May 23, 2025 03:50
npm -> bun
sudo ln -s "$(which bun)" /usr/local/bin/npm
#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.11"
# dependencies = [
# "python-dotenv",
# "openai",
# ]
# ///
import os
@samhenrigold
samhenrigold / _WWDC25 AI-ML Group Lab.md
Last active June 13, 2025 21:43
WWDC25 Machine Learning and AI Frameworks group lab

(Summary generated by ChatGPT based on the automatic transcription. Transcript is attached to this Gist)

Panelists:

  • Host: Shashank

  • Panelists: Michael, Erik, Richard, Ronan


@VictorTaelin
VictorTaelin / hvm3_atomic_linker.md
Last active June 13, 2025 21:41
HVM3's Optimal Polarized Atomic Linker

HVM3's Optimal Atomic Linker (with Polarization)

Atomic linking is at the heart of HVM's implementation: it is what allows threads to collaborate towards massive parallelism. All major HVM versions started with a better atomic linker. From slow, buggy locks (HVM1), to AtomicCAS (HVM1.5), to AtomicSwap (HVM2), the algorithm became simpler and faster over the years.

On the initial HVM3 implementation, I noticed that one of the cases on the atomic linker never happened. After some reasoning, I now understand why, and

@cmpadden
cmpadden / export-epubs.sh
Created May 1, 2024 02:38
Export Apple Books ePubs
#!/bin/bash
destination="/Users/colton/Desktop/Library"
mkdir -p "$destination"
cd /Users/colton/Library/Mobile Documents/iCloud~com~apple~iBooks/Documents
for i in *.epub; do
pushd "$i"
zip --quiet -X0 "$destination/$i" mimetype
@jctosta
jctosta / screen_cheatsheet.markdown
Last active June 13, 2025 21:40
Screen Cheatsheet

Screen Quick Reference

Basic

Description Command
Start a new session with session name screen -S <session_name>
List running sessions / screens screen -ls
Attach to a running session screen -x
Attach to a running session with name screen -r
@sindresorhus
sindresorhus / esm-package.md
Last active June 13, 2025 21:39
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@anaisbetts
anaisbetts / instructions.md
Last active June 13, 2025 21:38
Getting Started with Squirrel for Windows

Getting Started

Here's how to take any EXE and create an installer for it:

  1. Install-Package squirrel.windows
  2. Use NuGet Package Explorer (or any other way) to create a NuGet package for your app.
  3. Open the NuGet Package Console, and type Squirrel --releasify path/to/the/nuget/package.nupkg

You should have a folder called Releases with three files in it. Publish those all to S3 in the same folder and you've now got an installer