Skip to content

Instantly share code, notes, and snippets.

@stesie
stesie / serverless-azure-functions-auth.patch
Created October 9, 2018 11:31
Patch against serverless-azure-functions to use credentials from ~/.azure/accessTokens.json
diff -ur a/node_modules/serverless-azure-functions/provider/azureProvider.js b/node_modules/serverless-azure-functions/provider/azureProvider.js
--- a/node_modules/serverless-azure-functions/provider/azureProvider.js 2018-10-09 11:53:42.151689784 +0200
+++ b/node_modules/serverless-azure-functions/provider/azureProvider.js 2018-10-09 13:18:20.771792944 +0200
@@ -5,6 +5,8 @@
const resourceManagement = require('azure-arm-resource');
const path = require('path');
const fs = require('fs');
+const os = require('os');
+const msRestAzure = require('ms-rest-azure');
const request = require('request');
{ config, lib, pkgs, ... }:
let
extlinux-conf-builder =
import <nixpkgs/nixos/modules/system/boot/loader/generic-extlinux-compatible/extlinux-conf-builder.nix> {
pkgs = pkgs.buildPackages;
};
in
{
imports = [
Index: batman-adv-2013.4.0/bridge_loop_avoidance.c
===================================================================
--- batman-adv-2013.4.0.orig/bridge_loop_avoidance.c
+++ batman-adv-2013.4.0/bridge_loop_avoidance.c
@@ -351,7 +351,6 @@ static void batadv_bla_send_claim(struct
batadv_inc_counter(bat_priv, BATADV_CNT_RX);
batadv_add_counter(bat_priv, BATADV_CNT_RX_BYTES,
skb->len + ETH_HLEN);
- soft_iface->last_rx = jiffies;
package btools.mapcreator;
import btools.expressions.BExpressionContextWay;
import btools.expressions.BExpressionMetaData;
import btools.util.DenseLongMap;
import btools.util.TinyDenseLongMap;
import com.mongodb.MongoClient;
import com.mongodb.client.MongoCollection;
import org.bson.Document;
@stesie
stesie / Dockerfile
Created December 6, 2021 07:00
Dockerfile behind stesie/libv8-xxx containers
FROM ubuntu:focal AS builder
RUN apt-get update && apt-get -y install build-essential curl git python libglib2.0-dev
RUN git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git /depot_tools
# export PATH=`pwd`/depot_tools:"$PATH"
ARG V8VER_FULL
RUN test "$V8VER_FULL" != ""
WORKDIR /tmp
@stesie
stesie / festival-lineup.jsonl
Last active September 7, 2024 20:49
Stramu Würzburg 2024 lineup
{"location": "Rathaus Ehrenhof/ Innenhof", "day": "Freitag", "start": "15:30", "artist": "Super Cumbia"}
{"location": "Rathaus Ehrenhof/ Innenhof", "day": "Freitag", "start": "16:30", "artist": "Super Cumbia"}
{"location": "Rathaus Ehrenhof/ Innenhof", "day": "Freitag", "start": "17:45", "artist": "3:rma"}
{"location": "Rathaus Ehrenhof/ Innenhof", "day": "Freitag", "start": "18:45", "artist": "Eröffnung"}
{"location": "Rathaus Ehrenhof/ Innenhof", "day": "Freitag", "start": "19:00", "artist": "Björn Bergmann"}
{"location": "Rathaus Ehrenhof/ Innenhof", "day": "Freitag", "start": "20:00", "artist": "Björn Bergmann"}
{"location": "Rathaus Ehrenhof/ Innenhof", "day": "Freitag", "start": "21:10", "artist": "Tim McMillan & Rachel"}
{"location": "Rathaus Ehrenhof/ Innenhof", "day": "Samstag", "start": "13:00", "artist": "Janileigh Cohen"}
{"location": "Rathaus Ehrenhof/ Innenhof", "day": "Samstag", "start": "14:00", "artist": "Sultanita"}
{"location": "Rathaus Ehrenhof/ Innenhof", "day": "Samstag", "start": "15:00
@stesie
stesie / festival-lineup-gpt4o-mini.jsonl
Created September 7, 2024 20:49
Stramu Würzburg 2024 lineup
{"location": "Rathaus Ehrenhof/ Innenhof", "day": "Freitag", "start": "15:30", "artist": "Super Cumbia"}
{"location": "Rathaus Ehrenhof/ Innenhof", "day": "Freitag", "start": "16:30", "artist": "Super Cumbia"}
{"location": "Rathaus Ehrenhof/ Innenhof", "day": "Freitag", "start": "17:45", "artist": "3:rma"}
{"location": "Rathaus Ehrenhof/ Innenhof", "day": "Freitag", "start": "18:45", "artist": "Eröffnung"}
{"location": "Rathaus Ehrenhof/ Innenhof", "day": "Freitag", "start": "19:00", "artist": "Björn Bergmann"}
{"location": "Rathaus Ehrenhof/ Innenhof", "day": "Freitag", "start": "20:00", "artist": "Björn Bergmann"}
{"location": "Rathaus Ehrenhof/ Innenhof", "day": "Freitag", "start": "21:10", "artist": "Tim McMillan & Rachel"}
{"location": "Rathaus Ehrenhof/ Innenhof", "day": "Samstag", "start": "13:00", "artist": "Janileigh Cohen"}
{"location": "Rathaus Ehrenhof/ Innenhof", "day": "Samstag", "start": "14:00", "artist": "Sultanita"}
{"location": "Rathaus Ehrenhof/ Innenhof", "day": "Samstag", "start": "15:00