jq -r '.[] | to_entries | map("\(.key):\(.value)") | join("\t")'
Tags がないとき用に .Tags[]?
にしておく
<?xml version='1.0' encoding='UTF-8'?> | |
<hudson> | |
<disabledAdministrativeMonitors/> | |
<version>1.0</version> | |
<numExecutors>2</numExecutors> | |
<mode>NORMAL</mode> | |
<useSecurity>true</useSecurity><!-- セキュリティ有効化 --> | |
<authorizationStrategy class="hudson.security.FullControlOnceLoggedInAuthorizationStrategy"/> | |
<securityRealm class="hudson.security.HudsonPrivateSecurityRealm"> | |
<disableSignup>true</disableSignup><!-- ユーザにサインアップを許可 --> |
#!/usr/bin/env ruby | |
require 'time' | |
require 'optparse' | |
in_delim = "\t" | |
out_delim = "\t" | |
f = nil | |
opt = OptionParser.new |
server { | |
listen 80; | |
server_name example.com; | |
access_log /path/to/access.log main; | |
error_log /path/to/error.log; | |
root /path/to/kohana/web; | |
location / { | |
index index.php; | |
if (-f $request_filename) { |
#!/bin/bash | |
apt-get update | |
apt-get install -y debconf libaio1 apparmor-profiles lsb-release gnupg | |
DEB="/tmp/mysql.deb" | |
ROOT_PASSWORD="" | |
MYSQL_USER="testuser" | |
MYSQL_PASSWORD="testpass" |
variable "foo" { | |
type = "string" | |
default = "baz" | |
} | |
data "external" "example" { | |
program = ["bash", "test.sh"] | |
query = { | |
foo = "${var.foo}" |
$ go doc -all net/http | awk '$1 ~ /Status/ && $2 == "=" {print}' | awk '{print $3, $1}'
100 StatusContinue
101 StatusSwitchingProtocols
102 StatusProcessing
200 StatusOK
201 StatusCreated
202 StatusAccepted
203 StatusNonAuthoritativeInfo
204 StatusNoContent
$ ./put-s3 --help
sage: put-s3 --file=FILE --bucket=BUCKET --region=REGION [<flags>]
Flags:
--help Show context-sensitive help (also try --help-long and --help-man).
-f, --file=FILE upload file
-b, --bucket=BUCKET bucket
-r, --region=REGION region
--path=PATH path