Thanks to http://blog.nikosd.com/2011/11/github-flavored-markdown-in-yard.html
# Gemfile
group :development do
gem 'yard'
gem 'redcarpet'| require 'net/ftp' | |
| CONTENT_SERVER_DOMAIN_NAME = "one-of-the-ftp-server.thought-sauce.com.hk" | |
| CONTENT_SERVER_FTP_LOGIN = "saucy-ftp-server-login" | |
| CONTENT_SERVER_FTP_PASSWORD = "saucy-ftp-server-password" | |
| # LOGIN and LIST available files at default home directory | |
| Net::FTP.open(CONTENT_SERVER_DOMAIN_NAME, CONTENT_SERVER_FTP_LOGIN, CONTENT_SERVER_FTP_PASSWORD) do |ftp| | |
| files = ftp.list |
Thanks to http://blog.nikosd.com/2011/11/github-flavored-markdown-in-yard.html
# Gemfile
group :development do
gem 'yard'
gem 'redcarpet'| #!/usr/bin/ruby | |
| # README | |
| # gem install aws-sdk | |
| # add this to bashrc | |
| # export HT_DEV_AWS_ACCESS_KEY_ID=???? | |
| # export HT_DEV_AWS_SECRET_ACCESS_KEY=???? | |
| # put your pem file in ~/.ssh and chmod 0400 | |
| # for more info see; https://rubygems.org/gems/aws-sdk |
| if Rails.env.development? | |
| # Make sure we preload the parent and children class in development | |
| # since classes aren't pre-cached. Otherwise we get an error when | |
| # accessing a child class before we access the parent. | |
| %w[kase coaching_kase training_kase alpha_kase].each do |c| | |
| require_dependency File.join("app","models","#{c}.rb") | |
| end | |
| end |
| var fs = require("fs") | |
| var ssl_options = { | |
| key: fs.readFileSync('privatekey.pem'), | |
| cert: fs.readFileSync('certificate.pem') | |
| }; | |
| var port = process.env.PORT || 3000; | |
| var express = require('express'); | |
| var ejs = require('ejs'); | |
| var passport = require('passport') |
| def radixSort(array) | |
| temp = Array.new | |
| array.each do |x| | |
| if temp[x] == nil | |
| temp[x] = 1 | |
| else | |
| temp[x] = temp[x] + 1 | |
| end | |
| end |
| #!/bin/bash | |
| /usr/bin/sudo rm -rf $HOME/.rvm $HOME/.rvmrc /etc/rvmrc /etc/profile.d/rvm.sh /usr/local/rvm /usr/local/bin/rvm | |
| /usr/bin/sudo /usr/sbin/groupdel rvm | |
| /bin/echo "RVM is removed. Please check all .bashrc|.bash_profile|.profile|.zshrc for RVM source lines and delete or comment out if this was a Per-User installation." |
| default['nginx']['version'] = "1.2.0" | |
| default['nginx']['passenger']['version'] = "3.0.12" |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| <% flash.each do |type, message| %> | |
| <div class="alert <%= bootstrap_class_for(type) %> fade in"> | |
| <button class="close" data-dismiss="alert">×</button> | |
| <%= message %> | |
| </div> | |
| <% end %> |