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
Aliases: | |
map[string]string{} | |
Override: | |
map[string]interface {}{"v":"999"} | |
PFlags: | |
map[string]viper.FlagValue{"apiserver-names":viper.pflagValue{flag:(*pflag.Flag)(0xc42045cbe0)}, "host-only-cidr":viper.pflagValue{flag:(*pflag.Flag)(0xc42045c000)}, "profile":viper.pflagValue{flag:(*pflag.Flag)(0xc42047edc0)}, "disable-driver-mounts":viper.pflagValue{flag:(*pflag.Flag)(0xc42047fc20)}, "container-runtime":viper.pflagValue{flag:(*pflag.Flag)(0xc42045cfa0)}, "apiserver-ips":viper.pflagValue{flag:(*pflag.Flag)(0xc42045cc80)}, "iso-url":viper.pflagValue{flag:(*pflag.Flag)(0xc42047fcc0)}, "mount-string":viper.pflagValue{flag:(*pflag.Flag)(0xc42047fb80)}, "nfs-share":viper.pflagValue{flag:(*pflag.Flag)(0xc42045c500)}, "registry-mirror":viper.pflagValue{flag:(*pflag.Flag)(0xc42045ce60)}, "keep-context":viper.pflagValue{flag:(*pflag.Flag)(0xc42047fa40)}, "memory":viper.pflagValue{flag:(*pflag.Flag)(0xc42047fe00)}, "apiserver-name":viper.pflagValue{flag:(*pflag.Flag)(0xc42045cb40)}, "cache-images":viper.pflagValue{flag:( |
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
{-# LANGUAGE BangPatterns #-} | |
{-# LANGUAGE Strict #-} | |
{-# LANGUAGE StrictData #-} | |
import Debug.Trace | |
import System.IO | |
import System.IO.Unsafe | |
main :: IO () | |
main = do | |
hSetBuffering stderr NoBuffering |
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
Wed Jan 2 20:15 2019 Time and Allocation Profiling Report (Final) | |
app +RTS -p -RTS | |
total time = 0.00 secs (0 ticks @ 1000 us, 1 processor) | |
total alloc = 191,904 bytes (excludes profiling overheads) | |
COST CENTRE MODULE SRC %time %alloc | |
CAF GHC.IO.Handle.FD <entire-module> 0.0 18.1 |
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
Wed Jan 2 20:20 2019 Time and Allocation Profiling Report (Final) | |
app +RTS -p -RTS | |
total time = 7.43 secs (7434 ticks @ 1000 us, 1 processor) | |
total alloc = 30,408,423,160 bytes (excludes profiling overheads) | |
COST CENTRE MODULE SRC %time %alloc | |
memoize DiscreteOscillators src/DiscreteOscillators.hs:55:1-29 55.1 48.4 |
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
parted -s /dev/sda -- mkpart primary 512MiB -2GiB | |
parted -s /dev/sda -- mkpart primary linux-swap -2GiB 100% | |
parted -s /dev/sda -- mkpart ESP fat32 1MiB 512MiB | |
parted -s /dev/sda -- set 3 boot on | |
mkfs.ext4 -L nixos /dev/sda1 | |
mkswap -L swap /dev/sda2 |
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
mount /dev/sda1 /mnt | |
mkdir -p /mnt/boot | |
mount /dev/disk/by-label/boot /mnt/boot | |
swapon /dev/sda2 | |
nixos-generate-config --root /mnt | |
nixos-install |
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
(define-key yas-minor-mode-map (kbd "<tab>") nil) | |
(define-key yas-minor-mode-map (kbd "TAB") nil) | |
(define-key yas-minor-mode-map (kbd "<backtab>") 'yas-expand) |
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
with import <nixpkgs> {}; | |
stdenv.mkDerivation { | |
name = "test-environment"; | |
# Add the derivation to the PATH | |
buildInputs = [ stdenv coreutils ripgrep ]; | |
builder = "${bash}/bin/bash"; | |
args = [ ./builder.sh ]; | |
system = builtins.currentSystem; |
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
root@localhost:~/kubespray# ansible-playbook -i inventory/mycluster/hosts.yml --become --become-user=root cluster.yml | |
PLAY [localhost] ********************************************************************************************************************************************************************* | |
TASK [Check ansible version >=2.7.8] ************************************************************************************************************************************************* | |
Wednesday 15 May 2019 17:10:17 +0000 (0:00:00.128) 0:00:00.128 ********* | |
ok: [localhost] => { | |
"changed": false, | |
"msg": "All assertions passed" | |
} |
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
nix-build | |
these derivations will be built: | |
/nix/store/9797fl2r6rinw1mb7b8ayi6jxj3a7l1r-app.drv | |
building '/nix/store/9797fl2r6rinw1mb7b8ayi6jxj3a7l1r-app.drv'... | |
unpacking sources | |
unpacking source archive /nix/store/q481gqrxwra22i3nhidvx59l9pcf0yw4-app.zip | |
unpacker produced multiple directories | |
builder for '/nix/store/9797fl2r6rinw1mb7b8ayi6jxj3a7l1r-app.drv' failed with exit code 1 | |
error: build of '/nix/store/9797fl2r6rinw1mb7b8ayi6jxj3a7l1r-app.drv' failed |