Skip to content

Instantly share code, notes, and snippets.

AWSTemplateFormatVersion: "2010-09-09"
Description: Create environment for AWS Fargate.
Parameters:
ProjectCode:
Type: String
VPCCIDR:
Type: String
Default: "10.1.0.0/16"
Front01SubnetCIDR:
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)' },
@Burning-Chai
Burning-Chai / InstallJBossonCentOS7.md
Last active September 5, 2019 10:01
How to install JBOSS on CentOS7
$ 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
@Burning-Chai
Burning-Chai / PostgresSetting.md
Created May 28, 2016 07:33
Postgres Setting
$ 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>;
@Burning-Chai
Burning-Chai / InstallPostgres9.6onCentOS7.md
Created May 28, 2016 06:57
How to install Postgres on CentOS7
$ 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
-- omission --
var request = require('superagent');
var React = require('react-native');
-- omission --
var AwesomeProject = React.createClass({
render: function() {
-- omission --
var Button = require('react-native-button');
var moment = require('moment');
var React = require('react-native');
-- omission --
var AwesomeProject = React.createClass({
package main
import (
"fmt"
"net/http"
"encoding/json"
)
type Student struct {
Id int
#!/usr/bin/python
# -*- coding: utf-8 -*-
import json
import redis
import time
client = redis.StrictRedis(
host='IPアドレス',
port=6379,