Skip to content

Instantly share code, notes, and snippets.

View vielmetti's full-sized avatar
🌴
I may be slow to respond.

Edward Vielmetti vielmetti

🌴
I may be slow to respond.
View GitHub Profile
mkdir -p $(dirname "`cargo run config db-path`")
Compiling frozenbbs v1.1.0 (/Users/emv/src/github.com/kstrauser/frozenbbs)
error[E0432]: unresolved import `super::schema::board_states`
--> src/db/board_states.rs:2:20
|
2 | use super::schema::board_states::{dsl, table};
| ^^^^^^^^^^^^ could not find `board_states` in `schema`
error[E0432]: unresolved import `super::schema::boards`
--> src/db/boards.rs:2:20
@vielmetti
vielmetti / superset-db-upgrade.log
Created August 3, 2023 14:39
superset db upgrade failure
> superset db upgrade
Traceback (most recent call last):
File "/opt/homebrew/bin/superset", line 5, in <module>
from superset.cli.main import superset
File "/opt/homebrew/lib/python3.11/site-packages/superset/__init__.py", line 21, in <module>
from superset.app import create_app
File "/opt/homebrew/lib/python3.11/site-packages/superset/app.py", line 23, in <module>
from superset.initialization import SupersetAppInitializer
File "/opt/homebrew/lib/python3.11/site-packages/superset/initialization/__init__.py", line 33, in <module>
from superset.extensions import (
@vielmetti
vielmetti / hello.sh
Created July 19, 2023 05:18
hello.sh
#!/bin/sh
# echo is from Doug McIlroy, 1972
# dd ("copy and convert", or "disk destroyer"), 1974
echo hello world | dd conv=ucase
# sed from 1974; sed -E is later
echo "Hello World" | sed -E 's/(.)/\1\n/g'
# awk is from 1977
awk 'BEGIN { print "Hello World" }'
echo "World Hello" | awk '{print $2, $1}'
# rs (reshape) is from 1983, 4.2 BSD
@vielmetti
vielmetti / gitea-acornfile
Created August 5, 2022 14:27
skeleton Acornfile for gitea
containers: {
gitea: {
image: "gitea/gitea:1.16.9"
env: {
"USER_UID": "1000"
"USER_GID": "1000"
}
ports: publish: "3000/http"
dirs: {
"/data": "volume://gitea-data"
@vielmetti
vielmetti / cncf-project-usage-2021-04-12.csv
Created April 13, 2021 15:51
CNCF project usage snapshot, April 12 2021
Cost Project
0.14 Plushu
0.21 CNCF OpenStack CCPE
0.4 Container Stack Packaging
0.4 Falco
0.4 Search Engine for Kubernetes Org
0.4 Tremor benchmarking infrastructure
0.47 Native Large Scale Vitess Testing
0.5 Curiefense CI
0.5 Lock-Free Data Structures
This file has been truncated, but you can view the full file.
Script started on 2021-03-05 06:14:01+00:00 [TERM="screen.xterm-256color" TTY="/dev/pts/2" COLUMNS="81" LINES="51"]
root@altra-x:/src/k8s.io/kubernetes# screen -x -xcd kubernetesgit clone https://github.com/kubernetes/kubernetescd kubernetes
screen -xgit pull
Already up to date.
root@altra-x:/src/k8s.io/kubernetes# git sttatus
On branch master
Your branch is up to date with 'origin/master'.
Untracked files:
(use "git add <file>..." to include in what will be committed)
altra-x
description: Rack Mount Chassis
product: Mt.Jade Server System B81.03001.0005 (Unknown)
vendor: WIWYNN
version: EVT2
serial: B810300100050150006DN0SA
width: 64 bits
capabilities: smbios-3.3.0 dmi-3.3.0 smp cp15_barrier setend swp tagged_addr_disabled
configuration: administrator_password=disabled boot=normal chassis=rackmount family=Altra frontpanel_password=disabled keyboard_password=disabled power-on_password=disabled sku=Unknown uuid=8486D5D2-70E2-EC03-1000-77092C766620
*-core
Architecture: aarch64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 160
On-line CPU(s) list: 0-159
Thread(s) per core: 1
Core(s) per socket: 80
Socket(s): 2
NUMA node(s): 2
Vendor ID: ARM
@vielmetti
vielmetti / install.sh
Last active September 7, 2020 05:09
Install Rapids.AI from cloud-init
./packet device create -f dfw2 -o ubuntu_18_04 -P x2.xlarge.x86 -H rapidsai -p $PACKETPROJECT -u "$(curl https://gist.githubusercontent.com/vielmetti/6b8e689a73ead8958b3f6dadd0b5b920/raw/8c7714b8bf8cf18b21055ea93f1e7adc90b426e9/rapids-ai-docker-cloudinit.sh)"
{
"name": "commonplace",
"version": "1.0.0",
"description": "commonplace book, replacing a weblog.",
"main": "index.js",
"directories": {
"doc": "docs"
},
"dependencies": {},
"devDependencies": {},