Skip to content

Instantly share code, notes, and snippets.

View sorenisanerd's full-sized avatar

Soren L. Hansen sorenisanerd

View GitHub Profile
[2022-04-19T00:48:29.775Z] Remote-Containers 0.232.6 in VS Code 1.66.2 (dfd34e8260c270da74b5c2d86d61aee4b6d56977).
[2022-04-19T00:48:29.775Z] Start: Resolving Remote
[2022-04-19T00:48:29.797Z] Start: Run: ssh devcloud /bin/sh
[2022-04-19T00:48:29.799Z] Start: Run in host: id -un
[2022-04-19T00:48:30.554Z] dc-user
[2022-04-19T00:48:30.555Z]
NOTICE
This is a private computer system.
[2022-04-18T20:15:32.079Z] Remote-Containers 0.232.6 in VS Code 1.66.1 (8dfae7a5cd50421d10cd99cb873990460525a898).
[2022-04-18T20:15:32.079Z] Start: Resolving Remote
[2022-04-18T20:15:32.101Z] Start: Run: ssh devcloud /bin/sh
[2022-04-18T20:15:32.105Z] Start: Run in host: id -un
[2022-04-18T20:15:32.896Z] dc-user
[2022-04-18T20:15:32.897Z]
NOTICE
BLAH BLAH
Oracle 8.3
FROM python:3.9
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . .
ENTRYPOINT ["python", "-m", "gunicorn", "--bind", ":8080", "--workers", "1", "--threads", "8", "--timeout", "0", "main:app"]
### Keybase proof
I hereby claim:
* I am sorenisanerd on github.
* I am soren (https://keybase.io/soren) on keybase.
* I have a public key ASAZ7oxndpchLRfYXZZc5qN_U0MEoYEmBz2eOJp3o2ZTxQo
To claim this, I am signing this object:
#!/bin/bash
install_docker() {
apt-get install -y screen
screen -dmS dockerinstall sh -c 'curl https://get.docker.com/ | sh'
}
install_and_launch_finish_install_script() {
cat > /tmp/finish-install.sh <<EOF
#!/bin/sh -x
#!/usr/bin/env python
import re
import yaml
nodes = ['ct1', 'stmonleader1', 'stmon1', 'stmon2', 'st1', 'ocdb1', 'oc1', 'gcp1', 'haproxy1', 'bootstrap1'] + ['cp%d' % x for x in range(1,100)]
with open('upgrade.yaml', 'r') as fp:
data = yaml.load(fp)
groups = {}
@sorenisanerd
sorenisanerd / zmq_test.c
Created July 29, 2015 11:38
ZMQ_LINGER problem reproducer
#include <zmq.h>
#include <malloc.h>
#include <assert.h>
#include <string.h>
#include <stdio.h>
#include <unistd.h>
int main(int argc, char *argv[]) {
void *ctx, *socket;
@sorenisanerd
sorenisanerd / gist:3d6681c46827bb6c95f2
Created July 29, 2015 11:38
Reproduce ZMQ_LINGER problem
#include <zmq.h>
#include <malloc.h>
#include <assert.h>
#include <string.h>
#include <stdio.h>
#include <unistd.h>
int main(int argc, char *argv[]) {
void *ctx, *socket;
$ ifmap-view localhost 8443 visual visual
MAP server connection = localhost:8443
MAP server credentials = visual:visual
Start node = None
Skip List = ['id-perms']
Verbose = 0
soren@stmonleader1-production:~$ sudo ceph pg 6.6fe query
{ "state": "active+undersized+degraded",
"snap_trimq": "[]",
"epoch": 2556,
"up": [
41,
56],
"acting": [
41,
56],