Skip to content

Instantly share code, notes, and snippets.

#! /usr/bin/env nix-shell
#! nix-shell -i python3 -p python3 python3Packages.boto3
import boto3
import json
def fetch_cloudtrail_events():
# NOTE: this is us-west-2 specific!
client = boto3.client(
"cloudtrail",
@samuela
samuela / failure.log
Created February 18, 2024 16:44
jax-test_cuda-passthru-failure
ubuntu@bitbop:~/nixpkgs$ NIXPKGS_ALLOW_UNFREE=1 nixglhost -- nix run --impure .#python3Packages.jax.passthru.test_cuda_jaxlibBin
warning: Git tree '/home/ubuntu/nixpkgs' is dirty
Traceback (most recent call last):
File "/nix/store/210z4yz9xpmch1fj7pzn83wdsbylmmlj-test_cuda/bin/test_cuda", line 7, in <module>
rng = random.PRNGKey(0)
^^^^^^^^^^^^^^^^^
File "/nix/store/w48pp30vl0jk2wvwdqgb9zg06my5m7sy-python3-3.11.7-env/lib/python3.11/site-packages/jax/_src/random.py", line 240, in PRNGKey
return _return_prng_keys(True, _key('PRNGKey', seed, impl))
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/w48pp30vl0jk2wvwdqgb9zg06my5m7sy-python3-3.11.7-env/lib/python3.11/site-packages/jax/_src/random.py", line 202, in _key
[12,484 / 13,096] Compiling stablehlo/dialect/StablehloOps.cpp; 32s local ... (4 actions running)
ERROR: /build/output/external/xla/xla/service/gpu/model/BUILD:316:11: Compiling xla/service/gpu/model/indexing_analysis.cc failed: (Exit 1): crosstool_wrapper_driver_is_not_gcc failed: error executing command (from target @xla//xla/service/gpu/model:indexing_analysis) external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -MD -MF bazel-out/k8-opt/bin/external/xla/xla/service/gpu/model/_objs/indexing_analysis/indexing_analysis.pic.d ... (remaining 335 arguments skipped)
/build/output/execroot/__main__/external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc:44: DeprecationWarning: 'pipes' is deprecated and slated for removal in Python 3.13
import pipes
In file included from external/xla/xla/hlo/ir/hlo_computation.h:31,
from external/xla/xla/hlo/ir/hlo_instructions.h:35,
from external/xla/xla/service/gpu/model/indexing_analysi
use std::collections::HashMap;
use std::sync::Arc;
use async_trait::async_trait;
use pty_process::OwnedWritePty;
use russh::server::{Auth, Msg, Session};
use russh::*;
use russh_keys::*;
use tokio::io::{AsyncReadExt, AsyncWriteExt};
use tokio::sync::Mutex;
use async_trait::async_trait;
use core::panic;
use russh::server::{Msg, Session};
use russh::{Channel, ChannelId, ChannelStream, CryptoVec, Sig};
use std::collections::HashMap;
use std::io::Read;
use std::net::SocketAddr;
use std::sync::Arc;
use tokio::io::AsyncReadExt;
use tokio::sync::Mutex;
use async_trait::async_trait;
use russh::server::{Msg, Session};
use russh::*;
use russh_keys::*;
use std::net::SocketAddr;
use std::process::Stdio;
use std::sync::Arc;
use tokio::io::AsyncReadExt;
use tokio::io::BufReader;
use tokio::process::Command;
@samuela
samuela / sshd_config
Created November 22, 2023 11:36
AuthorizedKeysCommand bug
Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
GatewayPorts no
KbdInteractiveAuthentication yes
KexAlgorithms sntrup761x25519-sha512@openssh.com,curve25519-sha256,curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256
LogLevel DEBUG
Macs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com
PasswordAuthentication no
PermitRootLogin no
UseDns no
X11Forwarding no
let
# Last updated: 2023-09-29. Check for new commits at https://status.nixos.org.
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/archive/f3dab3509afca932f3f4fd0908957709bb1c1f57.tar.gz";
stage0 = import nixpkgs {};
nixpkgs-patched = stage0.applyPatches {
name = "nixpkgs-patched";
src = nixpkgs;
patches = [
# https://github.com/NixOS/nixpkgs/pull/258084
{ lib
, stdenv
, buildPythonPackage
, cmake
, fetchFromGitHub
, gtest
, nbval
, numpy
, parameterized
, protobuf
{
outputs = { nixpkgs, ... }:
{ devShell.aarch64-darwin = nixpkgs.legacyPackages.aarch64-darwin.mkShell { }; };
}