Skip to content

Instantly share code, notes, and snippets.

View torarvid's full-sized avatar

Tor Arvid Lund torarvid

View GitHub Profile
import asyncio
import traceback
from asyncio import TaskGroup
from typing import Awaitable, Callable
async def raiser(typ: type[Exception]):
raise typ(f"{typ.__name__} error")
@torarvid
torarvid / social-script.go
Created November 18, 2022 10:15
Generate some Slack reminders about social stuff
package main
import (
"fmt"
"time"
)
var msg = "/remind #logistics-platform-picking-automation \"Hi there, " +
"@logistics-picking-automation-team. Been working hard lately? Do you think it's about time " +
"that you and your team members chill out and do something social in the next week or two? " +

Disable Device Enrollment Program (DEP) notification on macOS Catalina.md

  1. Boot to Recovery Mode by holding command-R during restart

  2. Open Tools → Terminal and type

$ csrutil disable
$ reboot
package main
import (
"fmt"
"log"
"math"
"strconv"
"strings"
"github.com/torarvid/aoc19/util"

Keybase proof

I hereby claim:

  • I am torarvid on github.
  • I am torarvid (https://keybase.io/torarvid) on keybase.
  • I have a public key ASCZ8f1AzOZlGLkzb4BNrS_Dqck1X_PIimU_wvrvc7aWTQo

To claim this, I am signing this object: