This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# alt shebang to autoload deps | |
#!/usr/bin/env nix | |
#! nix shell --file ``<nixpkgs>`` bash wmctrl ripgrep pstree --command bash | |
# This is a script to run programs as floating windows in i3 window manager. | |
# The passed command is run and any X windows it creates are moved to a | |
# floating split container. (or you can pass a custom i3 mark) | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env nu | |
let BRAVE = ( glob ~/.config/BraveSoftware/Brave-Browser/Default/).0 | |
def _history [] { | |
# make a copy of the history db, because it is locked when brave is open | |
let p = (mktemp -t) | |
cp $"($BRAVE)/History" $p | |
open $p |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div> | |
<!-- | |
This part could be better with CSS3 attr() if any browser actually supported it. | |
then we could use attributes instead of inline style, which would make selecting an element easier. | |
-->> | |
<div style="grid-row: 1"> | |
<div style="grid-column: 1">A</div> | |
<div style="grid-column: 2">B</div> | |
</div> | |
<div style="grid-row: 2"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, pkgs, lib, ... }: | |
let | |
test_domain = "test.example.com"; | |
perlEnv = pkgs.perl.withPackages (p: with p; [ | |
CGI | |
]); | |
in | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Sick of the type system catching your mistakes? | |
Wish you could just yeet anything into a hashmap with arbitrary key and value types like in python? | |
Wish that unlike python, you could have the same key map to differnt entries for each type of data? | |
Well, this is for you. | |
motivation: I need runtime configured models (blackbox computation) which can depend on each other. | |
idea: Create a cache of all the state the program knows about. Models access state by key and type. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, lib, pkgs, ... }: | |
{ | |
systemd = { | |
services.nixos-update-prebuild = { | |
serviceConfig.Type = "oneshot"; | |
environment.PATH = lib.mkForce "/run/current-system/sw/bin"; | |
script = '' | |
source /etc/profile | |
mkdir -p /var/lib/nixos-update-prebuild | |
cd /var/lib/nixos-update-prebuild |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://hypercore-protocol.org/protocol/#hypercore | |
https://yggdrasil-network.github.io/ | |
https://github.com/cjdelisle/cjdns | |
https://github.com/ipfs/ipfs | |
https://urbit.org/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BASE=$2 | |
OUT=diff.tar | |
if test -z "$TMP"; then | |
TMP=`mktemp -d -t tardiff-XXXXXXXX` | |
else | |
TMP=`realpath $TMP` | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Edit this configuration file to define what should be installed on | |
# your system. Help is available in the configuration.nix(5) man page | |
# and in the NixOS manual (accessible by running ‘nixos-help’). | |
{ config, pkgs, lib, ... }: | |
{ | |
imports = | |
[ # Include the results of the hardware scan. | |
./hardware-configuration.nix |
NewerOlder