#Apresentação GIT
#####Git basics
#####Branches
aws s3api put-bucket-versioning --bucket "{{bucket}}" --versioning-configuration "Status=Suspended"; | |
aws s3api delete-objects --bucket "{{bucket}}" --delete "$(aws s3api list-object-versions --bucket "{{bucket}}" --output=json --query='{Objects: *[].{Key:Key,VersionId:VersionId}}')"; | |
aws s3api delete-bucket-policy --bucket "{{bucket}}"; | |
aws s3 rm "s3://{{bucket}}" --recursive; | |
aws s3 rb "s3://{{bucket}}" |
1xx Informational | |
100 Continue :continue | |
101 Switching Protocols :switching_protocols | |
102 Processing :processing | |
2xx Success | |
200 OK :ok |
#Apresentação GIT
#####Git basics
#####Branches
# Index | |
--------------------------------------------------------------------- | |
curl -XPUT http://localhost:9200/pictures/ -d ' | |
{ | |
"settings": { | |
"analysis": { | |
"analyzer": { | |
"index_analyzer": { | |
"tokenizer": "standard", |
tl;dr: Foi um dos anos que eu mais me fudi, mas também um dos que eu mais aprendi–e, por isso, eu o considero especialmente bom na minha vida.
This sample is strongly based on Erlectricity, avaliable from: | |
http://github.com/mojombo/erlectricity | |
The echo.rb is the same, but the echo.erl is really a little bit better. It's because I refactored it to | |
extract functions to send and receive messages and also (and more important) introduce some patterns on | |
receive statement to matching other messages (specially to receive exit_status messages from "dead" ports). | |
More sugar is always good. At least for me. ;) |
// Based on Fantom's word count example here: http://blog.joda.org/2011/11/guide-to-evaluating-fantom.html | |
// I'm commenting the lines that need changing, and leaving a few of them uncommented, | |
// as they are the same | |
// class WordCount { | |
object WordCount { | |
// Void main(Str[] args) { | |
def main(args: Array[String]) { | |
if (args.size != 1) { |
import Keys._ | |
name := "hello" | |
version := "1.0" | |
scalaVersion := "2.10.2" | |
lazy val hello = taskKey[Unit]("A custom run task.") |