$ sudo rpm -ihv jdk-8u91-linux-x64.rpm
$ java -version
java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
$ javac -version
javac 1.8.0_91
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
AWSTemplateFormatVersion: "2010-09-09" | |
Description: Create environment for AWS Fargate. | |
Parameters: | |
ProjectCode: | |
Type: String | |
VPCCIDR: | |
Type: String | |
Default: "10.1.0.0/16" | |
Front01SubnetCIDR: |
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
const countryOptions = [ | |
{ key: 'af', value: '+93', flag: 'af', text: 'Afghanistan (+93)' }, | |
{ key: 'ax', value: '+358', flag: 'ax', text: 'Aland Islands (+358)' }, | |
{ key: 'al', value: '+355', flag: 'al', text: 'Albania (+355)' }, | |
{ key: 'dz', value: '+213', flag: 'dz', text: 'Algeria (+213)' }, | |
{ key: 'as', value: '+1684', flag: 'as', text: 'American Samoa (+1684)' }, | |
{ key: 'ad', value: '+376', flag: 'ad', text: 'Andorra (+376)' }, | |
{ key: 'ao', value: '+244', flag: 'ao', text: 'Angola (+244)' }, | |
{ key: 'ai', value: '+1264', flag: 'ai', text: 'Anguilla (+1264)' }, | |
{ key: 'ag', value: '+1268', flag: 'ag', text: 'Antigua (+1268)' }, |
$ sudo cp /var/lib/pgsql/9.6/data/pg_hba.conf /var/lib/pgsql/9.6/data/pg_hba.conf.original
$ sudo vi /var/lib/pgsql/9.6/data/pg_hba.conf
$ sudo diff /var/lib/pgsql/9.6/data/pg_hba.conf /var/lib/pgsql/9.6/data/pg_hba.conf.original
82,83c82
< #host all all 127.0.0.1/32 ident
< host all all 0.0.0.0/0 trust
---
> host all all 127.0.0.1/32 ident
$ sudo su - postgres -c 'psql'
postgres=# create database <database name>;
postgres=# create user <user name> password '<password>';
postgres=# alter database <database name> owner to <user name>;
$ wget https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-redhat96-9.6-1.noarch.rpm
$ sudo rpm -ihv pgdg-redhat96-9.6-1.noarch.rpm
$ sudo yum -y install postgresql96-server postgresql96-devel postgresql96-contrib
$ sudo systemctl start postgresql-9.6
$ sudo systemctl status postgresql-9.6
$ sudo /usr/pgsql-9.6/bin/postgresql96-setup initdb
$ sudo systemctl enable postgresql-9.6
$ sudo systemctl start postgresql-9.6
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
-- omission -- | |
var request = require('superagent'); | |
var React = require('react-native'); | |
-- omission -- | |
var AwesomeProject = React.createClass({ | |
render: function() { |
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" | |
"net/http" | |
"encoding/json" | |
) | |
type Student struct { | |
Id int |
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/python | |
# -*- coding: utf-8 -*- | |
import json | |
import redis | |
import time | |
client = redis.StrictRedis( | |
host='IPアドレス', | |
port=6379, |
NewerOlder