Work in Progress — POC only
The context: old PCs running Windows 10 that can't upgrade to Windows 11. End-of-life is coming, migration isn't an option. The idea is to replace Windows with NixOS — but these machines have spinning HDDs where boot time is a real concern.
This POC is a first step to understand whether Composefs could help reduce the symlink overhead in the Nix store. I'd like to keep testing the actual impact before drawing any conclusions.
This file contains hidden or 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
| aws logs get-query-results --output text --query 'results[]|[?field==`@message`][value]' --query-id $(aws logs start-query --log-group-name "XXXX" --start-time `date -d '12 hour ago' "+%s"` --end-time `date "+%s"` --output text --query-string 'fields @message |filter (@logStream like /YYY/) | sort @timestamp desc | limit 20') |
This file contains hidden or 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
| package main | |
| import ( | |
| "encoding/binary" | |
| "fmt" | |
| "io" | |
| "log" | |
| "net" | |
| "os" | |
| "strconv" |
This file contains hidden or 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
| #!/usr/bin/env | |
| docker run --interactive --tty --rm --env CODECLIMATE_CODE="$PWD" --volume "$PWD":/code --volume /var/run/docker.sock:/var/run/docker.sock --volume /tmp/cc:/tmp/cc codeclimate/codeclimate engines:install | |
| docker run --interactive --tty --rm --env CODECLIMATE_CODE="$PWD" --volume "$PWD":/code --volume /var/run/docker.sock:/var/run/docker.sock --volume /tmp/cc:/tmp/cc codeclimate/codeclimate analyze -f text |
This file contains hidden or 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
| vagrant init centos/7 | |
| vagrant up && vagrant ssh | |
| sudo yum install -y epel-release && sudo yum install -y docker npm git | |
| git clone https://github.com/portainer/portainer.git && cd portainer | |
| sudo ln -s /usr/bin/sha1sum /usr/bin/shasum | |
| npm install && sudo npm i -g grunt | |
| sudo systemctl start docker && sudo chmod o+rw /var/run/docker.sock && sudo setenforce 0 | |
| grunt build | |
| grunt run-dev |
This file contains hidden or 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
| rpm -qa --queryformat '%{size} %{name}\n' | sort -rn | more |
This file contains hidden or 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
| require 'logger' | |
| module Dim | |
| class Logger < ::Logger | |
| def initialize(*) | |
| super | |
| @formatter = NoTimestampFormatter.new | |
| end | |
| end |
NewerOlder