Skip to content

Instantly share code, notes, and snippets.

View maxnowack's full-sized avatar
🍷
digitalizing viticulture

Max Nowack maxnowack

🍷
digitalizing viticulture
View GitHub Profile
export default [{
num: 1,
family_id: 1,
evolve_to: 2,
candy: 25,
}, {
num: 2,
family_id: 1,
evolve_to: 3,
candy: 100,
This file has been truncated, but you can view the full file.
$ sudo dtruss -p 79001
SYSCALL(args) = return
psynch_mutexdrop(0x1015A0850, 0x8D51903, 0x8D51800) = 0 0
psynch_mutexdrop(0x1015A0850, 0x8D51A03, 0x8D51900) = 0 0
psynch_mutexwait(0x1015A0850, 0x8D51A03, 0x8D51800) = 148183555 0
stat64("/Users/maxnowack/code/teamgrid/packages/teamgrid-base\0", 0x7000092D8E80, 0x0) = 0 0
psynch_mutexwait(0x1015A0850, 0x8D51B03, 0x8D51900) = 148183811 0
psynch_cvsignal(0x1015A0890, 0x51A3F50051A3F800, 0x51A3F500) = 256 0
psynch_mutexdrop(0x1015A0850, 0x8D51D03, 0x8D51B00) = 0 0
psynch_mutexwait(0x1015A0850, 0x8D51C03, 0x8D51A00) = 148184323 0
@maxnowack
maxnowack / streamer.js
Last active February 22, 2018 09:39
Monkeypatch for rocketchat:streamer until RocketChat/meteor-streamer#28 gets merged
import { Meteor } from 'meteor/meteor'
import { check, Match } from 'meteor/check'
// Monkeypatch publication function to add missing check.
// should be removed if RocketChat/meteor-streamer#28 gets merged
Meteor.Streamer.prototype.iniPublication = function iniPublication() {
const stream = this
Meteor.publish(this.subscriptionName, function publishStream(eventName, options) {
check(eventName, String)
check(options, Match.OneOf(Boolean, {
@maxnowack
maxnowack / config.yml
Created April 20, 2018 09:38
CircleCI Meteor Caching
version: 2
jobs:
unit-tests:
working_directory: ~/app
docker:
- image: circleci/node:latest
environment:
# lang settings required for Meteor's Mongo
LANG: C.UTF-8
LANGUAGE: C.UTF-8
{
"meta": { "theme": "paper" },
"basics": {
"name": "Max Nowack",
"label": "Software Developer",
"picture": "",
"email": "[email protected]",
"phone": "+49 171 4470 181",
"website": "",
"summary": "",
#!/bin/bash
homebridge_name=$1
set -euo pipefail
IFS=$'\n\t'
function create_service_file {
local name=$1
local accessory_category=$2
local mac_address=$3
---
kind: ConfigMap
apiVersion: v1
metadata:
labels:
role: mongo-backup
name: mgob-config
data:
database-backups.yml: |
scheduler:
import fetch from 'node-fetch'
interface ShortGUID {
value: string;
shouldFetchRootRecord: boolean;
}
interface ZoneID {
zoneName: string;
ownerRecordName: string;
@maxnowack
maxnowack / connect-airpods.sh
Last active October 26, 2022 08:24
Shell script to connect or disconnect my airpods with my mac.
airpods="LuftSchoten"
toggle=$1
osascript <<END
use framework "IOBluetooth"
use scripting additions
set AirPodsName to "$airpods"
set toggle to "$toggle"
on getFirstMatchingDevice(deviceName)