Skip to content

Instantly share code, notes, and snippets.

View j-griffith's full-sized avatar

John Griffith j-griffith

  • Bozeman, Montana
View GitHub Profile
usr
usr/lib
usr/lib/firmware
usr/lib/firmware/3com
usr/lib/firmware/3com/typhoon.bin.zst
usr/lib/firmware/acenic
usr/lib/firmware/acenic/tg1.bin.zst
usr/lib/firmware/acenic/tg2.bin.zst
usr/lib/firmware/adaptec
usr/lib/firmware/adaptec/starfire_rx.bin.zst
syntax = "proto3";
package proto;
option go_package = "github.com/j-griffith/agent/pkg/proto/";
rpc UploadFileBundle(stream FileChunk) returns (UploadStatus) {}
message FileChunk {
bytes data = 1;
The network operator reserves the right to consent to valid law
enforcement requests to search the network and to institute legal or
disciplinary action against any misuse of the network.
***********************************************************************
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: get_agent_identities: bound agent to hostkey
debug1: get_agent_identities: agent returned 6 keys
debug1: Skipping ssh-dss key jgriffith@fedora - corresponding algorithm not in PubkeyAcceptedAlgorithms
debug1: Will attempt key: /home/jgriffith/.ssh/id_rsa RSA SHA256:C+VfEwBUWK4GKqfWR895lNOcECaA5FG3t+Er4OKRh/E explicit agent
#cloud-config
autoinstall:
version: 1
identity:
hostname: {{.Hostname}}
password: $6$jCfWFbdxh1lK09sY$pxFnrW/yXewYFmgoaywu3WKhdPQg0e8DR8jvedAV.udXM0.i5M6wr4Up2S7ZCN9kNDmg.s7fmrOaXE6nEyzPb/
username: ubuntu
ntp:
enabled: true
ntp_client: systemd-timesyncd
kernel https://nke-dev.s3.us-west-2.amazonaws.com/22.04-69164c58/vmlinuz console=tty0 console=ttyS0,115200 ip=dhcp fb=false interface=ens5f0 url=https://releases.ubuntu.com/jammy/ubuntu-22.04.4-live-server-amd64.iso autoinstall ds=nocloud-net;s=${cloudinit-url} initrd=initrd.magic initrd https://nke-dev.s3.us-west-2.amazonaws.com/22.04-69164c58/initrd boot
#cloud-config
users:
- default
- name: nke-user
gecos: NKE User
sudo: ALL=(ALL) NOPASSWD:ALL
groups: root
lock_passwd: true
root@nke-sc-1:/usr/local/nke/bin# df -Th
Filesystem Type Size Used Avail Use% Mounted on
tmpfs tmpfs 101G 5.7M 101G 1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv ext4 98G 19G 75G 20% /
tmpfs tmpfs 504G 0 504G 0% /dev/shm
tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock
/dev/nvme2n1p2 ext4 2.0G 131M 1.7G 8% /boot
/dev/nvme2n1p1 vfat 1.1G 6.1M 1.1G 1% /boot/efi
tmpfs tmpfs 101G 4.0K 101G 1% /run/user/1000
tmpfs tmpfs 1008G 12K 1008G 1% /var/lib/kubelet/pods/35224ae1-6550-41d1-b281-947d9dcde52d/volumes/kubernetes.io~projected/kube-api-access-n84hw
diff --git a/api/src/api.rs b/api/src/api.rs
index 7f70fa10..e189c24c 100644
--- a/api/src/api.rs
+++ b/api/src/api.rs
@@ -163,30 +163,45 @@ impl Forge for Api {
.await
.map_err(CarbideError::from)?;
- let rpc::VpcSearchQuery { id, .. } = request.into_inner();
-
use log::LevelFilter;
use sqlx::prelude::*;
use carbide::db::network_segment::NetworkSegment;
#[sqlx::test(fixtures("network_segment_complete"))]
async fn test_update_network_segment_name(pool: sqlx::PgPool) -> sqlx::Result<()> {
pretty_env_logger::formatted_timed_builder()
.filter_level(LevelFilter::Error)
.init();
@j-griffith
j-griffith / main.rs
Last active August 9, 2022 18:41
Example PUT/GET of Secret to Vault API Using Reqwest
use reqwest::header::HeaderMap;
use serde::{Deserialize, Serialize};
use std::collections::HashMap;
#[derive(Serialize, Deserialize, Debug)]
struct Secret {
data: HashMap<String, String>,
}
#[derive(Serialize, Deserialize)]
use reqwest::header;
use serde::{Deserialize, Serialize};
use std::collections::HashMap;
struct Secret {
key: String,
value: String,
}
#[tokio::main]