Getting Started With the Docker RBD Volume Plugin rbd-docker-plugin
docker run -it --rm \
--privileged \
--name rbd-docker-plugin \
--net host \
--volume /dev:/dev \
--volume /sys:/sys \
--volume /etc/ceph:/etc/ceph \
self.network = input_data(shape = [None, SIZE_FACE, SIZE_FACE, 1]) | |
self.network = conv_2d(self.network, 96, 3, strides = 3, activation = 'relu') | |
self.network = max_pool_2d(self.network, 3, strides = 2) | |
# Fire 1 | |
fire2_squeeze = conv_2d(self.network, 16, 1, activation = 'relu') | |
fire2_expand1 = conv_2d(fire2_squeeze, 64, 1, activation = 'relu') | |
fire2_expand2 = conv_2d(fire2_squeeze, 64, 3, activation = 'relu') | |
self.network = merge([fire2_expand1, fire2_expand2], mode = 'concat', axis = 1) |
Getting Started With the Docker RBD Volume Plugin rbd-docker-plugin
docker run -it --rm \
--privileged \
--name rbd-docker-plugin \
--net host \
--volume /dev:/dev \
--volume /sys:/sys \
--volume /etc/ceph:/etc/ceph \
import com.google.api.client.googleapis.auth.oauth2.GoogleIdToken; | |
import com.google.api.client.googleapis.auth.oauth2.GoogleIdTokenVerifier; | |
import com.google.api.client.http.HttpTransport; | |
import com.google.api.client.http.apache.ApacheHttpTransport; | |
import com.google.api.client.json.JsonFactory; | |
import com.google.api.client.json.jackson2.JacksonFactory; | |
import java.util.Collections; | |
/** | |
* Hello world! |
//Cria o índice especificando quais os analyzer ele tem | |
//Além disso especifica que o campo "titulo" do tipo "seu_tipo" utiliza o analyzer recem criado | |
curl -XPUT "http://localhost:9200/my_index" -d' | |
{ | |
"settings": { | |
"analysis": { | |
"analyzer": { | |
"analyzer_customizado": { | |
"tokenizer": "standard", |
package main | |
import ( | |
"log" | |
"net/mail" | |
"encoding/base64" | |
"net/smtp" | |
"fmt" | |
"strings" |
It's not immediately obvious how to pull down the code for a PR and test it locally. But it's pretty easy. (This assumes you have a remote for the main repo named upstream
.)
Getting the PR code
Make note of the PR number. For example, Rod's latest is PR #37: Psiphon-Labs/psiphon-tunnel-core#37
Fetch the PR's pseudo-branch (or bookmark or rev pointer whatever the word is), and give it a local branch name. Here we'll name it pr37
:
$ git fetch upstream pull/37/head:pr37
#!/bin/bash | |
# | |
# Generates client and server certificates used to enable HTTPS | |
# remote authentication to a Docker daemon. | |
# | |
# See http://docs.docker.com/articles/https/ | |
# | |
# To start the Docker Daemon: | |
# | |
# sudo docker -d \ |
AWSTemplateFormatVersion: '2010-09-09' | |
Description: Cognito Stack | |
Parameters: | |
AuthName: | |
Type: String | |
Description: Unique Auth Name for Cognito Resources | |
Resources: | |
# Creates a role that allows Cognito to send SNS messages | |
SNSRole: |
var mediaJSON = { "categories" : [ { "name" : "Movies", | |
"videos" : [ | |
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org", | |
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ], | |
"subtitle" : "By Blender Foundation", | |
"thumb" : "images/BigBuckBunny.jpg", | |
"title" : "Big Buck Bunny" | |
}, | |
{ "description" : "The first Blender Open Movie from 2006", | |
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ], |