Skip to content

Instantly share code, notes, and snippets.

View vcunat's full-sized avatar
💭
🇺🇦🤞🏽

Vladimír Čunát vcunat

💭
🇺🇦🤞🏽
  • cz.nic labs @CZ-NIC
  • Czech Republic
View GitHub Profile
@vcunat
vcunat / release.nix
Last active December 20, 2017 14:35
{ nixpkgs ? <nixpkgs> }: {
inherit (import nixpkgs {}) hello;
}
@vcunat
vcunat / cloudfront.sh
Last active July 24, 2018 13:46 — forked from grahamc/cloudfront.sh
don't force dig to use IPv4
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p bind.dnsutils -p traceroute -p curl
# impure: needs ping
#source: https://s3.amazonaws.com/aws-cloudfront-testing/CustomerTesting.html
function _e {
echo "> $@"
eval "$@" 2>&1 | sed -e "s/^/ /"
printf "Exit: %s\n\n\n" "$?"
}
@vcunat
vcunat / schema.json
Created January 11, 2022 17:29
knot-resolver schema for YAML/JSON config [experimental]
{"$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": {"server": {"type": "object", "properties": {"hostname": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null}, "groupid": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null}, "nsid": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null}, "workers": {"anyOf": [{"enum": ["auto"]}, {"type": "integer"}], "default": 1}, "use_cache_gc": {"type": "boolean", "default": true}, "backend": {"enum": ["auto", "systemd", "supervisord"], "default": "auto"}, "watchdog": {"anyOf": [{"enum": [false]}, {"type": "object", "properties": {"qname": {"type": "string"}, "qtype": {"enum": ["A", "A6", "AAAA", "AFSDB", "ANY", "APL", "ATMA", "AVC", "AXFR", "CAA", "CDNSKEY", "CDS", "CERT", "CNAME", "CSYNC", "DHCID", "DLV", "DNAME", "DNSKEY", "DOA", "DS", "EID", "EUI48", "EUI64", "GID", "GPOS", "HINFO", "HIP", "HTTPS", "IPSECKEY", "ISDN", "IXFR", "KEY", "KX", "L32", "L64", "LOC", "LP", "MAILA", "MAILB", "MB"
@vcunat
vcunat / schema.json
Created March 29, 2023 09:41
knot-resolver-config-schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Knot Resolver declarative configuration.",
"type": "object",
"properties": {
"version": {
"type": "integer",
"description": "Version of the configuration schema. By default it is the latest supported by the resolver, but couple of versions back are be supported as well.",
"default": 1
},
@vcunat
vcunat / rebuild-amount.txt
Last active May 12, 2023 14:51
Packages dropped when marking OpenSSL 1.1 as vulnerable
$ git fetch https://github.com/mweinelt/nixpkgs.git just-for-vladimir
$ git checkout FETCH_HEAD
$ git rebase h/staging-next
$ env NIXPKGS_ALLOW_UNFREE=1 ./maintainers/scripts/rebuild-amount.sh --print HEAD HEAD~1
Estimating rebuild amount by counting changed Hydra jobs (parallel=unset).
415 x86_64-darwin
560 x86_64-linux
_3llo.x86_64-darwin /nix/store/qzn9vnxh5xl9mbw8bwb9111z3fbqn0nm-3llo-1.3.1