Skip to content

Instantly share code, notes, and snippets.

Tim Schindler xh3b4sd

Block or report user

Report or block xh3b4sd

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:262b409d2cad99367b016677c2d899be
giantswarm@w3xsz-worker-000005 ~ $ sudo journalctl -u docker.service --since "2019-07-22 12:15:00" --until "2019-07-22 12:18:00"
-- Logs begin at Tue 2019-06-25 06:45:39 UTC, end at Mon 2019-08-12 19:37:28 UTC. --
Jul 22 12:15:12 w3xsz-worker-000005 env[1175]: time="2019-07-22T12:15:12.334217300Z" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"
Jul 22 12:15:15 w3xsz-worker-000005 env[1175]: time="2019-07-22T12:15:15.293475238Z" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"
Jul 22 12:15:16 w3xsz-worker-000005 systemd[1]: Stopping Docker Application Container Engine...
Jul 22 12:15:16 w3xsz-worker-000005 env[1175]: time="2019-07-22T12:15:16.691466258Z" level=info msg="Processing signal 'terminated'"
Jul 22 12:15:16 w3xsz-worker-000005 systemd[1]: Stopped Docker Application Container Engine.
-- Reboot --
Jul 22 12:15:55 w3xsz-worker-000005 systemd[1]: Starting Docker Application C
View gist:7c05347e49bae0a886b0fe9d66c2632a
xh3b4sd@osx.local go run main2.go
addFunc
2017-09-28 21:19:26.523985438 +0200 CEST
&main.CustomObject{TypeMeta:v1.TypeMeta{Kind:"Test", APIVersion:"example.com/v1"}, ObjectMeta:v1.ObjectMeta{Name:"al9qy", GenerateName:"", Namespace:"", SelfLink:"/apis/example.com/v1/al9qy", UID:"6fb9c753-a47f-11e7-bf21-08002788865b", ResourceVersion:"1680532", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{sec:63642222090, nsec:0, loc:(*time.Location)(0x28e3520)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Initializers:(*v1.Initializers)(nil), Finalizers:[]string(nil), ClusterName:""}, Spec:main.Spec{ID:"al9qy"}}
updateFunc
2017-09-28 21:19:26.525054246 +0200 CEST
&main.CustomObject{TypeMeta:v1.TypeMeta{Kind:"Test", APIVersion:"example.com/v1"}, ObjectMeta:v1.ObjectMeta{Name:"al9qy", GenerateName:"", Namespace:"", SelfLink:"/apis/example.com/v1/al9qy", UID:"6fb9c753-a47f-11
@xh3b4sd
xh3b4sd / main.go
Created Sep 28, 2017
k8s cache informer resync period weirdness
View main.go
// CRD
//
// apiVersion: apiextensions.k8s.io/v1beta1
// kind: CustomResourceDefinition
// metadata:
// name: tests.example.com
// spec:
// group: example.com
// version: v1
// scope: Cluster
@xh3b4sd
xh3b4sd / main.go
Created Sep 7, 2016
Split keys into channels across a number of events
View main.go
package main
import (
"fmt"
)
var (
keys = []string{
"a",
"b",
View gist:83372795b2538c12a748b404c0d2c1aa
### Keybase proof
I hereby claim:
* I am xh3b4sd on github.
* I am xh3b4sd (https://keybase.io/xh3b4sd) on keybase.
* I have a public key whose fingerprint is 0570 AB35 4F85 4C7B 5517 B54D 7961 3CFD C43B 50EF
To claim this, I am signing this object:
@xh3b4sd
xh3b4sd / prometheus.log
Created Jul 8, 2016
prometheus crash log
View prometheus.log
Jul 07 23:34:32 0b03b1b46b2f79d2 docker[31987]: time="2016-07-07T23:34:32Z" level=info msg="Checkpointing in-memory metrics and chunks..." source="persistence.go:539"
Jul 07 23:35:17 0b03b1b46b2f79d2 docker[31987]: time="2016-07-07T23:35:17Z" level=info msg="Done checkpointing in-memory metrics and chunks in 44.833753899s." source="persistence.go:563"
Jul 07 23:42:03 0b03b1b46b2f79d2 docker[31987]: time="2016-07-07T23:42:03Z" level=info msg="Checkpointing in-memory metrics and chunks..." source="persistence.go:539"
Jul 07 23:42:47 0b03b1b46b2f79d2 docker[31987]: time="2016-07-07T23:42:47Z" level=info msg="Done checkpointing in-memory metrics and chunks in 43.315022375s." source="persistence.go:563"
Jul 07 23:42:55 0b03b1b46b2f79d2 docker[31987]: fatal error: unexpected signal during runtime execution
Jul 07 23:42:55 0b03b1b46b2f79d2 docker[31987]: [signal 0xb code=0x1 addr=0xf1 pc=0x466b5b]
Jul 07 23:42:55 0b03b1b46b2f79d2 docker[31987]: runtime stack:
Jul 07 23:42:55 0b03b1b46b2f79d2 docker[31987]: runtime.t
@xh3b4sd
xh3b4sd / vagrant_debug.log
Created Jul 4, 2016
tmp2/ VAGRANT_LOG=debug vagrant up
View vagrant_debug.log
$ VAGRANT_LOG=debug vagrant up
INFO global: Vagrant version: 1.8.4
INFO global: Ruby version: 2.2.3
INFO global: RubyGems version: 2.4.5.1
INFO global: VAGRANT_LOG="debug"
INFO global: VAGRANT_OLD_ENV_SSH_AUTH_SOCK="/private/tmp/com.apple.launchd.uPkHP8P9K5/Listeners"
INFO global: VAGRANT_OLD_ENV_USER="zyndiecate"
INFO global: VAGRANT_OLD_ENV___CF_USER_TEXT_ENCODING="0x1F5:0x0:0x0"
INFO global: VAGRANT_OLD_ENV_OLDPWD="/Users/zyndiecate/projects"
INFO global: VAGRANT_OLD_ENV_GREP_COLOR="37;45"
@xh3b4sd
xh3b4sd / vagrant_debug.log
Created Jul 4, 2016
tmp1/ VAGRANT_LOG=debug vagrant up
View vagrant_debug.log
$ VAGRANT_LOG=debug vagrant up
INFO global: Vagrant version: 1.8.4
INFO global: Ruby version: 2.2.3
INFO global: RubyGems version: 2.4.5.1
INFO global: VAGRANT_LOG="debug"
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/gems/vagrant-1.8.4/bin/vagrant"
INFO global: VAGRANT_OLD_ENV___CF_USER_TEXT_ENCODING="0x1F5:0x0:0x0"
INFO global: VAGRANT_OLD_ENV_EDITOR="vim"
INFO global: VAGRANT_OLD_ENV_LESS_TERMCAP_me="\e[0m"
INFO global: VAGRANT_OLD_ENV_LESS_TERMCAP_se="\e[0m"
@xh3b4sd
xh3b4sd / formats.md
Last active Jan 4, 2016
alternative unit file abstraction format
View formats.md
$ cat format.json
{
  "includes": [
    "extension.json"
  ],
  "pre-sidekick": [
    {
      "type": "ambassador",
      "dependency": "app",
@xh3b4sd
xh3b4sd / cli_util.go
Created Feb 18, 2015
cli tuils in golang
View cli_util.go
package cli
import (
"fmt"
"os"
)
// Exit process with code 1 and print output to Stderr, using the error message
// of err. If --debug is set to true, a helpful error will be printed.
func ExitStderr(err error) {
You can’t perform that action at this time.