Skip to content

Instantly share code, notes, and snippets.

name: Automatic merge if CI builds
on:
push:
branches:
- 'update/*'
jobs:
wait-for-check-regexp:
runs-on: ubuntu-latest
if: github.actor == 'numtide-bot'
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/wxcmkklql7al9z1ipp62z855i3b0bqhy-search
source root is search
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
@nix { "action": "setPhase", "phase": "buildPhase" }
building
[scott@dev01:~/STAG]$ ./dev.sh
🔨 Welcome to devshell
[general commands]
dotnet - .NET SDK 6.0.100
just - A handy way to save and run project-specific commands
menu - prints this menu
niv - Easy dependency management for Nix projects
node - Event-driven I/O framework for the V8 JavaScript engine
╭─[~PRJ_ROOT/stag-api]─[stag-api-nixos*]─⇡
╰─ % DOTNET_ROOT='/nix/store/5kniz6zwqgvq56h6nlqm4yvgidz7xva3-aspnetcore-runtime-5.0.12' dotnet ef database update --assembly /nix/store/zcfx1fx62c52wmyjvmqni294xklxnb9m-stag-api-0/lib/STAGWeb/STAGWeb
System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
Could not load file or assembly 'Microsoft.AspNetCore.Mvc.ViewFeatures, Version=5.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' or one of its dependencies.
Could not load file or assembly 'Microsoft.AspNetCore.Mvc.ViewFeatures, Version=5.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' or one of its dependencies.
Could not load file or assembly 'Microsoft.AspNetCore.Mvc.ViewFeatures, Version=5.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' or one of its dependencies.
Could not load file or assembly 'Microsoft.AspNetCore.Mvc.ViewFeatures, Version=5.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' or one of its
diff --git a/.envrc b/.envrc
index 8aaa78e..1d47631 100644
--- a/.envrc
+++ b/.envrc
@@ -7,6 +7,17 @@ watch_dir nix
watch_file default.nix BUILD.nix
# Build and load the devshell
-out=$(nix-build -A shell --no-out-link)
+layout_dir=$(direnv_layout_dir)
@Mic92
Mic92 / wormhole-client
Last active February 13, 2022 19:35
Proof of concept for sharing tmux with wormhole port forwarding based on https://github.com/magic-wormhole/magic-wormhole.rs/pull/135/
#!/usr/bin/env bash
set -eux -o pipefail
export PATH=$(pwd)/target/debug:$PATH
wormhole forward connect --port=2010 "$1" &
sleep 10
socat file:`tty`,raw,echo=0 tcp-connect:localhost:2010
@Mic92
Mic92 / ubuntu-sleep.yaml
Created January 20, 2022 14:51 — forked from tcdowney/ubuntu-sleep.yaml
Ubuntu Sleep Pod
apiVersion: v1
kind: Pod
metadata:
name: ubuntu
labels:
app: ubuntu
spec:
containers:
- image: ubuntu
command:
@Mic92
Mic92 / .emacs.el
Created January 28, 2020 15:45
Mu4e: mark as read and move to spam folder action.
(setq mu4e-spam-folder "/thalheim.io/Spam")
;; Mark as read and move to spam
(add-to-list 'mu4e-marks
'(spam
:char "S"
:prompt "Spam"
:show-target (lambda (target) mu4e-spam-folder)
:action (lambda (docid msg target)
(mu4e~proc-move docid mu4e-spam-folder "+S-u-N"))))
@Mic92
Mic92 / default.nix
Last active December 20, 2021 12:44
package for llvm lnt
{ python3, fetchFromGitHub, lib, lit }:
let
packageOverrides = self: super: {
sqlalchemy = super.sqlalchemy.overridePythonAttrs (oldAttrs: rec {
version = "1.2.19";
src = super.fetchPypi {
pname = "SQLAlchemy";
inherit version;
@Mic92
Mic92 / 0_README.md
Last active December 6, 2021 19:38
studiolink for nix
$ nix-shell 'https://gist.github.com/Mic92/93f65c4d42ac72c8d64397258cada90c/archive/0d27eed01e02b9d6d6ec501a6ac6d6a3ba6576c1.tar.gz' --command 'studio-link'