This file contains 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 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 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 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 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 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 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 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 |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>three.js webgl - geometry - cube</title> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
margin: 0px; | |
background-color: #000000; |
NewerOlder