Skip to content

Instantly share code, notes, and snippets.

Matt Hughes matthughes

Block or report user

Report or block matthughes

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:848db5699d2da91f299ea62a7bce454d
Error when running tests using:
version in installJsdom := "12.2.0",
requireJsDomEnv in Test := true,
scalajs 0.6.25
scalajs-bundler 0.14.0
[info] EndTestGroupErrorEvent(com.comcast.palermo.client.controls.NumberInputTest, null
[info] org.scalajs.testcommon.RPCCore.helpClose(RPCCore.scala:226)
[info] org.scalajs.testcommon.RPCCore.close(RPCCore.scala:218)
View gist:ab651c5a46354f948dc86f93cda7a2b8
5 ses=4294967295 subj=system_u:system_r:kernel_t:s0 msg='unit=systemd-networkd comm="systemd" exe="/usr/lib64/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 563.426588] audit: type=1131 audit(1477342754.004:86): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 msg='unit=systemd-timesyncd comm="systemd" exe="/usr/lib64/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 563.626170] audit: type=1131 audit(1477342754.204:87): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 msg='unit=emergency comm="systemd" exe="/usr/lib64/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 563.637466] audit: type=1131 audit(1477342754.215:88): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 msg='unit=systemd-random-seed comm="systemd" exe="/usr/lib64/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 563.868397] audit: type=1131 audit(1477342754.445:89): pid=1 uid=0 auid=4294967295 ses=429496729
View gist:6be3d1f91fffacbf9d2f413dcfb5dce6
[centos@es-worker-0 ~]$ sudo yum update -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package bash.x86_64 0:4.2.46-19.el7 will be updated
---> Package bash.x86_64 0:4.2.46-20.el7_2 will be an update
---> Package bind-libs.x86_64 32:9.9.4-29.el7_2.2 will be updated
---> Package bind-libs.x86_64 32:9.9.4-29.el7_2.3 will be an update
---> Package bind-libs-lite.x86_64 32:9.9.4-29.el7_2.2 will be updated
View gist:7b53d71597cc33388fb0
{
"kind": "Service",
"apiVersion": "v1",
"metadata": {
"name": "my-nginx",
"namespace": "default",
"selfLink": "/api/v1/namespaces/default/services/my-nginx",
"uid": "5461e561-da77-11e5-82f6-fa163ea97228",
"resourceVersion": "11234",
"creationTimestamp": "2016-02-23T21:49:35Z",
View gist:5905acf0de92b6653ccf
etcd2 \
> --name master \
> --listen-client-urls http://0.0.0.0:2379,http://0.0.0.0:4001 \
> --listen-peer-urls http://0.0.0.0:2380,http://0.0.0.0:7001 \
> --initial-advertise-peer-urls http://96.119.242.91:2380 \
> --initial-cluster "master=http://96.119.242.91:2380" \
> --advertise-client-urls "http://96.119.242.91:2379,http://96.119.242.91:4001"
2016-02-23 01:46:30.713116 I | etcdmain: etcd Version: 2.2.0
2016-02-23 01:46:30.713398 I | etcdmain: Git SHA: e4561dd
2016-02-23 01:46:30.713490 I | etcdmain: Go Version: go1.4.2
View gist:6981fe46a7dd5604af61
core@master / $ cd ~
core@master ~ $ ls
foo.txt
core@master ~ $ cat foo.txt
-- Logs begin at Sat 2016-02-20 02:06:31 UTC, end at Sat 2016-02-20 02:25:15 UTC. --
Feb 20 02:06:34 localhost coreos-cloudinit[636]: 2016/02/20 02:06:34 Checking availability of "local-file"
Feb 20 02:06:34 localhost coreos-cloudinit[636]: 2016/02/20 02:06:34 Fetching user-data from datasource of type "local-file"
Feb 20 02:06:34 localhost coreos-cloudinit[636]: 2016/02/20 02:06:34 Fetching meta-data from datasource of type "local-file"
Feb 20 02:06:34 localhost coreos-cloudinit[636]: 2016/02/20 02:06:34 Parsing user-data as cloud-config
Feb 20 02:06:34 localhost coreos-cloudinit[636]: 2016/02/20 02:06:34 Merging cloud-config from meta-data and user-data
View gist:0ef92cdef4a40b756686
{
"namespace": "foo.datatype",
"name": "UUID",
"type": "fixed",
"size": 16,
"doc": "Convey a UUID value"
},
{
"namespace": "foo.events",
"name": "Event",
View gist:875d4241f09e08b05b10
ubuntu@osclient:~$ cat /home/ubuntu/.pip/pip.log
------------------------------------------------------------
/usr/bin/pip run on Tue Dec 22 19:04:24 2015
Downloading/unpacking python-openstackclient
Getting page https://pypi.python.org/simple/python-openstackclient/
URLs to search for versions for python-openstackclient:
* https://pypi.python.org/simple/python-openstackclient/
Analyzing links from page https://pypi.python.org/simple/python-openstackclient/
Found link https://pypi.python.org/packages/py2.py3/p/python-openstackclient/python_openstackclient-0.4.0-py2.py3-none-any.whl#md5=221b18b4398f49f4ae3248376708118e (from https://pypi.python.org/simple/python-openstackclient/), version: 0.4.0
Found link https://pypi.python.org/packages/py2.py3/p/python-openstackclient/python_openstackclient-0.4.1-py2.py3-none-any.whl#md5=be0cd535f5fa99a2f9c0da7cdcc30cce (from https://pypi.python.org/simple/python-openstackclient/), version: 0.4.1
View stream-retries.scala
object PaulRetry {
import scalaz.stream.{ async, Process }
import scalaz.concurrent.Task
import scala.concurrent.duration._
implicit val scheduler = scalaz.stream.DefaultScheduler
/**
* Try running the process `p`, retrying in the event of failure.
* Example: `retry(Process.awakeEvery(2 minutes))(p)` will wait
* 2 minutes after each failure before trying again, indefinitely.
View gist:0ecac93172b2c928f6f6
> echo '{"foo": "bar"}' | jq --arg foo foo '.[$foo]'
"bar"
› echo '{"foo": {"bar": "baz"} }' | jq --arg bar bar '."foo".[$bar]'
jq: error: syntax error, unexpected '[', expecting FORMAT or QQSTRING_START (Unix shell quoting issues?) at <top-level>, line 1:
."foo".[$bar]
jq: 1 compile error
› echo '{"foo": {"bar": "baz"} }' | jq '."foo"' | jq --arg bar bar '.[$bar]'
"baz"
You can’t perform that action at this time.