Skip to content

Instantly share code, notes, and snippets.

Avatar

Casey Ransom cransom

View GitHub Profile
View gist:c96579340f8c2eebe43bf7a6889979fb
boot.loader.systemd-boot.enable = false;
boot.loader.grub.enable = true;
boot.loader.grub.efiSupport = true;
boot.loader.grub.mirroredBoots = [
{
devices = [ "nodev" ];
efiSysMountPoint = "/boot1";
path = "/boot1";
}
{
View krainthx
#!/usr/bin/perl -w
# $Id: krainthx,v 1.7 2003/04/14 20:00:33 spy Exp $
# ben
#initialize color map and set counters
@colormap = (4,4, 7,7, 5,5, 8,8, 9,9, 3,3, 10,10, 11,11, 12,12, 2,2, 6,6, 13,13);
my $row = 0;
my $rainstate = 0;
my $badstate = 0;
# setup tmp filE
View python3.log
This file has been truncated, but you can view the full file.
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/9hqyczcmvdzkss8mfcgwpngnjw7jhnz0-Python-3.8.3.tar.xz
source root is Python-3.8.3
setting SOURCE_DATE_EPOCH to timestamp 1589399966 of file Python-3.8.3/Misc/NEWS
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
applying patch /nix/store/gd8ycd6j3qhcq1qccaqz68zdq5l4c2wf-no-ldconfig.patch
patching file Lib/ctypes/util.py
View python.log
This file has been truncated, but you can view the full file.
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/s0aww2rrl516yzf5lxsnvvl9s6bmnif5-Python-2.7.18.tar.xz
source root is Python-2.7.18
setting SOURCE_DATE_EPOCH to timestamp 1587332735 of file Python-2.7.18/Misc/NEWS
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
applying patch /nix/store/cfk04ans56xql9l6waqhqzzd60g9rzxi-search-path.patch
patching file setup.py
View gk build results
mac mini 2018, 6 core i7, 32g ram.
existing state, spctl --status -> disabled. built on current nixos-20.03
nix-build . -A hello --option substitute false 4063.92s user 1506.59s system 247% cpu 37:31.37 total
spctl --master-enable, reboot. nix-collect-garbage.
nix-build . -A hello --option substitute false 3972.94s user 1465.92s system 237% cpu 38:09.38 total
View gist:8ccd9bca741e71dc7b92f1895977d729
assessment denied for conftest but overridden
com.apple.message.domain: com.apple.security.assessment.outcome2
com.apple.message.signature2: bundle:UNBUNDLED
com.apple.message.signature3: conftest
com.apple.message.signature5: UNKNOWN
com.apple.message.signature4: 1
com.apple.message.signature: defeated:no usable signature
SenderMachUUID: 65E0223C-EC48-38BC-86D2-B2F6742C840C
View unit-status.nix
systemd.services."unit-status@" = {
path = [ (pkgs.curl) (pkgs.systemd) ];
serviceConfig.ExecStart = "${
pkgs.writeScript "notifier" ''
#!${pkgs.bash}/bin/bash
curl -s \
--form-string "token=${secrets.pushover.token}" \
--form-string "user=${secrets.pushover.user}" \
--form-string "title=$2 - $1 failed." \
--form-string "message=$(journalctl -u $1 -n 5)" \
View out.sh
0ogre:~% curl https://gsc.io/content-addressed/ab9f2149647bc178d75f8157c8eec084e13daf775a2c8212004641017bddb034.sh | sh 2020-04-01 9:49:26 AM
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 263 100 263 0 0 1765 0 --:--:-- --:--:-- --:--:-- 1765
+ nix-store -r /nix/store/dhnspmn5hc312lm46a98w4n1bz27bp40-ghc-8.8.3
these paths will be fetched (193.25 MiB download, 2139.79 MiB unpacked):
/nix/store/08bbpmxrlsfski3avp7r4a1jkby21wbi-libffi-3.3-dev
/nix/store/0gr5bsynx3qnxwplqdzgj0gb60mhnzy0-libunistring-0.9.10
/nix/store/1vis9ln4n5l40860hyhgkx1g05pg5bhr-acl-2.2.53
/nix/store/1wb31gzrjw055xl6d3igzj1gnajzlwbk-gcc-wrapper-9.2.0
@cransom
cransom / memcacheq.nix
Created Mar 24, 2020
saving this for later
View memcacheq.nix
{ gcc49Stdenv, fetchFromGitHub, libevent, db4 }:
gcc49Stdenv.mkDerivation {
name = "memcacheq";
buildInputs = [ libevent db4 ];
configureFlags = [ "--enable-threads" ];
src = fetchFromGitHub {
owner = "stvchu";
View gist:80ee0ae4df7a7cfcddefff3b9f27de89
temp=81.9 temp=159.3
temp=81.0 temp=159.4
temp=81.8 temp=159.4
temp=79.0 temp=159.5
temp=80.5 temp=159.7
temp=79.2 temp=159.8
temp=82.0 temp=160.0
temp=80.7 temp=160.1
temp=80.2 temp=160.2
temp=79.1 temp=160.4
You can’t perform that action at this time.