Skip to content

Instantly share code, notes, and snippets.

@rsoutar
rsoutar / lexer.ts
Last active June 10, 2023 20:46
Simple lexer
type TokenType =
| "NUMBER"
| "PLUS"
| "MINUS"
| "MULTIPLY"
| "DIVIDE"
| "LPAREN"
| "RPAREN"
| "EOF";
@rsoutar
rsoutar / vertobase.com-20190531T220706.json
Last active May 31, 2019 15:10
vertobase 31-05-19 pagespeed audit
{"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36","environment":{"networkUserAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36","hostUserAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36","benchmarkIndex":1306},"lighthouseVersion":"4.2.0","fetchTime":"2019-05-31T15:07:06.643Z","requestedUrl":"https://vertobase.com/","finalUrl":"https://vertobase.com/","runWarnings":[],"audits":{"is-on-https":{"id":"is-on-https","title":"Uses HTTPS","description":"All sites should be protected with HTTPS, even ones that don't handle sensitive data. HTTPS prevents intruders from tampering with or passively listening in on the communications between your app and your users, and is a prerequisite for HTTP/2 and many new web platform APIs. [Learn more](https://developers.google.com/web/to

Keybase proof

I hereby claim:

  • I am rsoutar on github.
  • I am rsoutar (https://keybase.io/rsoutar) on keybase.
  • I have a public key ASDBwpKWYLfqgit_9zpQEz71cyBllUr6mm-JmJt8F97K0Qo

To claim this, I am signing this object:

2017-07-09 15:37:29.264534 I | rook: starting operator
2017-07-09 15:37:29.265097 I | op-kit: creating cluster resource
2017-07-09 15:37:29.473610 I | op-kit: creating pool resource
2017-07-09 15:37:29.480734 I | op-kit: did not yet find resource cluster at apis/rook.io/v1alpha1/clusters. the server could not find the requested resource
2017-07-09 15:37:35.481212 I | op-kit: did not yet find resource cluster at apis/rook.io/v1alpha1/clusters. the server could not find the requested resource
2017-07-09 15:37:41.481499 I | op-kit: did not yet find resource cluster at apis/rook.io/v1alpha1/clusters. the server could not find the requested resource
2017-07-09 15:37:47.481366 I | op-
@rsoutar
rsoutar / gist:75f2178f6ec9d6f88615600dba89424d
Created July 6, 2017 08:03
kubectl logs ovs-agent-zzqd9 -n openstack -p
kubectl logs ovs-agent-zzqd9 -n openstack -p
+ exec neutron-openvswitch-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini --config-file /tmp/pod-shared/ml2-local-ip.ini --config-file /etc/neutron/plugins/ml2/openvswitch_agent.ini
Guru meditation now registers SIGUSR1 and SIGUSR2 by default for backward compatibility. SIGUSR1 will no longer be registered in a future release, so please use SIGUSR2 to generate reports.
2017-07-06 07:59:41.562 1 INFO neutron.common.config [-] Logging enabled!
2017-07-06 07:59:41.562 1 INFO neutron.common.config [-] /var/lib/kolla/venv/bin/neutron-openvswitch-agent version 9.2.0
2017-07-06 07:59:41.564 1 CRITICAL neutron [-] ConfigFileValueError: Value for option local_ip is not valid: IP address cannot be an empty string
2017-07-06 07:59:41.564 1 ERROR neutron Traceback (most recent call last):
2017-07-06 07:59:41.564 1 ERROR neutron File "/var/lib/kolla/venv/bin/neutron-openvswitch-agent", line 10, in <module>
2017-07-06 07:59:41
@rsoutar
rsoutar / gist:46399bf5860c0541e58b20198d1b06af
Created July 5, 2017 17:31
kubectl exec -ti ceph-mon-0 -n ceph -- ceph -s
root@kubenode01:~/openstack-helm# kubectl exec -ti ceph-mon-0 -n ceph -- ceph -s
cluster 5c378c4f-0c71-4c22-84a5-d4e16ba35c7f
health HEALTH_OK
monmap e3: 3 mons at {ceph-mon-0=192.168.105.210:6789/0,ceph-mon-1=192.168.16.216:6789/0,ceph-mon-2=192.168.96.27:6789/0}
election epoch 6, quorum 0,1,2 ceph-mon-1,ceph-mon-2,ceph-mon-0
fsmap e5: 1/1/1 up {0=mds-ceph-mds-1441403344-j27gs=up:active}
osdmap e16: 4 osds: 4 up, 4 in
flags sortbitwise,require_jewel_osds
pgmap v1584: 104 pgs, 6 pools, 2076 bytes data, 21 objects
41189 MB used, 1502 GB / 1625 GB avail
@rsoutar
rsoutar / gist:45b81244a8143f758c371d133fb98214
Created July 5, 2017 17:17
kubectl describe po/mariadb-0 -n openstack
root@kubenode01:~/openstack-helm# kubectl describe po/mariadb-0 -n openstack
Name: mariadb-0
Namespace: openstack
Node: kubenode02/58.82.171.42
Start Time: Thu, 06 Jul 2017 00:15:00 +0700
Labels: application=mariadb
component=server
release_name=mariadb
Annotations: kubernetes.io/created-by={"kind":"SerializedReference","apiVersion":"v1","reference":{"kind":"StatefulSet","namespace":"openstack","name":"mariadb","uid":"7959c81e-61a5-11e7-8fdb-0cc47aca6664","apiVer...
pod.beta.kubernetes.io/hostname=mariadb-0
@rsoutar
rsoutar / gist:ae9c26e0c28ad3d22a364f9e6b5df760
Created July 5, 2017 16:59
kubectl describe po/mariadb-0 --namespace=openstack
kubectl describe po/mariadb-0 --namespace=openstack
Name: mariadb-0
Namespace: openstack
Node: kubenode04/58.82.171.47
Start Time: Wed, 05 Jul 2017 23:54:08 +0700
Labels: application=mariadb
component=server
release_name=mariadb
Annotations: kubernetes.io/created-by={"kind":"SerializedReference","apiVersion":"v1","reference":{"kind":"StatefulSet","namespace":"openstack","name":"mariadb","uid":"8dd2c8a4-61a2-11e7-8fdb-0cc47aca6664","apiVer...
pod.beta.kubernetes.io/hostname=mariadb-0
@rsoutar
rsoutar / gist:b1697f93e17d652cbd52a570e0bfa059
Created July 5, 2017 16:58
kubectl describe pods --namespace openstack
kubectl describe pods --namespace openstack
Name: ceph-namespace-client-key-generator-zgdsp
Namespace: openstack
Node: kubenode05/58.82.171.48
Start Time: Wed, 05 Jul 2017 23:53:14 +0700
Labels: controller-uid=6f8d5d83-61a2-11e7-8fdb-0cc47aca6664
job-name=ceph-namespace-client-key-generator
Annotations: kubernetes.io/created-by={"kind":"SerializedReference","apiVersion":"v1","reference":{"kind":"Job","namespace":"openstack","name":"ceph-namespace-client-key-generator","uid":"6f8d5d83-61a2-11e7-8fdb-0...
Status: Succeeded
IP: 192.168.5.216
@rsoutar
rsoutar / gist:d73465306e3fda2196970d7837a480ae
Created July 5, 2017 15:00
kubectl describe --namespace openstack all
root@kubenode01:~/openstack-helm# kubectl describe --namespace openstack all
Name: ceph-namespace-client-key-generator-2hts5
Namespace: openstack
Node: kubenode04/58.82.171.47
Start Time: Wed, 05 Jul 2017 21:07:24 +0700
Labels: controller-uid=44eb8882-618b-11e7-8976-0cc47aca6664
job-name=ceph-namespace-client-key-generator
Annotations: kubernetes.io/created-by={"kind":"SerializedReference","apiVersion":"v1","reference":{"kind":"Job","namespace":"openstack","name":"ceph-namespace-client-key-generator","uid":"44eb8882-618b-11e7-8976-0...
Status: Succeeded
IP: