Code | Title | Duration | Link |
---|---|---|---|
Keynote | Andy Jassy Keynote Announcement Recap | 0:01 | https://www.youtube.com/watch?v=TZCxKAM2GtQ |
Keynote | AWS re:Invent 2016 Keynote: Andy Jassy | 2:22 | https://www.youtube.com/watch?v=8RrbUyw9uSg |
Keynote | AWS re:Invent 2016 Keynote: Werner Vogels | 2:16 | https://www.youtube.com/watch?v=ZDScBNahsL4 |
Keynote | [Tuesday Night Live with Jame |
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
location / { | |
content_by_lua 'os.execute("/var/www/cgi-bin/script.sh")'; | |
} |
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 ( | |
"fmt" | |
) | |
func makeFunction(name string) func() { | |
return func() { | |
fmt.Printf("Hello %s", name) | |
} |
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
// thanks to https://github.com/rhartkopf/check_ec2_events/blob/master/check_ec2_events.go | |
// This program will query Amazon API | |
// and show scedulled events for EC2 instances | |
// When you have a slack, you would like to see messages in the room: | |
// 0 6 * * * root /usr/local/bin/instances_event | /usr/local/bin/slacktee.sh --title "upcoming instances events" > /dev/null | |
package main | |
import ( | |
"fmt" |
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
#!/usr/bin/env python | |
import os | |
import urllib2 | |
import json | |
from packaging import version | |
import sys | |
from prettytable import PrettyTable | |
repo = "/path/to/repo/folder" | |
exclude_cookbooks = "xxx-" |
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
/* | |
Program require access to S3 objects. | |
It will download gz file, gunzip it, read flat file and convert output into json. | |
You can use output as a data in HTTP and stream into elastic search(or ELK). | |
INFO: https://aws.amazon.com/blogs/aws/vpc-flow-logs-log-and-view-network-traffic-flows/ | |
*/ | |
package main | |
import ( | |
"bufio" |
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
--- !ruby/object:Puppet::Transaction::Report | |
host: xxxxxxxxxx.xxx.xxxx.xxxxxx.zone.bc9d1c0ecc244e7cac142dbebeb4f804899f7f41 | |
time: '2018-11-06T14:06:51.920176837+01:00' | |
configuration_version: 'efe7389 - Xxxxx Xxxxxxxxxxx, Tue Nov 6 10:45:26 2018 +0300 : | |
GP_4668_bidlos LAAS' | |
transaction_uuid: 89a80372-3c4a-4345-85f8-a8db3cf88cba | |
report_format: 8 | |
puppet_version: 5.4.0 | |
status: unchanged | |
transaction_completed: true |
- Введение в программирование на Go - http://golang-book.ru/
- Всё, что вы хотели знать про GOPATH и GOROOT - http://habrahabr.ru/post/249545/ (статья на Хабре)
- Русский форум по Go - https://groups.google.com/forum/#!forum/golang-ru
- Первый русскоязычный сайт по Go http://4gophers.com/
- Русскоязычный slack-чат по Go https://golang-ru.slack.com
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
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
This has been moved into the official Chef docs:
https://docs.chef.io/custom_resources_notes.html
This is by far the most recommended way of writing resources for all users. There are two gotchas which we're working through:
- For helper functions that you used to write in your provider code or used to mixin to your provider code, you have to use an
action_class do ... end
block.
OlderNewer