Skip to content

Instantly share code, notes, and snippets.

@corywright
corywright / 2022Q4-findus.diff
Created October 6, 2022 14:48
Tesla Find US 2022 Q4 changes
--- Afghanistan.prev 2022-10-06 09:58:45.000000000 -0400
+++ Afghanistan 2022-10-06 09:58:45.000000000 -0400
+Boardman, OR Supercharger - BoardmanORSupercharger
+Henryetta, OK (coming soon) - HenryettaOKsupercharger
--- Australia.prev 2022-10-06 09:58:55.000000000 -0400
+++ Australia 2022-10-06 09:58:55.000000000 -0400
+Adelaide-Tonsley - adelaide
+Alexandria - Maddox Street Delivery Centre - alexandriamaddoxdelivery
@corywright
corywright / tesla-findus-2022-q3-updates.diff
Created August 6, 2022 02:17
Diff of tesla.com/findus after Q3 2022 update
--- /Users/cwright/workspaces/py3-venv-ipython/output/Australia.prev 2022-08-05 20:09:38.000000000 -0600
+++ /Users/cwright/workspaces/py3-venv-ipython/output/Australia 2022-08-05 20:09:38.000000000 -0600
+Adelaide-Tonsley - adelaide
+Alexandria - Maddox Street Delivery Centre - alexandriamaddoxdelivery
+Canberra - canberra
+Gold Coast-Southport - goldcoastsouthport
+Melbourne-Brighton - melbournebrighton
+Melbourne-Chadstone - melbournechadstone
+Miranda - miranda
+Parramatta - parramatta
@corywright
corywright / gnocchi_resources.yaml
Created July 3, 2018 14:14
gnocchi_resources.yaml
# /usr/lib/python2.7/dist-packages/ceilometer/dispatcher/data/gnocchi_resources.yaml
resources:
- resource_type: identity
metrics:
- 'identity.authenticate.success'
- 'identity.authenticate.pending'
- 'identity.authenticate.failure'
- 'identity.user.created'
- 'identity.user.deleted'
- 'identity.user.updated'
root@keystone01:/var/log/keystone# openstack metric resource-type update identity
Forbidden (HTTP 403)
root@openstack-gnocchi01:/var/log/gnocchi# gnocchi resource-type update identity
+-------+----------+
| Field | Value |
+-------+----------+
| name | identity |
root@openstack-gnocchi01:/var/log/gnocchi# gnocchi resource-type list
+----------------------------+---------------------------------------------------------------------------------------+
| name | attributes |
+----------------------------+---------------------------------------------------------------------------------------+
| ceph_account | |
| generic | |
| host | - host_name: min_length: 0 , max_length: 255 , type: string , required: True |
| host_disk | - host_name: min_length: 0 , max_length: 255 , type: string , required: True |
| | - device_name: min_length: 0 , max_length: 255 , type: string , required: False |
|
cwright@haio:~/hummingbird$ ./bin/hummingbird bench /etc/hummingbird/bench.conf
PUTs: 5000 @ 70.91/s
Failures: 0
Mean: 0.21146s (44.9% RSD)
Median: 0.19302s
85%: 0.30583s
90%: 0.33594s
95%: 0.37582s
99%: 0.46168s
GETs: 30000 @ 288.28/s
cwright@saio:/var/log/hummingbird$ find /mnt/
/mnt/
/mnt/sdb1
/mnt/sdb1/1
/mnt/sdb1/1/node
/mnt/sdb1/1/node/sdb1
/mnt/sdb1/1/node/sdb1/accounts
/mnt/sdb1/1/node/sdb1/accounts/802
/mnt/sdb1/1/node/sdb1/accounts/802/178
/mnt/sdb1/1/node/sdb1/accounts/802/178/c8bcccab3ddbfdc34b08e9223f4f5178
{"level":"error","ts":1499782529.0710921,"caller":"objectserver/auditor.go:225","msg":"Error reading objects dir","name":"object-auditor","objPath":"/mnt/sdb1/2/node/sdb6/objects","stacktrace":"go.uber.org/zap.Stack\n\t/home/cwright/go/src/go.uber.org/zap/field.go:191\ngo.uber.org/zap.(*Logger).check\n\t/home/cwright/go/src/go.uber.org/zap/logger.go:301\ngo.uber.org/zap.(*Logger).Error\n\t/home/cwright/go/src/go.uber.org/zap/logger.go:202\ngithub.com/troubling/hummingbird/objectserver.(*Auditor).auditDevice\n\t/home/cwright/go/src/github.com/troubling/hummingbird/objectserver/auditor.go:225\ngithub.com/troubling/hummingbird/objectserver.(*Auditor).run\n\t/home/cwright/go/src/github.com/troubling/hummingbird/objectserver/auditor.go:319"}
{"level":"info","ts":1499782529.0711188,"caller":"objectserver/auditor.go:293","msg":"Object Audit","name":"object-auditor","Auditor type":"ALL","Mode":"forever","completed":0.004116864,"Total quarantined":0,"Total errors":2,"Total files/sec":0,"Total bytes/sec":0,"Auditing ti
cwright@saio:/var/log/hummingbird$ cat container.log
{"level":"info","ts":1499719584.6884475,"caller":"srv/server.go:294","msg":"Server started","name":"container-server","port":6011}
{"level":"info","ts":1499719584.6886806,"caller":"srv/server.go:294","msg":"Server started","name":"container-server","port":6021}
{"level":"info","ts":1499719584.6888885,"caller":"srv/server.go:294","msg":"Server started","name":"container-server","port":6031}
{"level":"info","ts":1499719584.689104,"caller":"srv/server.go:294","msg":"Server started","name":"container-server","port":6041}
{"level":"info","ts":1499719798.6753087,"caller":"srv/server.go:294","msg":"Server started","name":"container-server","port":6011}
{"level":"info","ts":1499719798.6839266,"caller":"srv/server.go:294","msg":"Server started","name":"container-server","port":6021}
{"level":"info","ts":1499719798.6842816,"caller":"srv/server.go:294","msg":"Server started","name":"container-server","port":6031}
{"level":"info","ts":1499719798.6845832,"caller":"srv/
cwright@saio:/var/log/hummingbird$ ls -la
total 32316
drwxr-xr-x 2 cwright cwright 4096 Jul 11 13:43 .
drwxrwxr-x 13 root syslog 4096 Jul 11 06:52 ..
-rw-r--r-- 1 cwright cwright 0 Jul 10 20:46 account.err
-rw-r--r-- 1 cwright cwright 6586 Jul 11 14:03 account.log
-rw-r--r-- 1 cwright cwright 0 Jul 11 13:43 account-replicator.err
-rw-r--r-- 1 cwright cwright 133837 Jul 11 14:07 account-replicator.log
-rw-r--r-- 1 cwright cwright 0 Jul 10 20:46 container.err
-rw-r--r-- 1 cwright cwright 6454 Jul 11 14:03 container.log