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
def make_sudo_cmd(sudo_user, executable, cmd): | |
""" | |
helper function for connection plugins to create sudo commands | |
""" | |
# Rather than detect if sudo wants a password this time, -k makes | |
# sudo always ask for a password if one is required. | |
# Passing a quoted compound command to sudo (or sudo -s) | |
# directly doesn't work, so we shellquote it with pipes.quote() | |
# and pass the quoted string to the user's shell. We loop reading | |
# output until we see the randomly-generated sudo prompt set with |
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
if err := session.Run("/usr/bin/scp -qrt ./"); err != nil { |
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 ( | |
"bytes" | |
"exec" | |
"log" | |
"os" | |
) | |
// Pipeline strings together the given exec.Cmd commands in a similar fashion |
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
Subject: =?utf-8?B?6ZW344GE44K144OW44K444Kn44Kv44OI6ZW344GE44K144OW44K4?= | |
=?utf-8?B?44Kn44Kv44OI6ZW344GE44K144OW44K444Kn44Kv44OI6ZW344GE?= | |
=?utf-8?B?44K144OW44K444Kn44Kv44OI6ZW344GE44K144OW44K444Kn44Kv?= | |
=?utf-8?B?44OI6ZW344GE44K144OW44K444Kn44Kv44OI6ZW344GE44K144OW?= | |
=?utf-8?B?44K444Kn44Kv44OI?= | |
MIME-Version: 1.0 | |
Content-Type: text/plain; charset="utf-8" | |
Content-Transfer-Encoding: base64 | |
Message-Id: <20140222115231.8DECE260593@st> | |
Date: Sat, 22 Feb 2014 20:52:31 +0900 (JST) |
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
mail_from: masahide.y@gmail.com | |
to: [masahide.y@gmail.com] | |
var: | |
c: 2 | |
d: [3, 4] |
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
ubuntu@drone:~$ cat /etc/default/docker | |
# Docker Upstart and SysVinit configuration file | |
# Customize location of Docker binary (especially for development testing). | |
#DOCKER="/usr/local/bin/docker" | |
# Use DOCKER_OPTS to modify the daemon startup options. | |
#DOCKER_OPTS="-dns 8.8.8.8 -dns 8.8.4.4" | |
DOCKER_OPTS="-H tcp://0.0.0.0:4243 -H unix:///var/run/docker.sock" |
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
pkg/os/error_unix.go:11: isExist redeclared in this block | |
previous declaration at pkg/os/error_posix.go:11 |
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
host VMnet8 { | |
# ubuntu | |
hardware ethernet 00:0c:11:bb:cc:dd; | |
fixed-address 192.168.21.127; | |
} | |
#End |
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
[BatchWriteItem] – 1 回のトランザクションとしてではなく、1回のリクエストで、複数のテーブル間で複数の項目を挿入、置換、削除します。Put または Delete で最大 25 項目のバッチをサポートし、合計リクエストサイズは最大 1 MB です。 |
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
examplebucket/2013-26-05-15-00-00/host01/apache/access_log | |
examplebucket/2013-26-05-15-00-00/host02/apache/access_log | |
examplebucket/2013-26-05-15-00-00/host03/apache/access_log | |
examplebucket/2013-26-05-15-00-00/host04/apache/access_log |
OlderNewer