- Click on Launch Instance` button
- Choose Ubuntu Server 14.04 LTS (HVM), SSD Volume Type
- Configure Security Group
In step 6 Configure Security Group add the rule:
Type:PostgreSQL
Protocol:TCP
PortRange:5432
(default postgres port)
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
# Install via homebrew | |
brew install mysql | |
# Start server via brew services | |
brew services start mysql | |
# Login as root to mysql command line tool | |
mysql -uroot | |
# Within mysql: |
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
function install { | |
echo installing $1 | |
shift | |
apt-get -y install "$@" >/dev/null 2>&1 | |
} | |
echo updating package information | |
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt trusty-pgdg main" >> /etc/apt/sources.list' | |
wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add - | |
apt-add-repository -y ppa:brightbox/ruby-ng >/dev/null 2>&1 |
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
files: | |
"/opt/elasticbeanstalk/hooks/appdeploy/post/01_do_stuff.sh" : | |
mode: "000755" | |
owner: ec2-user | |
group: ec2-user | |
content: | | |
#! /usr/bin/env bash | |
# Using similar syntax as the appdeploy pre hooks that is managed by AWS | |
set -xe |
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
" Vim color scheme | |
" | |
" Name: theme name | |
" Maintainer: maintainer email | |
" URL: repo url | |
" General info | |
" ---- | |
" useful help screens |
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
# Convert .flac to .mp3 (lossless) | |
for f in *.flac; do ffmpeg -i "$f" -aq 1 "${f%flac}mp3"; done | |
# Convert .flac to .mp3, compress to ~ 120k | |
for f in *.flac; do ffmpeg -i "$f" -aq 5 "${f%flac}mp3"; done | |
# Convert .flac to mp3, compress to ~ 128k | |
for f in *.flac; do ffmpeg -i "$f" -b:a 128k "${f%flac}mp3"; done | |
# Convert .flac to mp3, compress to variable 190k |
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
# ExFat format marks files without extension as 'Unix Executable' | |
# to restore original behaviour, | |
# remove executable bits from files and only set for directories | |
# recursively remove executable bits from all files | |
sudo chmod -R -x * | |
# remove executable bits from all hidden files (e.g. .gitignore) | |
sudo chmod -R -x .* | |
# set executable bit for directories (not accessible otherwise) |
NewerOlder