Skip to content

Instantly share code, notes, and snippets.

View vmorris's full-sized avatar

Vance Morris vmorris

View GitHub Profile
Oct 08 12:43:36 juju-84a348-0 mongod.37017[5904]: [conn174] command juju.txns command: insert { insert: "txns", documents: [ { _id: ObjectId('57f8e9f8c5dca517a9e7b70b'), s: 1, o: [ { c: "leases", d: "df12dbc2-cbd0-4f76-8b1d-c6af996004c0:clock#application-leadership#", a: { $or: [ { writers.machine-0: { $lte: 1475930616730621000 } }, { writers.machine-0: { $exists: false } } ] }, u: { $set: { writers.machine-0: 1475930616730621000 } } }, { c: "leases", d: "df12dbc2-cbd0-4f76-8b1d-c6af996004c0:lease#application-leadership#rabbitmq-server#", a: { holder: "rabbitmq-server/0", expiry: 1475930646730277000, writer: "machine-0" }, u: { $set: { expiry: 1475930676730621000, writer: "machine-0" } } } ] } ], writeConcern: { getLastError: 1, j: true }, ordered: true } ninserted:1 keyUpdates:0 writeConflicts:0 numYields:0 reslen:100 locks:{ Global: { acquireCount: { r: 2, w: 2 } }, Database: { acquireCount: { w: 2 } }, Collection: { acquireCount: { w: 1 } }, Metadata: { acquireCount: { w: 1 } }, oplog: { acquireCount: { w:
[Oct 7 04:12] User process fault: interruption code 003b ilc:2 in beam.smp[2aa2de00000+289000]
[ +0.000022] failing address: 0000000000000000 TEID: 0000000000000400
[ +0.000009] Fault in primary space mode while using user ASCE.
[ +0.000007] AS:000000058a7541c7 R3:0000000000000024
[ +0.000008] CPU: 29 PID: 95711 Comm: async_3 Tainted: P O 4.4.0-38-generic #57-Ubuntu
[ +0.000004] task: 00000001168b6270 ti: 000000054df7c000 task.ti: 000000054df7c000
[ +0.000003] User PSW : 0705000180000000 000002aa2dfa026e
[ +0.000006] R:0 T:1 IO:1 EX:1 Key:0 M:1 W:0 P:1 AS:0 CC:0 PM:0 EA:3
[ +0.000000] User GPRS: 0000000000000001 0000000000000000 0000000000000000 0000000000000000
[ +0.000008] 000002aa2dfa0268 0000000000000100 000003ff8683ef10 000003ff86220090
vance@zs93kvi:~$ juju status
MODEL CONTROLLER CLOUD/REGION VERSION
default localhost lxd/localhost 2.0-rc3
APP VERSION STATUS SCALE CHARM STORE REV OS NOTES
ceph active 3 ceph jujucharms 4 ubuntu
ceph-radosgw active 1 ceph-radosgw jujucharms 6 ubuntu
cinder active 1 cinder jujucharms 3 ubuntu
cinder-ceph active 1 cinder-ceph jujucharms 2 ubuntu
glance active 1 glance jujucharms 2 ubuntu
vance@zs93kvi:~$ juju status
MODEL CONTROLLER CLOUD/REGION VERSION
rabbit-mq localhost lxd/localhost 2.0-rc3
APP VERSION STATUS SCALE CHARM STORE REV OS NOTES
rabbitmq-server error 1 rabbitmq-server jujucharms 6 ubuntu
UNIT WORKLOAD AGENT MACHINE PUBLIC-ADDRESS PORTS MESSAGE
rabbitmq-server/0* error idle 0 10.113.186.128 5672/tcp hook failed: "update-status"
#!/usr/bin/env bash
CLEARING_VERSION=0.2.6
TMP_DIR=$(mktemp -d)
echo "Temp directory: ${TMP_DIR}"
# stop rest servers
for i in $(ps x| grep composer-rest-server | awk '{print $1}'); do
kill $i
kKpPcCZQqzyYvVxXVfYLlyFiIvOcCTtDdGgJTtaFfAjUuElLeIOoijvzZViIJSgYyGfFKkrUuRxLeEzZltToOdDXseLlEjgGJsmMWTmnNyYqZmMzQMxXJjJjkZzOoKqhzZHzZQLlKktxXrjJRwXxoDdHhgOoWwvVGJjrmMRObBxvVrRXOFffFoOLlIioRrGgPNnpxLldDcgGVhrFfRHlLAavnNmmdDMqQlLMBbCqQPkKpXxCbBcXdDHhSUdDuSswtTWQqrRCcPOaAIiRrobBVvpcCBOoWOowuUAaLuUcxXCqQMmrRVvWwIikKlyYGgsSbBPfFfFOyfLlxXFYHhsSogpPFfjJKlqQlLLRqQrkGAapDkZoOzKDddPsSExXeEdDwWewXxyYWgAaGpcCOSevVEiIPbZzBlLpBbsAVvatTozVvCcEeqQIKkizGgYyZTtyYbBTeEtbmtTMztTiEeIyqQfqQnNFxXamqdDQDdMAPpjJcCDdDSsGgFfqQdETthHeYnkKNOROorZzoyICrNnRYycTUaAQhyYJqQaAjHVvqmGgJfFjMjJCeEcMmDdVvusaAStdxXmMDkKmMLlEeXxmMixXaUuRrAfFMmNVvnDdYWwWwzZTOoqQBbtVVbBvjJvrReFJjfJBbgvViIaApPGSswwWWevVevdDZrtTRzpBbPxeEXrRVhHPpvALlagGVHhILliEPBMmbpsyYLloOlxXLOSsoWpPdZzDaADdwfdTtDoOTUutXxFzZOoTRnjcCOoNnOoJOoNrtzEfFeDdZBbCcHhquUQNnCOdDoXxcsvVSJjSTVvlLZzzFhHfZXxLeEZzMyLlKkYmAaRtTtoOEeeELlySsTEetJjYyJjYzZTrlAatalPpLAGgqQchHPpyYiIGglLxXHhlEOoiJEejLPplsSbBsBcCxXbSSsQERrMmeqvVlLkKIkgGKuvTdDpjJfFPtnsSPOopNVmsGYyTgGtOouUVzZkKvOYyNnoOHBbSsholLgGMmJjenNuUrRyYETtn
from itertools import accumulate
from operator import mul
integers = list(range(1, 1000001))
a = accumulate(integers, mul)
for i in a:
print(i)
@vmorris
vmorris / [email protected]
Created August 21, 2019 12:18
systemd service template
[root@ThinkPad-W541 system]# systemctl start [email protected]
[root@ThinkPad-W541 system]# journalctl -u [email protected]
-- Logs begin at Mon 2019-08-19 03:59:36 EDT, end at Wed 2019-08-21 08:18:07 EDT. --
Aug 21 08:18:07 ThinkPad-W541 systemd[1]: Started Buggy test1/2/3.
Aug 21 08:18:07 ThinkPad-W541 echo[19928]: test1/2/3
openapi: 3.0.0
servers:
- url: 'http://petstore.swagger.io/v2'
info:
description: >-
:dog: :cat: :rabbit: This is a sample server Petstore server. You can find
out more about Swagger at [http://swagger.io](http://swagger.io) or on
[irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you
can use the api key `special-key` to test the authorization filters.
version: 1.0.0
root@zfwpc179:~# cat /etc/apt/sources.list
deb http://ports.ubuntu.com/ubuntu-ports bionic main
deb http://ports.ubuntu.com/ubuntu-ports bionic universe
deb http://ports.ubuntu.com/ubuntu-ports bionic-proposed main universe restricted multiverse
root@zfwpc179:~# apt update
Hit:1 http://ports.ubuntu.com/ubuntu-ports bionic InRelease
Get:2 http://ports.ubuntu.com/ubuntu-ports bionic-proposed InRelease [242 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main s390x Packages [72.9 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main Translation-en [41.6 kB]
Get:5 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/universe s390x Packages [93.9 kB]