Skip to content

Several project setup fixes #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.sh text eol=lf
/start text eol=lf
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,17 @@ Some key notes about this design are as follows:
git clone git@github.com:twitterdev/sample-python-connector.git sample-python-connector
cd sample-python-connector
sh script/bootstrap.sh
sh ./start.sh
pip install -r requirements.txt
sh ./start
```

To run with Vagrant:
```bash
vagrant init
vagrant ssh
cd /vagrant
sh ./start.sh
pip install -r requirements.txt
sh ./start
```

##Whats Next?
Expand Down
2 changes: 1 addition & 1 deletion bin/sample_python_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def config_file_path():


def write_out_config(config):
with open(config_file_path(), 'r+') as config_file:
with open(config_file_path(), 'w+') as config_file:
config_file.truncate()
config.write(config_file)

Expand Down
2 changes: 1 addition & 1 deletion config/gnip.cfg.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ username=<un>
password=<pwd>

[sys]
logfilepath=../log
logfilepath=log

[stream]
# Twitter Powertrack stream (Gnip 2.5)
Expand Down
9 changes: 5 additions & 4 deletions script/bootstrap.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
#!/bin/sh
export DEBIAN_FRONTEND=noninteractive
sudo apt-get update
sudo apt-get update -y
sudo apt-get install -yq git redis-server libpython-dev tmux silversearcher-ag build-essential autoconf libtool pkg-config idle-python2.7

# Mongo
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
sudo apt-get update
sudo apt-get install mongodb-org
sudo apt-get update -y
sudo apt-get install mongodb-org -y

sudo apt-get install -y curl
sudo curl https://bootstrap.pypa.io/get-pip.py > pip_install.py
sudo python pip_install.py
rm pip_install.py

sudo apt-get install -y zsh curl
sudo apt-get install -y zsh
chsh -s $(which zsh)
sudo rm -rf ~/.oh-my-zsh && sudo curl -L http://install.ohmyz.sh > ~/install_zsh.sh && sudo zsh ~/install_zsh.sh