Skip to content

Instantly share code, notes, and snippets.

@dotnetCarpenter
dotnetCarpenter / gpg.strace
Created May 10, 2019 10:17
WSL Ubuntu: git gpg signing Inappropriate ioctl for device
5834 execve("/usr/bin/gpg", ["gpg", "--clearsign"], 0x7fffe5253560 /* 23 vars */) = 0
5834 brk(NULL) = 0x7fffcb04c000
5834 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
5834 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
5834 openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
5834 fstat(3, {st_mode=S_IFREG|0644, st_size=22726, ...}) = 0
5834 mmap(NULL, 22726, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fa8e7598000
5834 close(3) = 0
5834 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
5834 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
@dotnetCarpenter
dotnetCarpenter / combinators.js
Created August 16, 2021 11:51 — forked from Avaq/combinators.js
Common combinators in JavaScript
const I = x => x
const K = x => y => x
const A = f => x => f (x)
const T = x => f => f (x)
const W = f => x => f (x) (x)
const C = f => y => x => f (x) (y)
const B = f => g => x => f (g (x))
const S = f => g => x => f (x) (g (x))
const S_ = f => g => x => f (g (x)) (x)
const S2 = f => g => h => x => f (g (x)) (h (x))
@dotnetCarpenter
dotnetCarpenter / index.html
Last active January 27, 2022 16:54
Trying to figure out how to refactor code to use a State Monad like monastic
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1>Heading 1</h1>
@dotnetCarpenter
dotnetCarpenter / FiltrerSportFra.user.js
Last active October 22, 2024 19:18
Filtrer sport på dr.dk/nyheder fra.
// @ts-check
// ==UserScript==
// @name Filtrer sport
// @namespace http://tampermonkey.net/
// @version 2024.10.22
// @description Filtrer sport på dr.dk/nyheder fra.
// @author dotnetCarpenter
// @match https://www.dr.dk/nyheder
// @icon https://www.google.com/s2/favicons?sz=64&domain=dr.dk
// @grant none