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
sudo yum install -y postgresql postgresql-server postgresql-devel postgresql-contrib postgresql-docs | |
sudo service postgresql initdb | |
sudo mv /var/lib/pgsql9/data/postgresql.conf /var/lib/pgsql9/data/postgresql-old.conf | |
sudo curl -o /var/lib/pgsql9/data/postgresql.conf https://gist.githubusercontent.com/kenmazaika/1beee173b4b9172c27b165a722edb849/raw/7bf8880d9ae32e80c08f79a22713b5c68b1ddece/postgres.conf | |
sudo mv /var/lib/pgsql9/data/pg_hba.conf /var/lib/pgsql9/data/pg_hba-old.conf | |
sudo curl -o /var/lib/pgsql9/data/pg_hba.conf https://gist.githubusercontent.com/kenmazaika/3c14af3e78f12be2bc11d806e2a2f0ec/raw/32eef13ac302e6d10158a18f8d13d0e6120b19c2/pg_hba.conf | |
sudo service postgresql restart | |
sudo sudo -u postgres psql -c "ALTER USER postgres WITH PASSWORD 'password';" | |
sudo sudo -u postgres psql -c "UPDATE pg_database SET datistemplate = FALSE WHERE datname = 'template1';" | |
sudo sudo -u postgres psql -c "DROP DATABASE template1;" |
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
# PostgreSQL Client Authentication Configuration File | |
# =================================================== | |
# | |
# Refer to the "Client Authentication" section in the PostgreSQL | |
# documentation for a complete description of this file. A short | |
# synopsis follows. | |
# | |
# This file controls: which hosts are allowed to connect, how clients | |
# are authenticated, which PostgreSQL user names they can use, which | |
# databases they can access. Records take one of these forms: |
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
sudo yum install -y postgresql postgresql-server postgresql-devel postgresql-contrib postgresql-docs | |
sudo service postgresql initdb | |
sudo mv /var/lib/pgsql9/data/postgresql.conf /var/lib/pgsql9/data/postgresql-old.conf | |
sudo curl -o /var/lib/pgsql9/data/postgresql.conf https://gist.githubusercontent.com/kenmazaika/1beee173b4b9172c27b165a722edb849/raw/7bf8880d9ae32e80c08f79a22713b5c68b1ddece/postgres.conf | |
echo -e "\n\nhost all postgres 127.0.0.1/0 trust" >> /var/lib/pgsql9/data/pg_hba.conf | |
sudo service postgresql restart | |
sudo sudo -u postgres psql -c "ALTER USER postgres WITH PASSWORD 'password';" | |
sudo sudo -u postgres psql -c "UPDATE pg_database SET datistemplate = FALSE WHERE datname = 'template1';" | |
sudo sudo -u postgres psql -c "DROP DATABASE template1;" | |
sudo sudo -u postgres psql -c "CREATE DATABASE template1 WITH TEMPLATE = template0 ENCODING = 'UNICODE';" |
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
sudo yum install postgresql postgresql-server postgresql-devel postgresql-contrib postgresql-docs | |
sudo service postgresql initdb | |
sudo mv /var/lib/pgsql9/data/postgresql.conf /var/lib/pgsql9/data/postgresql-old.conf | |
sudo curl -o /var/lib/pgsql9/data/postgresql.conf https://gist.githubusercontent.com/kenmazaika/1beee173b4b9172c27b165a722edb849/raw/7bf8880d9ae32e80c08f79a22713b5c68b1ddece/postgres.conf | |
echo -e "\n\nhost all postgres 127.0.0.1/0 trust" >> /var/lib/pgsql9/data/pg_hba.conf | |
sudo service postgresql restart | |
sudo sudo -u postgres psql -c "ALTER USER postgres WITH PASSWORD 'password';" | |
sudo sudo -u postgres psql -c "UPDATE pg_database SET datistemplate = FALSE WHERE datname = 'template1';" | |
sudo sudo -u postgres psql -c "DROP DATABASE template1;" | |
sudo sudo -u postgres psql -c "CREATE DATABASE template1 WITH TEMPLATE = template0 ENCODING = 'UNICODE';" |
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
sudo yum install postgresql postgresql-server postgresql-devel postgresql-contrib postgresql-docs | |
sudo service postgresql initdb | |
sudo mv /var/lib/pgsql9/data/postgresql.conf /var/lib/pgsql9/data/postgresql-old.conf | |
sudo curl -o /var/lib/pgsql9/data/postgresql.conf https://gist.githubusercontent.com/kenmazaika/1beee173b4b9172c27b165a722edb849/raw/7bf8880d9ae32e80c08f79a22713b5c68b1ddece/postgres.conf | |
echo -e "\n\nhost all postgres 127.0.0.1/0 trust" >> /var/lib/pgsql9/data/pg_hba.conf | |
sudo service postgresql restart | |
sudo sudo -u postgres psql -c "ALTER USER postgres WITH PASSWORD 'password';" | |
sudo sudo -u postgres psql -c "UPDATE pg_database SET datistemplate = FALSE WHERE datname = 'template1';" | |
sudo sudo -u postgres psql -c "DROP DATABASE template1;" | |
sudo sudo -u postgres psql -c "CREATE DATABASE template1 WITH TEMPLATE = template0 ENCODING = 'UNICODE';" |
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
sudo yum install postgresql postgresql-server postgresql-devel postgresql-contrib postgresql-docs | |
sudo service postgresql initdb | |
sudo mv /var/lib/pgsql9/data/postgresql.conf /var/lib/pgsql9/data/postgresql-old.conf | |
sudo curl -o /var/lib/pgsql9/data/postgresql.conf https://gist.githubusercontent.com/kenmazaika/1beee173b4b9172c27b165a722edb849/raw/7bf8880d9ae32e80c08f79a22713b5c68b1ddece/postgres.conf | |
echo -e "\n\nhost all postgres 127.0.0.1/0 trust" >> /var/lib/pgsql9/data/pg_hba.conf | |
sudo service postgresql restart | |
sudo sudo -u postgres psql -c "ALTER USER postgres WITH PASSWORD 'password';" | |
sudo sudo -u postgres psql -c "UPDATE pg_database SET datistemplate = FALSE WHERE datname = 'template1';" | |
sudo sudo -u postgres psql -c "DROP DATABASE template1;" | |
sudo sudo -u postgres psql -c "CREATE DATABASE template1 WITH TEMPLATE = template0 ENCODING = 'UNICODE';" |
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
# ----------------------------- | |
# PostgreSQL configuration file | |
# ----------------------------- | |
# | |
# This file consists of lines of the form: | |
# | |
# name = value | |
# | |
# (The "=" is optional.) Whitespace may be used. Comments are introduced with | |
# "#" anywhere on a line. The complete list of parameter names and allowed |
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
#!/bin/bash | |
echo "Please be patient while we set up your development environment..." | |
echo "Installing NVM..." | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash &> /dev/null | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" | |
echo "Installing Node and NPM..." | |
if hash node 2>/dev/null; then |
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
<div class="album"> | |
<h3>Firehose Weekend</h3> | |
<h4>Learn to code a web app built with HTML, CSS, and ruby in hackathon style weekend</h4> | |
<span class="lastPlayed">A minute ago</span> | |
</div> |
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
import React from 'react'; | |
class Album extends React.Component { | |
render() { | |
return ( | |
<div className="album"> | |
<h3>{this.props.title}</h3> | |
<h4>{this.props.description}</h4> | |
<span className="lastPlayed">{this.props.lastPlayed}</span> | |
</div> |