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 | |
### BEGIN INIT INFO | |
# Provides: nginx | |
# Required-Start: $local_fs $remote_fs $network $syslog | |
# Required-Stop: $local_fs $remote_fs $network $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts the nginx web server | |
# Description: starts nginx using start-stop-daemon | |
### END INIT INFO |
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
RVM: Shell scripts enabling management of multiple ruby environments. | |
RTFM: http://rvm.beginrescueend.com/ | |
HELP: http://webchat.freenode.net/?channels=rvm (#rvm on irc.freenode.net) | |
Installing RVM to /home/foobar/.rvm/ | |
Correct permissions for base binaries in /home/foobar/.rvm/bin... | |
Copying manpages into place. | |
Notes for Linux ( DISTRIB_ID=Ubuntu |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
if [ -n "$PS1" ] ; then | |
# don't put duplicate lines in the history. See bash(1) for more options | |
# ... or force ignoredups and ignorespace | |
HISTCONTROL=ignoredups:ignorespace |
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
# ~/.profile: executed by the command interpreter for login shells. | |
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login | |
# exists. | |
# see /usr/share/doc/bash/examples/startup-files for examples. | |
# the files are located in the bash-doc package. | |
# the default umask is set in /etc/profile; for setting the umask | |
# for ssh logins, install and configure the libpam-umask package. | |
#umask 022 |
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 mongoose = require('mongoose'); | |
var db = mongoose.connect('mongodb://localhost/mydb'); | |
var Schema = mongoose.Schema; | |
var Posts = new Schema({ | |
name : String, | |
subject: String, | |
comment : String, | |
password: String, | |
}); |
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/bash -le | |
rvm use ree | |
# Run integration tests | |
export DISPLAY=:99 | |
/etc/init.d/xvfb start | |
RAILS_ENV=test rake cucumber:ci | |
RESULT=$? |
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
# clone your fork of qa-reports from gitorious | |
git clone [email protected]:~shaofengtang/meego-quality-assurance/release-version-qa-reports.git | |
# create a branch to follow upstream, i.e., qa-reports/master | |
git checkout -b upstream | |
# configure upstream repository in order to pull in new changes easily | |
git remote add upstream git://gitorious.org/meego-quality-assurance/qa-reports.git | |
git pull upstream master |
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
Scenario: Sending REST import first with user defined test environment and then without | |
Given I have sent a request with optional parameter "environment_txt" with value "Emulator" via the REST API | |
When the client sends file "sim.xml" via the REST API | |
Then the REST result "ok" is "1" | |
And I should be able to view the latest created report | |
Then I should see "Hardware: N900" |
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
----------------- | |
my_world.rb | |
class MyWorld | |
def initialize | |
@king = King.new | |
end | |
def king_of_the_world |
OlderNewer