# Install latest Nginx stable version
sudo add-apt-repository ppa:nginx/stable
sudo apt-get update
sudo apt-get install nginx nginx-extras
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
<html> | |
<head> | |
<script type="application/javascript" src=https://we.letsta.lk/widget.js></script> | |
</head> | |
<object data="https://www.bci.cl/personas/" width="100%" height="800px"> | |
<embed src="https://www.bci.cl/personas/" width="100%″" height="800px" /> |
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
<html> | |
<head> | |
<script type="application/javascript" src="http://we.local.letsta.lk:3000/widget.js"></script> | |
</head> | |
<body> |
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
<html> | |
<head> | |
<script type="application/javascript" src="https://we.staging.letsta.lk/widget.js"></script> | |
</head> | |
<body> |
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
# ... | |
# Add these lines at the end of your ~/.bash_profile | |
# Git functions (used to define a custom prompt) | |
function parse_git_dirty { | |
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit, working directory clean" ]] && echo "*" | |
} | |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/" |
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
# User: ubuntu | |
sudo apt-get update | |
sudo apt-get upgrade | |
# Access keys | |
vim .ssh/authorized_keys | |
# Hostname | |
sudo vim /etc/hostname | |
sudo vim /etc/hosts |
Often our application interacts with different web services, in order to test it we need to do some preparations to be able to stub those requests and then if they take a lot of time to proceed - to replay the records of it without repeating real requests.
To install VCR we need to add two gems to the test group, gem webmock will be installed as a dependancy and will handle all the external requests, there are
Spree has a lot of native factories, that could help you to test your spree-based application, creating "testing infrastructure". The first thing you should do (if it is not done yet) is to load Spree factories in your app.
#spec_helper.rb
require 'spree/testing_support/factories'
#As well you might want to add more spree testing stuff such as preferences:
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
# safe merge | |
# | |
# merge the branch XXXXXXXX-add-example-feature into master | |
# make sure the feature is properly tested and | |
# doesn't break anything in its original context | |
git checkout XXXXXXXX-add-example-feature | |
rake # the test suite MUST NOT raise any error | |
# make sure your local copy of master is up-to-date |