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
squashfs-root | |
squashfs-root/meta | |
squashfs-root/meta/snap.yaml | |
squashfs-root/nix | |
squashfs-root/nix/store | |
squashfs-root/nix/store/qc2k3nbvmk5bmd5wa60ka195z094d78h-libcap-2.26-lib | |
squashfs-root/nix/store/qc2k3nbvmk5bmd5wa60ka195z094d78h-libcap-2.26-lib/lib | |
squashfs-root/nix/store/qc2k3nbvmk5bmd5wa60ka195z094d78h-libcap-2.26-lib/lib/libcap.so.2 | |
squashfs-root/nix/store/qc2k3nbvmk5bmd5wa60ka195z094d78h-libcap-2.26-lib/lib/libcap.so.2.26 | |
squashfs-root/nix/store/qc2k3nbvmk5bmd5wa60ka195z094d78h-libcap-2.26-lib/lib/libcap.so |
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
Pushing 'x18gid2bk370a44wkv4kgp9v875y0y2z-squashfs.img' [========] 100% | |
Processing...| | |
Error while processing... | |
The store was unable to accept this snap. | |
- /nix/store/437aycybchc25w54da0d1dfgpp2gyfnc-jormungandr-0.2.2/bin/jcli does not exist | |
- /nix/store/437aycybchc25w54da0d1dfgpp2gyfnc-jormungandr-0.2.2/bin/jormungandr does not exist | |
- /nix/store/ddckypbx67dd3h2d7d7hq6rghp5lb9ys-jormungandr-bootstrap does not exist | |
- package contains external symlinks: nix/store/j4gxw716ra03ivqfpd17jah89d3m8608-lz4-1.8.3/share/man/man1/lz4c.1.gz, nix/store/j4gxw716ra03ivqfpd17jah89d3m8608-lz4-1.8.3/share/man/man1/unlz4.1.gz, nix/store/j4gxw716ra03ivqfpd17jah89d3m8608-lz4-1.8.3/share/man/man1/lz4cat.1.gz |
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
let | |
#TODO pin iohk-nix | |
pkgs_src = import <nixpkgs>; | |
pkgs' = pkgs_src {}; | |
pkgs = pkgs_src { inherit overlays; }; | |
rustOverlay = (pkgs'.fetchFromGitHub { | |
owner = "mozilla"; | |
repo = "nixpkgs-mozilla"; | |
rev = "50bae918794d3c283aeb335b209efd71e75e3954"; | |
sha256 = "07b7hgq5awhddcii88y43d38lncqq9c8b2px4p93r5l7z0phv89d"; |
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
def defragmentWallet(self, wallet_id, account_index, addr_target_amount, final_addr_split=15): | |
print("Defragmenting wallet to {} addresses with amount {} Ada").format(final_addr_split, self.lovelaceToAda(addr_target_amount)) | |
target_total = addr_target_amount * final_addr_split | |
start_time = datetime.now(pytz.utc) | |
wallet = self.getAccount(wallet_id, account_index) | |
self.defragmentWalletRecursive(wallet, target_total) | |
end_time = datetime.now(pytz.utc) | |
elapsed = end_time - start_time | |
print("Wallet defragmented to combined target amount size of {} Ada in {} seconds").format(self.lovelaceToAda(target_total), elapsed) | |
print("Splitting combined amount into {} addresses").format(final_addr_split) |
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
{ config, ... }: | |
{ | |
imports = [<nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix>]; | |
boot.supportedFilesystems = [ "zfs" ]; | |
boot.kernelParams = [ "console=ttyS0,115200n8" ]; | |
boot.kernelModules = [ "kvm-intel" "wl" ]; | |
boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ]; | |
nixpkgs.config.allowUnfree = true; | |
services.openssh.enable = true; | |
} |
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
Compiling network-core v0.1.0-dev (/home/sam/work/iohk/summit-AdaPay/js-cardano-wasm/rust/network-core) | |
Compiling network-grpc v0.1.0-dev (/home/sam/work/iohk/summit-AdaPay/js-cardano-wasm/rust/network-grpc) | |
error: failed to run custom build command for `network-grpc v0.1.0-dev (/home/sam/work/iohk/summit-AdaPay/js-cardano-wasm/rust/network-grpc)` | |
process didn't exit successfully: `/home/sam/work/iohk/summit-AdaPay/js-cardano-wasm/rust/target/debug/build/network-grpc-1fbbb728924cc06c/build-script-build` (exit code: 1) | |
--- stderr | |
No such file or directory (os error 2) | |
warning: build failed, waiting for other jobs to finish... | |
error: failed to run custom build command for `network-core v0.1.0-dev (/home/sam/work/iohk/summit-AdaPay/js-cardano-wasm/rust/network-core)` | |
process didn't exit successfully: `/home/sam/work/iohk/summit-AdaPay/js-cardano-wasm/rust/target/debug/build/network-core-00354e6b2719a085/build-script-build` (exit code: 101) |
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
diff --git i/scripts/launch/connect-to-cluster/default.nix w/scripts/launch/connect-to-cluster/default.nix | |
index 22e2fe4c3f..2e50e72768 100755 | |
--- i/scripts/launch/connect-to-cluster/default.nix | |
+++ w/scripts/launch/connect-to-cluster/default.nix | |
@@ -103,7 +103,7 @@ let | |
clientExpiryDays = 365; | |
} // tlsConfig; | |
tlsConfigFile = let cfg = tlsConfigResultant; in writeText "tls-config-${environment}.yaml" ('' | |
- ${environments.${environment}.confKey}: | |
+ ${env.confKey}: |
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
{ | |
imports = [<nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix>]; | |
boot.supportedFilesystems = [ "zfs" ]; | |
boot.kernelParams = [ "console=ttyS0,115200n8" ]; | |
services.openssh.enable = true; | |
users.extraUsers.sam = { | |
isNormalUser = true; | |
description = "Sam Leathers"; | |
uid = 1000; | |
extraGroups = [ "wheel" ]; |
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
-bash-3.2$ source ~/perf.sh | |
-bash-3.2$ export thingname=foo | |
-bash-3.2$ export enablePhaseMetrics=1 | |
-bash-3.2$ performance-metrics "foo" sleep 1 | |
-bash: exec: {fd}: not found | |
-bash: exec: {fd}: not found | |
-bash-3.2$ logout | |
Connection to 10.40.33.170 closed. |
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
performance-metrics() { | |
thingname=$1 | |
shift | |
if [ -n "${enablePhaseMetrics:-}" ]; then | |
TIMEFORMAT="time.$thingname.user %U | |
time.$thingname.system %S | |
time.$thingname.real %R" | |
exec {fd}<&2; time ( $@ 2>&$fd; ) 2>> ~/metrics; exec {fd}<&- | |
else | |
"$@" |