Generate a random password for verifying HTTP requests from GitHub to your WebHook endpoint:
openssl rand -hex 20 > /path/to/hook_secret
Decide the GitHub repository named for the demo:
ORG=mumoshu # Replace with your org name!
Generate a random password for verifying HTTP requests from GitHub to your WebHook endpoint:
openssl rand -hex 20 > /path/to/hook_secret
Decide the GitHub repository named for the demo:
ORG=mumoshu # Replace with your org name!
$ goweight ./ | |
5.7 MB github.com/aws/aws-sdk-go/service/s3 | |
3.8 MB net/http | |
3.3 MB runtime | |
1.9 MB golang.org/x/net/http2 | |
1.8 MB github.com/golang/protobuf/proto | |
1.8 MB net | |
1.8 MB crypto/tls | |
1.7 MB google.golang.org/api/storage/v1 | |
1.5 MB github.com/aws/aws-sdk-go/aws/endpoints |
name := "DES encryption in Scala" | |
version := "1.0" | |
scalaVersion := "2.9.1" | |
libraryDependencies += "commons-codec" % "commons-codec" % "1.6" |
import java.io.File | |
import java.io.FileInputStream | |
case class Chunk(length: Int, bytes: Array[Byte]) | |
def fileContentStream(fileIn: FileInputStream): Stream[Chunk] = { | |
val bytes = Array.fill[Byte](1024)(0) | |
val length = fileIn.read(bytes) | |
Chunk(length, bytes) #:: fileContentStream(fileIn) | |
} |
#!/usr/bin/env variant | |
mixins: | |
cluster: &cluster | |
type: object | |
properties: | |
vpc-private-subnets: | |
type: array | |
vpc-public-subnets: | |
type: array |
I'm doing GitOps(https://www.weave.works/blog/gitops-operations-by-pull-request). Personally I've been using brigade and atlantis for their respective sweet-spots.
However, all the existing solutions had required me to maintain machines to host them. Something that works in long term without my hand is always appreciated.
I'd like it a lot if Codefresh added "Slack" or more generically "Webhook" as pipeline triggers.
try: | |
tf.nn.seq2seq = tf.contrib.legacy_seq2seq | |
tf.nn.rnn_cell = tf.contrib.rnn | |
tf.nn.rnn_cell.GRUCell = tf.contrib.rnn.GRUCell | |
tf.nn.rnn = tf.contrib.rnn.static_rnn | |
# https://github.com/tensorflow/tensorflow/issues/7032 | |
tf.sub = tf.subtract | |
# https://stackoverflow.com/questions/47296969/valueerror-variable-rnn-basic-rnn-cell-kernel-already-exists-disallowed-did-y | |
tf.reset_default_graph() | |
print("TensorFlow's version : 1.0 (or more)") |
package main | |
import ( | |
"fmt" | |
"net/http" | |
) | |
func handler(w http.ResponseWriter, r *http.Request) { | |
fmt.Fprintf(w, "Hi there, I love %s!", r.URL.Path[1:]) | |
} |
import actors.Actor | |
import io.Source | |
import java.lang.StringBuilder | |
import scala.util.continuations.{reset, shift} | |
import scala.actors.Actor.{loop, react} | |
/** | |
* {@link Request}を実行し、{@link Response}を返すtrait | |
*/ | |
trait Http { |
(function($) { | |
/** | |
* アプリケーション全体で共有するデータを保持したり、変更を通知する | |
*/ | |
function Registry() { | |
} | |
Registry.prototype.put = function(key, value) { | |
this[key] = value; |