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=Node Develop | |
[Service] | |
Type=simple | |
TimeoutStartSec=5m | |
# Create data container |
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
-- Logs begin at Tue 2014-04-01 02:28:51 UTC, end at Fri 2014-04-11 00:59:21 UTC. -- | |
Apr 10 13:19:44 coreos1 update_engine[22503]: [0410/131944:INFO:omaha_request_action.cc(354)] Posting an Omaha request to http://public.roller.core-os.net/v1/update/ | |
Apr 10 13:19:44 coreos1 update_engine[22503]: [0410/131944:INFO:omaha_request_action.cc(355)] Request: <?xml version="1.0" encoding="UTF-8"?> | |
Apr 10 13:19:44 coreos1 update_engine[22503]: <request protocol="3.0" version="CoreOSUpdateEngine-0.1.0.0" updaterversion="CoreOSUpdateEngine-0.1.0.0" installsource="scheduler" ismachine="1"> | |
Apr 10 13:19:44 coreos1 update_engine[22503]: <os version="Chateau" platform="CoreOS" sp="273.0.0_x86_64"></os> | |
Apr 10 13:19:44 coreos1 update_engine[22503]: <app appid="{e96281a6-d1af-4bde-9a0a-97b76e56dc57}" version="273.0.0" track="alpha" from_track="alpha" bootid="{e8770eb0-1892-48fe-85d5-27702b1a5da2}" oem="" machineid="872761f03ba851fc93d357ec66bf1934" lang="en-US" board="amd64-usr" hardware_class="" delta_okay="false" > | |
Apr 10 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
#cloud-config | |
hostname: coreos3 | |
coreos: | |
etcd: | |
discovery: http://192.168.2.28:4001/v2/keys/cluster | |
addr: 192.168.2.52:4001 | |
peer-addr: 192.168.2.52:7001 | |
bind-addr: 0.0.0.0 |
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
package com.mycompany.fiber; | |
import java.io.IOException; | |
import java.net.InetSocketAddress; | |
import co.paralleluniverse.fibers.Fiber; | |
import co.paralleluniverse.fibers.SuspendExecution; | |
import co.paralleluniverse.fibers.io.FiberSocketChannel; | |
import co.paralleluniverse.fibers.io.FiberServerSocketChannel; | |
import co.paralleluniverse.strands.SuspendableRunnable; | |
import java.nio.ByteBuffer; |
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
package com.mycompany.fiber; | |
import co.paralleluniverse.fibers.Fiber; | |
import co.paralleluniverse.fibers.SuspendExecution; | |
import co.paralleluniverse.strands.SuspendableRunnable; | |
import co.paralleluniverse.strands.channels.Channel; | |
import co.paralleluniverse.strands.channels.Channels; | |
public class App | |
{ |
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
;; package | |
(require 'package) | |
(add-to-list 'package-archives | |
'("marmalade" . "http://marmalade-repo.org/packages/")) | |
(add-to-list 'package-archives | |
'("melpa" . "http://melpa.milkbox.net/packages/") t) |
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
;; package | |
(require 'package) | |
(add-to-list 'package-archives | |
'("marmalade" . "http://marmalade-repo.org/packages/")) | |
(add-to-list 'package-archives | |
'("melpa" . "http://melpa.milkbox.net/packages/") t) |
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
(ns hentai.core | |
(:require | |
[clojure.core.async :as async :refer :all]) | |
(:use | |
[hentai.crawler] | |
[clojure.tools.logging])) | |
(defn- zip [a b] | |
(map (fn [x y] (vector x y)) a b)) |
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
(ns cert | |
(import | |
(javax.net.ssl HttpsURLConnection SSLSession SSLSocket SSLSocketFactory))) | |
(defn- get-sever-certs [host port] | |
(let [factory (HttpsURLConnection/getDefaultSSLSocketFactory)] | |
(with-open [socket (doto | |
(.createSocket factory host port) | |
(.startHandshake))] | |
(-> |
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
package main | |
import ( | |
"log" | |
"reflect" | |
"strings" | |
) | |
type Person struct { | |
Name string |