Skip to content

Instantly share code, notes, and snippets.

@david0
david0 / variables.md
Created September 5, 2024 14:19
Rosetta Environment variables
  • ROSETTA_DEBUGSERVER_PORT
  • ROSETTA_MEMORY_ACCESS_INSTRUMENTATION
  • ROSETTA_DISABLE_AOT
  • ROSETTA_PRINT_SEGMENTS
  • ROSETTA_PRINT_IR
  • ROSETTA_ALLOW_GUARD_PAGES
  • ROSETTA_AOT_ERRORS_ARE_FATAL
  • ROSETTA_DISABLE_EXCEPTIONS
  • ROSETTA_DISABLE_SIGACTION
  • ROSETTA_HARDWARE_TRACING_PATH
openapi: "3.0.0"
info:
version: 1.0.0
title: OneOf example
paths:
/search:
post:
requestBody:
content:
application/json:
@david0
david0 / logstash-hl.py
Created September 22, 2022 14:21
Script for formatting logstash logs in a human readable manner
#!/usr/bin/env python3 -u
import json
import fileinput
class Terminal(object):
FG_RED = "\033[31m"
FG_YELLOW = "\033[33m"
BOLD = "\033[1m"
DIM = "\033[2m"
@david0
david0 / reaper-update.sh
Last active January 15, 2021 08:34
Reaper update script
#!/bin/sh
#RESPONSE=`curl -s https://www.landoleet.org/`
ping -c1 google.de || exit -1
NEWVERISON=6.`~/bin/reaper-download-url|grep -o '/reaper[^>]*_linux_x86_64.tar.xz'|tail -1|cut -c9-| cut -d_ -f1`
cd ~/aur/reaper
git reset --hard origin/master
@david0
david0 / com.apple.keyboardtype.plist
Last active January 21, 2021 07:43
Karabiner Neo2 Config without sticky M4

Tested with: https://jsfiddle.net/xpvt214o/160079/

method   browser        key             which   keyCode charCode
----------------------------------------------------------------
keydown  Chrome         l               76      76      0   
keydown  Chrome         numpad enter    13      13      0   
keydown  Firefox        l               76      76      0
keydown  Firefox        numpad enter    13      13      0
keydown IE l 76 76 0 
@david0
david0 / LdifFilteringParser.py
Created September 22, 2017 06:23
LdifFilteringParser
#!/usr/bin/python3
from sys import argv, stdout
class LdifFilteringParser(object):
def __init__(self, input, output):
self.output = output
self.input = input
@david0
david0 / cindent.sh
Created July 21, 2017 07:41
my indent configuration
#!/bin/sh
gindent -nbad -bap -nbc -bbo -hnl -nprs-br -brs -c33 -cd33 -ncdb -ce -ci4 -cli0 -d0 -di1 -nfc1 -i8 -ip0 -l80 -lp -npcs -npsl -sai -saf -saw -ncs -nsc -sob -nfca -cp33 -ss -ts8 -il1 -l100 -ncdb -bli0 $*
@david0
david0 / agile-speed-date.html
Created May 9, 2017 06:26
Agile Speed Date Tool
<!DOCTYPE html>
<html>
<head>
<title>Agile Speeddating</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"/>
<link href="https://fonts.googleapis.com/css?family=Varela+Round" rel="stylesheet">
<script type="text/javascript" src="https://unpkg.com/vue@latest/dist/vue.js"></script>
<script type="text/javascript" src=" https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
<style type="text/css">
@david0
david0 / gist:6b73867e124c6e746a8c5485572eece9
Last active December 14, 2016 18:04
calf compile without cairo fails
HEAD is now at c439140 Phaser, Flanger, Multi Chorus: add play/pause toggle for LFO in order to control modulation manually; fixes #103
==> Downloading https://github.com/david0/calf/commit/d2f174083d97ce0f6930fc28764fdec80810f464.patch
Already downloaded: /Users/ottodavid/Library/Caches/Homebrew/calf--patch-e63a29017ce1cfff2a374f48fc3f2d99463851e88e5462aa5bc6475a870124f7.patch
==> Verifying calf--patch-e63a29017ce1cfff2a374f48fc3f2d99463851e88e5462aa5bc6475a870124f7.patch checksum
==> Patching
==> Applying d2f174083d97ce0f6930fc28764fdec80810f464.patch
/usr/bin/patch -g 0 -f -p1 -i /private/tmp/calf--patch-20161214-2143-1jm19xk/d2f174083d97ce0f6930fc28764fdec80810f464.patch
patching file configure.ac
patching file src/Makefile.am
==> ./autogen.sh --disable-dependency-tracking --prefix=/usr/local/Cellar/calf/HEAD-c439140 --with-lv2-dir=/usr/local/Cellar/calf/HEAD-c439140/lib/lv2/