This file contains hidden or 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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Resources": { | |
"VPC": { | |
"Type": "AWS::EC2::VPC", | |
"Properties": { | |
"CidrBlock": "172.30.0.0/16", | |
"InstanceTenancy": "default", | |
"EnableDnsSupport": "true", | |
"EnableDnsHostnames": "true", |
This file contains hidden or 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
module "vpc" { | |
source = "github.com/terraform-community-modules/tf_aws_vpc" | |
name = "chap2-vpc" | |
cidr = "172.16.0.0/16" | |
public_subnets = "172.16.1.0/24" | |
azs = "ap-northeast-1a" | |
enable_dns_support = true | |
enable_dns_hostnames = false | |
} |
This file contains hidden or 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" | |
"io/ioutil" | |
"os" | |
"path/filepath" | |
"github.com/caarlos0/gohome" | |
) |
This file contains hidden or 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" | |
"io/ioutil" | |
) | |
func main() { | |
entries, _ := ioutil.ReadDir(".") |
This file contains hidden or 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" | |
"runtime" | |
"github.com/caarlos0/gohome" | |
) | |
const appName = "myapp" |
This file contains hidden or 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 ( | |
"encoding/json" | |
"fmt" | |
"os" | |
) | |
type response1 struct { | |
Page int |
This file contains hidden or 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
--- | |
- name: Import public key | |
apt_key: | |
keyserver: keys.gnupg.net | |
id: 1C4CBDCDCD2EFD2A | |
state: present | |
- name: Add percona apt repository | |
apt_repository: | |
repo: "{{ item }}" |
This file contains hidden or 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
--- | |
- hosts: localhost | |
connection: local | |
tasks: | |
- name: Be sure firefox running | |
test_process: | |
name: firefox | |
state: present | |
args: |
This file contains hidden or 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
--- | |
- hosts: all | |
connection: local | |
pre_tasks: | |
- name: pre task | |
shell: | | |
date | |
register: pre | |
- name: pre task debug |
This file contains hidden or 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
diff -Naur procmail-3.22-getline/src/fields.c procmail-3.22/src/fields.c | |
--- procmail-3.22-getline/src/fields.c 2015-06-13 14:43:11.000000000 +0900 | |
+++ procmail-3.22/src/fields.c 2015-06-13 14:00:14.000000000 +0900 | |
@@ -110,16 +110,16 @@ | |
/* try and append one valid field to rdheader from stdin */ | |
int readhead P((void)) | |
{ int idlen; | |
- getline(); | |
+ get_line(); | |
if((idlen=breakfield(buf,buffilled))<=0) /* not the start of a valid field */ |