- Encrypt everthing including /boot and /root
- Enter password once
- Support UEFI
Download NixOS minimal iso and copy to USB stick. For example on Mac OSX
$ diskutil list
$ diskutil unmountDisk /dev/disk1 # Make sure you got right device| events { | |
| worker_connections 1024; | |
| } | |
| http { | |
| # google's DNS server | |
| resolver 8.8.8.8; | |
| resolver_timeout 5s; | |
| server { | |
| # proxy server port |
| #!/usr/bin/env python3 | |
| import subprocess | |
| import json | |
| import os | |
| from pathlib import Path | |
| import requests | |
| from requests.compat import urljoin |
| #!/bin/bash | |
| DELAY=${DELAY:-10} | |
| LOOP=${LOOP:-0} | |
| r=`realpath $1` | |
| d=`dirname $r` | |
| pushd $d > /dev/null | |
| f=`basename $r` | |
| n=`webpinfo -summary $f | grep frames | sed -e 's/.* \([0-9]*\)$/\1/'` | |
| dur=`webpinfo -summary $f | grep Duration | head -1 | sed -e 's/.* \([0-9]*\)$/\1/'` |
| #!/usr/bin/env bash | |
| # author: unknown | |
| # | |
| # ▓▓▓▓▓▓▓▓▓▓ | |
| # ░▓ author ▓ cirrus <cirrus@archlinux.info> | |
| # ░▓ code ▓ https://gist.github.com/cirrusUK | |
| # ░▓ mirror ▓ http://cirrus.turtil.net | |
| # ░▓▓▓▓▓▓▓▓▓▓ | |
| # ░░░░░░░░░░ | |
| # |
| # | |
| # [2016-03-14] Challenge #258 [Easy] IRC: Making a Connection | |
| # https://www.reddit.com/r/dailyprogrammer/comments/4ad23z/20160314_challenge_258_easy_irc_making_a/ | |
| # | |
| import socket | |
| input = """chat.freenode.net:6667 | |
| dude1267 |
| { config, pkgs, ... }: | |
| let | |
| # Import unstable channel. | |
| # sudo nix-channel --add http://nixos.org/channels/nixpkgs-unstable nixpkgs-unstable | |
| # sudo nix-channel --update nixpkgs-unstable | |
| unstable = import <nixpkgs-unstable> {}; | |
| in | |
| { |
| # ============================================================================== | |
| # Elvish Aliases | |
| # ============================================================================== | |
| # Aliases | |
| # ----------------------------------------------------------------------------- | |
| # Git | |
| git-aliases = [ | |
| &prefix= "g" |
If you're looking to write fast code in Rust, good news! Rust makes it really easy to write really fast code. The focus on zero-cost abstractions, the lack of implicit boxing and the lifetime system that means memory is managed statically means that even naïve code is often faster than the equivalent in most other languages out there, and certainly faster than naïve code in any equivalently-safe language. Maybe, though, like most programmers you've spent your whole programming career safely insulated from having to think about any of this, and now you want to dig a little deeper and find out the real reason that