Skip to content

Instantly share code, notes, and snippets.

@debasishg
debasishg / dod.md
Last active April 21, 2025 19:11
Data oriented design, hardware awareness, cache awareness in data structures & algorithms
@andriytk
andriytk / qemu-on-mac-nat.md
Last active December 27, 2024 14:16
Configure NAT-network for QEMU on macOS Mojave

Configure NAT-network for QEMU on macOS Mojave

Prerequisites:

  1. Install qemu via MacPorts.
  2. Install tuntap via brew.

Steps:

  1. Add a bridge with some Thunderbolt interface via System Preferences -> Network -> Manage Virtual interfaces:
@radiantly
radiantly / noMangleGoogle.user.js
Last active February 4, 2025 20:32
Prevent Google from mangling links on the search results when clicking or copying on Firefox
// ==UserScript==
// @name Prevent link mangling on Google
// @namespace LordBusiness.LMG
// @match https://www.google.com/search
// @grant none
// @version 1.1
// @author radiantly
// @description Prevent google from mangling the link when copying or clicking the link on Firefox
// ==/UserScript==
@yogthos
yogthos / clojure-beginner.md
Last active April 18, 2025 02:43
Clojure beginner resources

Introductory resources

@573
573 / iso-config.nix
Last active January 17, 2024 21:32
Using a nixos qemu machine for fun and profit howto, as well creating iso files.
{ pkgs, lib, ... }:
with lib;
{
config = {
i18n.defaultLocale = "de_DE.UTF-8";
time.timeZone = "Europe/Paris";
services = {
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active April 22, 2025 03:42
set -e, -u, -o, -x pipefail explanation
@romainl
romainl / dynaline.gif
Last active March 20, 2024 10:11
How to add dynamic highlighted parts to your status-line
dynaline.gif
title author
Glassery
Oleg Grenrus

After I have improved the raw performance of optika – a JavaScript optics library, it's time to make the library (feature-)complete and sound. Gathering and classifying all possible optic types, gives us a reference point

@freyes
freyes / gist:dfc3f5232526a62bbc09adc816e0477d
Created April 11, 2016 12:42
bluetoothd: a2dp-sink profile connect failed for AA:BB:CC:DD:EE:00: Protocol not available
Source: https://g751jy.wordpress.com/about/parrot-zik-bluetooth-headset/
https://bbs.archlinux.org/viewtopic.php?id=194006
Cached: http://webcache.googleusercontent.com/search?q=cache:4stTobIXSD0J:https://g751jy.wordpress.com/about/parrot-zik-bluetooth-headset/+&cd=3&hl=en&ct=clnk&gl=us
Bug and possible solution: actually I found a bug in that make the headset unusable, it seems that the pulse audio module: module-bluetooth-discover works only if started after the X11 session is up. So I have a workaround.
Edit the file:
/etc/pulse/default.pa