Skip to content

Instantly share code, notes, and snippets.

View scubbo's full-sized avatar

Jack Jackson scubbo

View GitHub Profile
@scubbo
scubbo / snippet.js
Created November 14, 2024 22:41
ReadableStream<Uint8Array> to String
// For https://stackoverflow.com/questions/49014689/http-post-request-with-typescript
const reader = response.body.getReader();
const stream = new ReadableStream({
start(controller) {
function push() {
reader.read().then(({ done, value }) => {
if (done) {
controller.close();
return;
latest: Pulling from plugins/docker
Digest: sha256:f0233d950ae87ee6cb5500b2d5497fe02aa338201c0bdce2619f443fd174cfa4
Status: Image is up to date for plugins/docker:latest
+ /usr/local/bin/dockerd --data-root /var/lib/docker --host=unix:///var/run/docker.sock
time="2023-01-10T03:06:36.801486639Z" level=info msg="Starting up"
time="2023-01-10T03:06:36.813975407Z" level=warning msg="could not change group /var/run/docker.sock to docker: group docker not found"
time="2023-01-10T03:06:36.819086334Z" level=info msg="libcontainerd: started new containerd process" pid=34
time="2023-01-10T03:06:36.822189476Z" level=info msg="parsed scheme: \"unix\"" module=grpc
time="2023-01-10T03:06:36.822269197Z" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
time="2023-01-10T03:06:36.824013968Z" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock <nil> 0 <nil>}] <nil> <nil>}" module=grpc
@scubbo
scubbo / gist:873a45632ef5c9d677bf4a9bc2a8abcc
Created January 10, 2023 02:54
Kubectl logs from Drone Runner
time="2023-01-10T02:38:22.558359003Z" level=info msg="Starting up"
time="2023-01-10T02:38:22.560399382Z" level=warning msg="Binding to IP address without --tlsverify is insecure and gives root access on this machine to everyone who has access to your network." host="tcp://localhost:2375"
time="2023-01-10T02:38:22.560497232Z" level=warning msg="Binding to an IP address, even on localhost, can also give access to scripts run in a browser. Be safe out there!" host="tcp://localhost:2375"
time="2023-01-10T02:38:23.568541021Z" level=info msg="libcontainerd: started new containerd process" pid=14
time="2023-01-10T02:38:23.568664149Z" level=info msg="parsed scheme: \"unix\"" module=grpc
time="2023-01-10T02:38:23.570542900Z" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
time="2023-01-10T02:38:23.573140549Z" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock <nil> 0 <nil>}] <nil> <nil>}" module=grpc
time="2023-01-10T02
@scubbo
scubbo / Chart.yaml
Created January 10, 2023 02:52
Helm configuration
apiVersion: v2
name: drone-scubbo
description: A personalized Helm chart to deploy Drone to Kubernetes
# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
@scubbo
scubbo / gist:ced55707826cee772e6095320ab4adec
Created January 10, 2023 02:51
.drone.yml for failing build
kind: pipeline
name: deploy-mix256
type: docker
platform:
os: linux
arch: arm64
steps:
@scubbo
scubbo / gist:87678f543c49a5f3491426bd109737e6
Created January 10, 2023 02:50
Console logs from push-built-image
latest: Pulling from plugins/docker
Digest: sha256:f0233d950ae87ee6cb5500b2d5497fe02aa338201c0bdce2619f443fd174cfa4
Status: Downloaded newer image for plugins/docker:latest
+ /usr/local/bin/dockerd --data-root /var/lib/docker --host=unix:///var/run/docker.sock
time="2023-01-10T02:35:45.308687132Z" level=info msg="Starting up"
time="2023-01-10T02:35:45.316685387Z" level=warning msg="could not change group /var/run/docker.sock to docker: group docker not found"
time="2023-01-10T02:35:45.321686827Z" level=info msg="libcontainerd: started new containerd process" pid=36
time="2023-01-10T02:35:45.321820473Z" level=info msg="parsed scheme: \"unix\"" module=grpc
time="2023-01-10T02:35:45.321873899Z" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
time="2023-01-10T02:35:45.321950805Z" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock <nil> 0 <nil>}] <nil> <nil>}" module=grpc
@scubbo
scubbo / gist:820df6ef6e8fbe91265762598f30a505
Created November 21, 2022 18:02
Create user in Dendrite Matrix server
kubectl exec -it \
$(kubectl -n dendrite get pods -l app.kubernetes.io/name=dendrite -o jsonpath="{.items[0].metadata.name}") \
-- /usr/bin/create-account -config /etc/dendrite/dendrite.yaml -url <url with scheme> -username <name> -password <password> -admin
#!/usr/bin/env python3
# encoding: utf-8
# Based on https://gist.github.com/yanofsky/5436496
# Made by @jacksquaredson
import argparse
import csv
import time
import tweepy #https://github.com/tweepy/tweepy
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fa5b34ad393, pid=10937, tid=0x00007fa5b051a700
#
# JRE version: Java(TM) SE Runtime Environment (8.0_101-b13) (build 1.8.0_101-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.101-b13 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libc.so.6+0x14e393] __memmove_ssse3_back+0x6c3
#

Keybase proof

I hereby claim:

  • I am scubbo on github.
  • I am scubbo (https://keybase.io/scubbo) on keybase.
  • I have a public key whose fingerprint is 87D1 34A9 937C 1C38 6409 DF16 608E 666A 2CD0 50CD

To claim this, I am signing this object: