This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
log () | |
{ | |
echo -e "$@" >&2 | |
} | |
err_exit () | |
{ | |
log "Error: $1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: Node exporter | |
# Required-Start: $local_fs $network $named $time $syslog | |
# Required-Stop: $local_fs $network $named $time $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Description: Node exporter for prometheus written in Go | |
### END INIT INFO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Prometheus node exporter | |
After=local-fs.target network-online.target network.target | |
Wants=local-fs.target network-online.target network.target | |
[Service] | |
ExecStart=/opt/node_exporter | |
Type=simple | |
[Install] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2017-05-09T09:22:38.88+0200 [API/0] OUT Updated app with guid 8c6e9aec-451d-465e-bd1b-13566360d1a2 ({"name"=>"scaling_engine_2"}) | |
2017-05-09T09:22:45.55+0200 [API/0] OUT Updated app with guid 8c6e9aec-451d-465e-bd1b-13566360d1a2 ({"state"=>"STARTED"}) | |
2017-05-09T09:22:45.67+0200 [STG/0] OUT Downloading nodejs_buildpack... | |
2017-05-09T09:22:45.67+0200 [STG/0] OUT Downloading binary_buildpack... | |
2017-05-09T09:22:45.67+0200 [STG/0] OUT Downloading go_buildpack... | |
2017-05-09T09:22:45.67+0200 [STG/0] OUT Downloading php_buildpack... | |
2017-05-09T09:22:45.67+0200 [STG/0] OUT Downloading python_buildpack... | |
2017-05-09T09:22:45.68+0200 [STG/0] OUT Downloading staticfile_buildpack... | |
2017-05-09T09:22:45.68+0200 [STG/0] OUT Downloaded nodejs_buildpack | |
2017-05-09T09:22:45.69+0200 [STG/0] OUT Downloaded binary_buildpack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am yremmet on github. | |
* I am enat (https://keybase.io/enat) on keybase. | |
* I have a public key ASCyzzVQE0cQ_eNnPoTIWkB_ejH8GC7RJy2QvuqelbqsWQo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ViewController.swift | |
// test | |
// | |
// Created by enat on 27/06/16. | |
// Copyright © 2016 enat. All rights reserved. | |
// | |
import UIKit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# My Test Gist | |
//setup | |
[source,cypher] | |
---- | |
CREATE (you:Person {name:"You"})-[like:LIKE]->(thing:Database {name:"Neo4j" }) | |
RETURN you, like, thing | |
---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ParticleSystems implements ... { | |
private Semaphore particleModifiedSemaphore = new Semaphore(1); | |
[...] | |
public void refreshParticlePositions() | |
{ | |
synchronized(particleModifiedSemaphore) | |
{ | |
[...] | |
} | |
} |