Skip to content

Instantly share code, notes, and snippets.

# Do not modify this file! It was generated by ‘nixos-generate-config’
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, ... }:
{
imports =
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
];
[root@nixos:~/nixpkgs]# nixos-version
19.03pre159472.80738ed9dc0 (Koi)
[root@nixos:~/nixpkgs]# git rev-parse HEAD
6f2475f5bf14963e6f8bdce7bbdc15d7ce7640e1
[root@nixos:~/nixpkgs]# nixos-rebuild -I nixpkgs=/root/nixpkgs switch --show-trace
building Nix...
building the system configuration...
trace: version 19.03.git.6f2475f does not appear in name nixos-version
nix-repl> stdenv = import <nixpkgs> {}
nix-repl> b = stdenv.lib.subtractLists stdenv.lib.platforms.i686 stdenv.lib.platforms.unix
nix-repl> builtins.trace b b
trace: [ { kernel = { families = { bsd = <CODE>; }; }; } { kernel = { families = { darwin = <CODE>; }; }; } { kernel = { _type = "kernel"; execFormat = { _type = "exec-format"; name = "elf"; }; families = { }; name = "linux"; }; } { kernel = { _type = "kernel"; execFormat = { _type = "exec-format"; name = "elf"; }; families = { }; name = "solaris"; }; } { abi = { _type = "abi"; name = "cygnus"; }; kernel = <CODE>; } ]
[ { ... } { ... } { ... } { ... } { ... } ]
nix-repl> builtins.trace stdenv.lib.platforms.unix stdenv.lib.platforms.unix
trace: [ { kernel = { families = { bsd = <CODE>; }; }; } { kernel = { families = { darwin = <CODE>; }; }; } { kernel = { _type = "kernel"; execFormat = { _type = "exec-format"; name = "elf"; }; families = { }; name = "linux"; }; } { kernel = { _type = "kernel"; execFormat = { _type = "exec-format"; name = "elf"; }; fa
M104 S0 ;extruder heater off
M140 S0 ; turn off bed
G91 ;relative positioning
G1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure
G1 Z+5 E-5 X-20 Y-20 F{speed_travel} ;move Z up a bit and retract filament even more
G28 X ; home x axis
G90 ;absolute positioning
G1 Y180 ; move platform forward for access
M84 ;steppers off
@cyounkins
cyounkins / Dockerfile
Created January 20, 2021 18:01
Testing niceness inside docker containers
FROM archlinux:latest
RUN pacman -Sy --noconfirm base-devel git
RUN mkdir /home/build
RUN chgrp nobody /home/build
RUN chmod g+ws /home/build
RUN setfacl -m u::rwx,g::rwx /home/build
RUN setfacl -d --set u::rwx,g::rwx,o::- /home/build
import gevent.monkey
gevent.monkey.patch_all()
import time
import pymongo
connection = pymongo.Connection(use_greenlets=True)
def task():
collection = connection.autoref.all_cars