Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
34 changes: 17 additions & 17 deletions .mrjob.conf → .dotfiles/tag-dev-setup/mrjob.conf
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
runners:
emr:
aws_access_key_id: YOURACCESSKEY
aws_secret_access_key: YOURSECRETKEY
aws_region: us-east-1
ec2_key_pair: YOURKEYPAIR
ec2_key_pair_file: ~/.ssh/YOURKEYPAIR.pem
ssh_tunnel_to_job_tracker: true
ec2_master_instance_type: m1.small
ec2_instance_type: m1.small
num_ec2_instances: 5
s3_scratch_uri: s3://YOURBUCKETSCRATCH
s3_log_uri: s3://YOURBUCKETLOG
enable_emr_debugging: True
bootstrap:
- sudo apt-get install -y python-pip
- sudo pip install --upgrade simplejson
runners:
emr:
aws_access_key_id: YOURACCESSKEY
aws_secret_access_key: YOURSECRETKEY
aws_region: us-east-1
ec2_key_pair: YOURKEYPAIR
ec2_key_pair_file: ~/.ssh/YOURKEYPAIR.pem
ssh_tunnel_to_job_tracker: true
ec2_master_instance_type: m1.small
ec2_instance_type: m1.small
num_ec2_instances: 5
s3_scratch_uri: s3://YOURBUCKETSCRATCH
s3_log_uri: s3://YOURBUCKETLOG
enable_emr_debugging: True
bootstrap:
- sudo apt-get install -y python-pip
- sudo pip install --upgrade simplejson
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions .dots
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ function runDots() {
echo "------------------------------"
echo ""
cd ~ && curl -#L https://github.com/donnemartin/dev-setup/tarball/master | tar -xzv --strip-components 1 --exclude={README.md,LICENSE}

echo "------------------------------"
echo "Installing rcm via homebrew to setup all dotfiles."
echo "------------------------------"
echo ""
./rcm.sh
fi
if [ $ARG == "osxprep" ] || [ $ARG == "all" ]; then
# Run the osxprep.sh Script
Expand All @@ -40,6 +46,7 @@ function runDots() {
echo ""
./brew.sh
fi

if [ $ARG == "osx" ] || [ $ARG == "all" ]; then
# Run the osx.sh Script
# I strongly suggest you read through the commented osx.sh
Expand Down
4 changes: 4 additions & 0 deletions .rcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
DOTFILES_DIRS=".dotfiles"
TAGS="dev-setup"
SYMLINK_DIRS="ds-themes"
UNDOTTED="bin"
5 changes: 1 addition & 4 deletions aws.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,6 @@ brew install apache-spark
echo "------------------------------"
echo "Installing IPython Notebook Spark integration"

# Add the pyspark IPython profile
cp -r init/profile_pyspark/ ~/.ipython/profile_pyspark

BASH_PROFILE_PATH=~/.bash_profile
echo $BASH_PROFILE_PATH
echo "" >> $BASH_PROFILE_PATH
Expand All @@ -110,4 +107,4 @@ echo "------------------------------"
echo "TODO: Update .aws/ with your AWS credentials and region, or run aws --configure."
echo "TODO: Update .mrjob.conf with your credentials, keypair, keypair location, region, and bucket info."
echo "TODO: Update .s3cfg with your credentials, location, and passphrase or run s3cmd --configure."
echo "Script completed."
echo "Script completed."
5 changes: 3 additions & 2 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ cd "$(dirname "${BASH_SOURCE}")";
git pull origin master;

function doIt() {
rsync --exclude ".git/" --exclude ".DS_Store" --exclude "bootstrap.sh" \
--exclude "README.md" --exclude "LICENSE" -avh --no-perms . ~;
./rcm.sh


source ~/.bash_profile;
}

Expand Down
6 changes: 3 additions & 3 deletions osx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ tell application "Terminal"
(* Open the custom theme so that it gets added to the list
of available terminal themes (note: this will open two
additional terminal windows). *)
do shell script "open '$HOME/init/" & themeName & ".terminal'"
do shell script "open '$HOME/.ds-themes/" & themeName & ".terminal'"

(* Wait a little bit to ensure that the custom theme is added. *)
delay 1
Expand Down Expand Up @@ -640,7 +640,7 @@ start_if_needed() {

# Install the Solarized Dark theme for iTerm
start_if_needed iTerm
open "${HOME}/init/Solarized Dark.itermcolors"
open "${HOME}/.ds-themes/Solarized Dark.itermcolors"

# Don’t display the annoying prompt when quitting iTerm
defaults write com.googlecode.iterm2 PromptOnQuit -bool false
Expand Down Expand Up @@ -774,7 +774,7 @@ defaults write com.irradiatedsoftware.SizeUp ShowPrefsOnNextStart -bool false
###############################################################################

# Install Sublime Text settings
cp -r init/Preferences.sublime-settings ~/Library/Application\ Support/Sublime\ Text*/Packages/User/Preferences.sublime-settings 2> /dev/null
cp -r ${HOME}/.ds-themes/Preferences.sublime-settings ~/Library/Application\ Support/Sublime\ Text*/Packages/User/Preferences.sublime-settings 2> /dev/null

###############################################################################
# Transmission.app #
Expand Down
8 changes: 1 addition & 7 deletions pydata.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,8 @@ pip install mysqlclient
# Install IPython Profile
###############################################################################

echo "------------------------------"
echo "Installing IPython Notebook Default Profile"

# Add the IPython profile
mkdir -p ~/.ipython
cp -r init/profile_default/ ~/.ipython/profile_default

echo "------------------------------"
echo "Script completed."
echo "Usage: workon py2-data for Python2"
echo "Usage: workon py3-data for Python3"
echo "Usage: workon py3-data for Python3"
25 changes: 25 additions & 0 deletions rcm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env bash

# Install command-line tools using Homebrew.

# Ask for the administrator password upfront.
sudo -v

# Keep-alive: update existing `sudo` time stamp until the script has finished.
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &

# Check for Homebrew,
# Install if we don't have it
if test ! $(which brew); then
echo "Installing homebrew..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi

# Make sure we’re using the latest Homebrew.
brew update

brew tap thoughtbot/formulae
brew install rcm

# setup dotfiles
env RCRC=".rcrc" rcup