Skip to content

Instantly share code, notes, and snippets.

@ideoforms
ideoforms / sox-cheat-sheet.sh
Last active June 5, 2025 19:19
sox cheat sheet
################################################################################
# sox cheat sheet
################################################################################
# Example commands for the sox command-line audio processing tool,
# for manipulating or batch processing audio files.
################################################################################
# Daniel Jones <[email protected]>
################################################################################
################################################################################
@chrisroos
chrisroos / README.md
Last active June 5, 2025 19:18
Example of using bundler/inline

I came across 'bundler/inline' in Bundler pull request 3440, which I'd found from Rails pull request 20429. This now has a little snippet on the What's new page of the Bundler site.

This little example demonstrates how I might use it to create a single file using minitest.

I've just noticed that this script was working for me because I already had minitest installed as a system gem. If I uninstall the gem then the script fails because it can't find minitest. The source code documents an option to install gems if they don't exist (gemfile(true) do) but that doesn't seem to work for me. I see the following error:

Fetching gem metadata from https://rubygems.org/...
Fetching version metadata from https://rubygems.org/..
Resolving dependencies...

Using metaclass 0.0.4

@texchi2
texchi2 / medium-article_VSCode_AIcopilot.md
Last active June 5, 2025 19:16
Setting up a Remote AI Code Assistant: Ollama + Continue in VS Code

Setting up a Remote AI Code Assistant: Ollama + Continue in VS Code

Remote Development Setup with MacStudio Figure 1: Remote development setup with MacStudio as server and VS Code integration

A step-by-step guide to creating a powerful, private AI coding assistant using Ollama and Continue extension in VS Code, with remote server capabilities.

Introduction

ZSH CheatSheet

This is a cheat sheet for how to perform various actions to ZSH, which can be tricky to find on the web as the syntax is not intuitive and it is generally not very well-documented.

Strings

Description Syntax
Get the length of a string ${#VARNAME}
Get a single character ${VARNAME[index]}
@boxabirds
boxabirds / .cursorrules
Last active June 5, 2025 19:05
Rock solid: turn Cursor into a rock-solid software engineering companion
# Project Policy
This policy provides a single, authoritative, and machine-readable source of truth for AI coding agents and humans, ensuring that all work is governed by clear, unambiguous rules and workflows. It aims to eliminate ambiguity, reduce supervision needs, and facilitate automation while maintaining accountability and compliance with best practices.
# 1. Introduction
> Rationale: Sets the context, actors, and compliance requirements for the policy, ensuring all participants understand their roles and responsibilities.
## 1.1 Actors
@meshula
meshula / radiometric-vs-photometric.md
Last active June 5, 2025 19:05
radiometric-vs-photometric.md

Measuring Light

Light is measured in two ways. Radiometry measures the energy impinging on a sensor, and photometry attempts to qualitatively measure light to represent how a human observer experiences light. Radiometry is important when physical metrics must be preserved, such as in simulation tasks, and photometry is important in subjective tasks, such as selecting lights to illuminate a street.


Radiometric Units

Radiometric units measure the physical properties of light, independent of human perception. These units are based on the total energy or power of light across all wavelengths.

To better understand how these radiometric units are related, imagine a conceptual "cube" where each axis represents a dimension of measurement integration:

@shirriff
shirriff / PRU-GPIO-EXAMPLE-00A0.dts
Created August 23, 2016 05:33
Device Tree file to enable BeagleBone PRU and pin P8_11. File from https://credentiality2.blogspot.com/2015/09/beaglebone-pru-gpio-example.html
// This DTS overlay sets up one input and one output pin for use by
// PRU0 via its Enhanced GPIO mode, which will let us access those pins
// by writing to R30 bit 15 or reading from R31 bit 14.
// Save this file wherever you want (but I recommend /lib/firmware), as
// "PRU-GPIO-EXAMPLE-00A0.dts".
// Compile with:
// dtc -O dtb -I dts -o /lib/firmware/PRU-GPIO-EXAMPLE-00A0.dtbo -b 0 -@ PRU-GPIO-EXAMPLE-00A0.dts
@RexYuan
RexYuan / desk.md
Last active June 5, 2025 19:04
A list of which standing desk companies use base from what companies
Base companies Desk companies
Jiecang Poppin, HON, Allsteel, AMQ, Enwork, Uplift, Haworth, Xybix, Hat Contract, Uncaged Ergonomics, Omnidesk, AITerminal, Fully(Herman Miller+Knoll), Funte, Desky
Kaidi LTJ Kantoormeubelen, Teknion, OFS, Friant, Varidesk, BTOD
Loctek Loctek, Flexispot(Loctek)
Timotion Backbone, Humanconnect(FLH), Motti(Timotion), Autonomous SmartDesk, Trendway, Symmetry, DEZCTOP, Steelcase
OMT-Veyhl / LogicData(Jiecang) Herman Miller, Haworth, Special T, iMovR, BTOD, DeskHaus
Linak Steelcase, Ergonofis, Ikea, Xdesk, Inwerk, Charcoal, iMovR, Buldesk, Workrite, UpDesk
Actiforce Steelcase
Conset Conset, Flexiwork
@sarthakpranesh
sarthakpranesh / cleanMacVMs.sh
Last active June 5, 2025 18:58
Debloat Mac OS ( use at your own risk )
# I use MacOS VMs from github for iOS development.
# By no suprise they are a bit slow and have a lot of things I don't use
# Hence this script for lighter and better VM for my iOS development and builds
# GUI and animation related things to tweak
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
defaults write NSGlobalDomain NSWindowResizeTime -float 0.001
defaults write -g QLPanelAnimationDuration -float 0
defaults write com.apple.dock autohide-time-modifier -float 0
defaults write com.apple.dock launchanim -bool false
sudo sysctl debug.lowpri_throttle_enabled=0
@HahaBill
HahaBill / How to Have a Successful Application to Google Summer of Code by Ton Hoang Nguyen.md
Last active June 5, 2025 18:56
Cracking the Google Summer of Code Application: A Pattern-Based Guide ☀️ - Insights from successful applications to Google DeepMind (2025) and Joplin (2024)

How to Have a Successful Application to Google Summer of Code ☀️

By Ton Hoang Nguyen (Bill)
Accepted to Google DeepMind (GSoC 2025) and Joplin (GSoC 2024)

Last Updated: Mon 26 May 2025

Hi! I welcome you to the document that explains how to create the most successful application for Google Summer of Code based on my observations and discovered patterns. This will not only apply to Google Summer of Code, but it will also be helpful in other aspects of your professional life.

There's a hidden pattern to successful Google Summer of Code applications - one that I discovered after being accepted to not just one but two GSoC organizations: Google DeepMind and Joplin.