Skip to content

Instantly share code, notes, and snippets.

View rrichardson's full-sized avatar
💭
⚔️ Hacking Away

Rick Richardson rrichardson

💭
⚔️ Hacking Away
View GitHub Profile
2016-08-25 07:04:52 -0700 [info]: serverengine/multi_process_server.rb:124:alive?: Worker 0 finished unexpectedly with status 1
2016-08-25 07:04:53 -0700 [info]: fluent/supervisor.rb:583:read_config: reading config file path="misc/fluentd_sample.conf"
2016-08-25 07:04:53 -0700 [info]: fluent/supervisor.rb:402:run_worker: starting fluentd-0.14.2 without supervision
2016-08-25 07:04:53 -0700 [info]: fluent/engine.rb:116:block in configure: gem 'fluentd' version '0.14.2'
2016-08-25 07:04:53 -0700 [info]: fluent/engine.rb:116:block in configure: gem 'fluent-plugin-prometheus' version '0.1.3'
2016-08-25 07:04:53 -0700 [info]: fluent/agent.rb:143:add_filter: adding filter pattern="nginx" type="prometheus"
2016-08-25 07:04:53 -0700 [error]: fluent/supervisor.rb:567:rescue in main_process: unexpected error error="uninitialized constant Fluent::RecordTransformerFilter"
32374:20160906:221316.145 In send_list_of_active_checks_json()
32374:20160906:221316.145 In get_hostid_by_host() host:'ip-10-33-1-114.ec2.internal'
32374:20160906:221316.145 query [txnlev:0] [select hostid,status,tls_accept,tls_issuer,tls_subject,tls_psk_identity from hosts where host='ip-10-33-1-114.ec2.internal' and status in (0,1) and flags<>2 and proxy_hostid is null]
32374:20160906:221316.146 End of get_hostid_by_host():SUCCEED
trait impl
https://github.com/rrichardson/tokio-core/blob/master/src/net/mod.rs#L27-L41
trait impl that uses the above traits:
https://github.com/rrichardson/tokio-core/blob/master/src/net/udp_stream.rs#L25
to satisfy this trait:
http://alexcrichton.com/futures-rs/futures/stream/trait.Stream.html (specifically the poll function)
Name: nginx-ingress-controller-njj4o
Namespace: kube-system
Node: ip-10-111-0-157.ec2.internal/10.111.0.157
Start Time: Fri, 30 Sep 2016 18:48:36 +0000
Labels: name=nginx-ingress-controller
Status: Running
IP: 10.112.80.11
Controllers: DaemonSet/nginx-ingress-controller
Containers:
nginx-ingress:
apiVersion: v1
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
name: traefik-ingress-lb
namespace: kube-system
labels:
k8s-app: traefik-ingress-lb
spec:
replicas: 3
#![feature(conservative_impl_trait)]
extern crate futures;
extern crate tokio_core;
use std::env;
use std::io;
use std::net::SocketAddr;
use futures::{Future, Poll, Async};
use futures::stream::Stream;
use tokio_core::io::{copy, Io, read_exact, WriteHalf};
{
"coord": {
"lon": -73.95,
"lat": 40.74
},
"weather": [
{
"id": 800,
"main": "Clear",
"description": "clear sky",
PIXI = require("pixi.js");
var quadratic = require('adaptive-quadratic-curve')
require('zepto')
$ = window.Zepto;
var spoint = [20, 20], c1 = [100, 159], epoint = [200, 20], scale = 2;
var points = quadratic(spoint, c1, epoint, scale);
module.exports = {
entry: {
app: './modules/main.js',
},
output: {
filename: 'app.js',
path: path.resolve(__dirname, 'public/js'),
publicPath: '/js/',
},
module: {
func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
let deviceTokenString = deviceToken.reduce("", {$0 + String(format: "%02x", $1)})