Skip to content

Instantly share code, notes, and snippets.

View samuela's full-sized avatar

Samuel Ainsworth samuela

View GitHub Profile
{
"nodes": {
"naersk": {
"inputs": {
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1698420672,
"narHash": "sha256-/TdeHMPRjjdJub7p7+w55vyABrsJlt5QkznPYy55vKA=",
"owner": "nix-community",
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1711624657,
"narHash": "sha256-IViG6BKCJY/I6oRNfAANf/QitYylepQSCzgam0TF+bs=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "72c6ed328aa4e5d9151b1a512f6ad83aca7529fa",
"type": "github"
root@6b49c5e222e1:/workspaces/sshenanigans# cargo build
Compiling openssl-sys v0.9.101
Compiling anyhow v1.0.81
Compiling clap_builder v4.5.2
Compiling serde_json v1.0.114
Compiling rustix v0.38.31
Compiling sharded-slab v0.1.7
Compiling lock_api v0.4.11
Compiling tracing v0.1.40
Compiling flate2 v1.0.28
#! /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 [email protected],[email protected],[email protected],aes256-ctr,aes192-ctr,aes128-ctr
GatewayPorts no
KbdInteractiveAuthentication yes
KexAlgorithms [email protected],curve25519-sha256,[email protected],diffie-hellman-group-exchange-sha256
LogLevel DEBUG
Macs [email protected],[email protected],[email protected]
PasswordAuthentication no
PermitRootLogin no
UseDns no
X11Forwarding no