The FAQ maintained by Github covers most stumbling blocks, some other tips and tricks supplied here.
Add _site to .gitignore. The generated site should not be uploaded to Github since its gets generated by github.
| # gitolite conf | |
| # please see conf/example.conf for details on syntax and features | |
| # do not remove hashes from the following macros | |
| # if you add a macro, remember to update ~/bin/init-gitolite.sh | |
| @public-readable = # | |
| @public-writable = testing # | |
| @client-works = # | |
| repo @client-works |
| initializer 'generators.rb', <<-RUBY | |
| Rails.application.config.generators do |g| | |
| end | |
| RUBY | |
| @recipes = ["activerecord", "cucumber", "devise", "git", "haml", "heroku", "jammit", "jquery", "rails_admin", "sass", "settingslogic"] | |
| def recipes; @recipes end | |
| def recipe?(name); @recipes.include?(name) end |
| <?xml version="1.0" encoding="UTF-8" ?> | |
| <!DOCTYPE busconfig PUBLIC | |
| "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" | |
| "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd"> | |
| <busconfig> | |
| <!-- Only the root user can own the Upstart name --> | |
| <policy user="root"> | |
| <allow own="com.ubuntu.Upstart" /> | |
| </policy> |
| # note that the database is being used with login: root/password | |
| # make necessary changes if you are using something else or simple remove that block | |
| function newrails() { | |
| app="$1"; ruby="${2:-1.9.3@rails}"; | |
| if [ -n "${app}" ]; then | |
| read -r -d '' gemfile <<-'EOF' | |
| group :test, :development do | |
| gem 'turn' | |
| gem 'rspec-rails' | |
| gem 'capybara' |
The FAQ maintained by Github covers most stumbling blocks, some other tips and tricks supplied here.
Add _site to .gitignore. The generated site should not be uploaded to Github since its gets generated by github.
| # Install MacTex: http://mirror.ctan.org/systems/mac/mactex/mactex-basic.pkg | |
| $ sudo chown -R `whoami` /usr/local/texlive | |
| $ tlmgr update --self | |
| $ tlmgr install ucs | |
| $ tlmgr install etoolbox | |
| # Install pandoc view homebrew |
| data:text/html, | |
| <style type="text/css"> | |
| #e { | |
| position:absolute; | |
| top:0; | |
| right:0; | |
| bottom:0; | |
| left:0; | |
| font-size:16px; | |
| } |
| #!/bin/bash | |
| echo "Generating URL..." | |
| FULL_PATH="/Users/tbenzige/Projects/aws" | |
| #Count is kept based on a list.txt file | |
| #list.txt is a plain text file meant to show relationships between URLs | |
| #Instead of a running count, we just count the lines in list.txt | |
| INITIAL=`echo -n $(cat $FULL_PATH/list.txt | wc -l)` | |
| NUM="$INITIAL/4" |
| # project_name/spiders/foo_spider.py | |
| from scrapy.contrib.spiders import CrawlSpider | |
| class FooSpider(CrawlSpider): | |
| post_process = dict( | |
| klass = "Foo::Worker", | |
| # queue = "default", | |
| # retry = True, | |
| ) |