This file contains hidden or 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
| #!/bin/sh | |
| # CakePHP2.0 setup script | |
| # Only for CentOS 5.6 64bit Plain | |
| /bin/cat <<EOF >> /etc/rc.d/rc.local | |
| curl https://raw.github.com/gist/1284739/2fbed6559815413523cda708d99eb18f9926428a/cakephp2_on_nifyucloud_centos5_6.sh | sh | tee /root/_setup.log | |
| /bin/sed -i.orig -e "s/curl/#curl/g" /etc/rc.d/rc.local | |
| /bin/sed -i.orig -e "s/\/bin\/sed/#\/bin\/sed/g" /etc/rc.d/rc.local | |
| EOF |
This file contains hidden or 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
| #!/bin/sh | |
| # pwd => / | |
| # whoami => root | |
| cd /root | |
| echo "START!!!!" | |
| date | |
| apt-get install -y build-essential libssl-dev openssl libreadline6 libreadline6-dev git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion git-core | |
| echo "apt-get finished." | |
| date |
This file contains hidden or 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
| ## Prepare ################################################################### | |
| # Remove RVM | |
| rvm implode | |
| # Ensure your homebrew is working properly and up to date | |
| brew doctor | |
| brew update | |
| ## Install ################################################################### |
This file contains hidden or 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
| # Simple SimpleNote client library | |
| # Erik Kastner 2010-07-18 | |
| require 'rubygems' | |
| require 'rest_client' | |
| require 'base64' | |
| require 'json' | |
| class SimpleNote | |
| def initialize(email, password) |
This file contains hidden or 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
| var request = require('request'), | |
| querystring = require('querystring'); | |
| var Note = function(key){ | |
| this.key = key; | |
| } | |
| Note.prototype = new process.EventEmitter(); | |
| var SimpleNote = function(email, passwd){ | |
| this.email = email; |
This file contains hidden or 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
| # | |
| # Nifty Cloud Strage fileuploader | |
| # docs : http://docs.aws.amazon.com/AWSRubySDK/latest/frames.html | |
| # | |
| require "aws" | |
| ncs = AWS::S3.new( | |
| access_key_id: "ACCESS_KEY", | |
| secret_access_key: "SECRET_ACCESS_KEY", | |
| s3_endpoint: "west-1-ncss.nifty.com" | |
| ) |
This file contains hidden or 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
| !!! Strict | |
| %html | |
| %head | |
| %title= [@title, "Ruby2.0 blog"].compact.join(" | ") | |
| = stylesheet_link_tag 'reset', 'application' | |
| = javascript_include_tag 'jquery', 'application' | |
| = yield_content :include | |
| %body | |
| #header | |
| %h1 Sample Padrino Blog |
This file contains hidden or 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
| $ padrino g project testqr -e slim | |
| $ cd testqr | |
| $ bundle install |
This file contains hidden or 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
| source 'https://rubygems.org' | |
| gem 'rails', '3.2.13' | |
| gem 'sqlite3' | |
| group :assets do | |
| gem 'sass-rails', '~> 3.2.3' | |
| gem 'coffee-rails', '~> 3.2.1' | |
| gem 'therubyracer', :platforms => :ruby | |
| gem 'uglifier', '>= 1.0.3' |
This file contains hidden or 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
| sudo apt-get update | |
| sudo apt-get install zsh | |
| chsh | |
| sudo apt-get install git | |
| sudo apt-get install ttf-takao-mincho | |
| sudo apt-get install ttf-takao | |
| passwd | |
| sudo apt-get install vim |