If you use atom... download & install the following packages:
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
import React, { Component } from 'react' | |
import { BrowserRouter as Router, Route, Link, Match, Redirect, Switch } from 'react-router-dom' | |
import OverviewPage from './page/OverviewPage' | |
import AccountPage from './page/AccountPage' | |
/* | |
Layouts, inline define here for demo purpose | |
you may want to define in another file instead | |
*/ |
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
apiVersion: v1 | |
kind: ReplicationController | |
metadata: | |
name: kube-registry-v0 | |
namespace: kube-system | |
labels: | |
k8s-app: kube-registry | |
version: v0 | |
spec: | |
replicas: 1 |
Basically, if you prefer to use DATABASE_URL in your application better than creating the whole database.yml thing, set the following ENV variable in your wercker app settings:
- APP_POSTGRES_PASSWORD (required)
- APP_POSTGRES_USER (optional)
- APP_POSTGRES_DB (optional)
- DATABASE_URL (value below)
name: DATABASE_URL
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
""" | |
Copies all keys from the source Redis host to the destination Redis host. | |
Useful to migrate Redis instances where commands like SLAVEOF and MIGRATE are | |
restricted (e.g. on Amazon ElastiCache). | |
The script scans through the keyspace of the given database number and uses | |
a pipeline of DUMP and RESTORE commands to migrate the keys. | |
Requires Redis 2.8.0 or higher. |
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
//usr/bin/env go run $0 "$@"; exit | |
package main | |
import ( | |
"fmt" | |
"os" | |
) | |
func main() { | |
fmt.Println("Hello world!") |
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
#!/bin/bash | |
# from here: http://www.codingsteps.com/install-redis-2-6-on-amazon-ec2-linux-ami-or-centos/ | |
# and here: https://raw.github.com/gist/257849/9f1e627e0b7dbe68882fa2b7bdb1b2b263522004/redis-server | |
############################################### | |
# To use: | |
# wget https://gist.githubusercontent.com/four43/e00d01ca084c5972f229/raw/install-redis.sh | |
# chmod 777 install-redis.sh | |
# ./install-redis.sh | |
############################################### | |
echo "*****************************************" |
์์ ์ ์๊ฐ๊ณผ ํ ์ผ์ ์ ๋ฆฌํ๋ ๊ฒ์ด ๊ธฐ์ ๋ฌธ์์ ๋ชฉํ๊ฐ ๋ ์๋ ์๋ค. ๋จผ์ ๋ ์๋ฅผ ์๋ณํ๋ผ. ๊ทธ๋ฆฌ๊ณ ๋ ์๋ฅผ ๋ฐฐ๋ คํ๊ณ ๋ ์ ์ ์ฅ์ ์๊ฐํ๋ฉฐ ๋ฌธ์๋ฅผ ์์ฑํ๋ผ.
์ค์ํ ์ ๋ณด๋ฅผ ์ํค๋ ๊น(Git)์์ ํ ์คํธ๋ก ์์ฑํ์ง ์๊ณ , ์๋๋ ํ์ํฌ์ธํธ ๊ฐ์ ์ด์ง ๋ฌธ์๋ก ์์ฑํ ๋๋ง๋ค ๋น์ ์ ๋๋ฃ๋ ์ ๊ทผ์ฑ, ๊ฐ์์ฑ, ๋ฒ์ ๊ด๋ฆฌ ๋ฑ ๋ค์ํ ๋ฌธ์ ๋ก ๊ณ ์ํ ๊ฒ์ด๋ค.
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
# Install Git needed for Git based gems | |
packages: | |
yum: | |
git: [] | |