Run a nix container with podman, with the container destination mounted as /mnt:
DEST=~/containers/nixos
mkdir -p $DEST/{dev,proc,etc/nixos}
podman run -v $DEST:/mnt -it --rm --cap-add SYS_ADMIN docker.io/nixos/nix:latest
| " Based on comment by mchlstckl | |
| " https://www.reddit.com/r/HelixEditor/comments/14aqztf/comment/jocslxs/ | |
| " Check the history of this gist for a changelist | |
| " Read NOTES and WARNINGS lower | |
| " Must be done first to tell other plugins that <space> is the leader key | |
| let mapleader=" " |
| (ns webdav | |
| (:require [clojure.string :as str] | |
| [clojure.data.xml :as xml] | |
| [org.httpkit.server :as hk-server])) | |
| ;; add the XML namespace that we'll use later | |
| (xml/alias-uri 'd "DAV:") | |
| (defn dissoc-in | |
| "Should be in the standard library..." |
| <form> | |
| <div class="svgContainer"> | |
| <div> | |
| <svg class="mySVG" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 200 200"> | |
| <defs> | |
| <circle id="armMaskPath" cx="100" cy="100" r="100"/> | |
| </defs> | |
| <clipPath id="armMask"> | |
| <use xlink:href="#armMaskPath" overflow="visible"/> | |
| </clipPath> |
| CREATE TABLE _SqliteDatabaseProperties (key TEXT, value TEXT, UNIQUE(key)); | |
| CREATE TABLE deleted_messages (ROWID INTEGER PRIMARY KEY AUTOINCREMENT UNIQUE, guid TEXT NOT NULL); | |
| CREATE TABLE sqlite_sequence(name,seq); | |
| CREATE TABLE chat_handle_join (chat_id INTEGER REFERENCES chat (ROWID) ON DELETE CASCADE, handle_id INTEGER REFERENCES handle (ROWID) ON DELETE CASCADE, UNIQUE(chat_id, handle_id)); | |
| CREATE TABLE sync_deleted_messages (ROWID INTEGER PRIMARY KEY AUTOINCREMENT UNIQUE, guid TEXT NOT NULL, recordID TEXT ); | |
| CREATE TABLE message_processing_task (ROWID INTEGER PRIMARY KEY AUTOINCREMENT UNIQUE, guid TEXT NOT NULL, task_flags INTEGER NOT NULL ); | |
| CREATE TABLE handle (ROWID INTEGER PRIMARY KEY AUTOINCREMENT UNIQUE, id TEXT NOT NULL, country TEXT, service TEXT NOT NULL, uncanonicalized_id TEXT, person_centric_id TEXT, UNIQUE (id, service) ); | |
| CREATE TABLE sync_deleted_chats (ROWID INTEGER PRIMARY KEY AUTOINCREMENT UNIQUE, guid TEXT NOT NULL, recordID TEXT,timestamp INTEGER); | |
| CREATE TABLE message_attachment_join |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <assert.h> | |
| FILE *in; long M[1<<24]={0}, *D, *R, H=0x130000, IP=0, T; | |
| long getu() { long t, h = getc(in); if (h < 0xC0) return h; | |
| t = ((h&0x1F) << 6) | (getc(in) & 0x3F); if (h < 0xE0) return t; | |
| t = ( t << 6) | (getc(in) & 0x3F); if (h < 0xF0) return t; | |
| t = ( t << 6) | (getc(in) & 0x3F); return t & 0x1FFFFF; } | |
| void putu(long c) { if (c < 0x80) { putchar(c); return; } | |
| if (c < 0x7FF) { putchar(0xC0|(c>>6)); } else { |
| /* | |
| STRINGS | |
| */ | |
| Assert.Equal(expectedString, actualString); | |
| Assert.StartsWith(expectedString, stringToCheck); | |
| Assert.EndsWith(expectedString, stringToCheck); | |
| // Some can also take optional params | |
| Assert.Equal(expectedString, actualString, ignoreCase: true); | |
| Assert.StartsWith(expectedString, stringToCheck, StringComparison.OrdinalIgnoreCase); |
| STARTFONT 2.1 | |
| COMMENT Copyright 2006 Sun Microsystems, Inc. All rights reserved. | |
| COMMENT Use is subject to license terms. | |
| COMMENT This is a derivation of a BDF font from the X consolidation | |
| COMMENT Originally a BSD vfont. | |
| COMMENT Re-built BDF and ISO10646-1 from hex code originally in | |
| COMMENT illumos usr/src/uts/common/font/12x22.c | |
| FONT -Sun-Gallant-Demi-R-Normal--19-190-72-72-C-120-ISO10646-1 | |
| SIZE 19 72 72 | |
| FONTBOUNDINGBOX 12 22 0 -5 |
| import ( | |
| "github.com/fogleman/gg" | |
| "image/color/palette" | |
| "strconv" | |
| "image/color" | |
| ) | |
| func main() { | |
| const numSquaresPerRow = 16. | |
| const numSquaresPerColumn = numSquaresPerRow |
| <?xml version="1.0" standalone='no'?> | |
| <!DOCTYPE service-group SYSTEM "avahi-service.dtd"> | |
| <service-group> | |
| <name replace-wildcards="yes">%h</name> | |
| <service> | |
| <type>_adisk._tcp</type> | |
| <txt-record>sys=waMa=0,adVF=0x100</txt-record> | |
| <txt-record>dk0=adVN=Time Capsule,adVF=0x82</txt-record> | |
| </service> | |
| <service> |