This file contains 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
/* | |
Nice to study. Original here http://www.20thingsilearned.com/js/twentythings.min.js | |
*/ | |
var TT = TT || {}; | |
TT.PAGE_WIDTH = 800; | |
TT.PAGE_HEIGHT = 500; | |
TT.PAGE_MIN_WIDTH = 1000; | |
TT.PAGE_MIN_HEIGHT = 680; | |
TT.PAGE_MARGIN_LEFT = 32; |
This file contains 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 BrowserDetect = { | |
init: function () { | |
this.browser = this.searchString(this.dataBrowser) || "An unknown browser"; | |
this.version = this.searchVersion(navigator.userAgent) || this.searchVersion(navigator.appVersion) || "an unknown version"; | |
this.OS = this.searchString(this.dataOS) || "an unknown OS"; | |
}, | |
searchString: function (data) { | |
for (var i = 0; i < data.length; i++) { | |
var dataString = data[i].string; | |
var dataProp = data[i].prop; |
This file contains 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
from fabric.api import * | |
""" | |
Base configuration | |
""" | |
env.project_name = '$(project)' | |
env.database_password = '$(db_password)' | |
env.site_media_prefix = "site_media" | |
env.admin_media_prefix = "admin_media" | |
env.newsapps_media_prefix = "na_media" |
This file contains 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
# Update, upgrade and install development tools: | |
apt-get update | |
apt-get -y upgrade | |
apt-get -y install build-essential | |
apt-get -y install git-core | |
# Install rbenv | |
git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv | |
# Add rbenv to the path: |
This file contains 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
[class.thencta.com] run: cd /var/rails/canvas; export GEM_HOME=/home/nilesh/gems; RAILS_ENV=production $GEM_HOME/bin/bundle exec rake db:initial_setup | |
[class.thencta.com] out: WARNING: 'require 'rake/rdoctask'' is deprecated. Please use 'require 'rdoc/task' (in RDoc 2.4.2[class.thencta.com] out: | |
[class.thencta.com] out: at /home/nilesh/gems/gems/rake-0.9.2.2/lib/rake/rdoctask.rb | |
[class.thencta.com] out: Please install RDoc 2.4.2+ to generate documentation. | |
[class.thencta.com] out: == InstallCustomFields: migrating ============================================ | |
[class.thencta.com] out: -- create_table(:custom_fields, {:force=>true}) | |
[class.thencta.com] out: -> 0.0498s | |
[class.thencta.com] out: -- add_index(:custom_fields, ["scoper_type", "scoper_id", "target_type", "name"], {:name=>"custom[class.thencta.com] out: | |
[class.thencta.com] out: -> 0.0084s | |
[class.thencta.com] out: -- create_table(:custom_field_values, {:force=>true}) |
This file contains 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
{ | |
"Version": "2008-10-17", | |
"Id": "b2cc31d0-cc91-4285-a658-473099d2c867", | |
"Statement": [ | |
{ | |
"Sid": "AllowPublicRead", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "*" | |
}, |
This file contains 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
imac:chef-repo nilesh$ knife client list | |
nes-validator | |
imac:chef-repo nilesh$ knife bootstrap 192.168.2.124 -x cloudmaster -P ncta --sudo | |
Bootstrapping Chef on 192.168.2.124 | |
192.168.2.124 knife sudo password: | |
Enter your password: | |
192.168.2.124 | |
192.168.2.124 --2012-08-05 10:28:46-- http://opscode.com/chef/install.sh | |
192.168.2.124 |
This file contains 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
This file contains any messages produced by compilers while | |
running configure, to aid debugging if configure makes a mistake. | |
It was created by xmlsec1 configure 1.2.18, which was | |
generated by GNU Autoconf 2.67. Invocation command line was | |
$ ./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/libxmlsec1/1.2.18 --with-libxml=/usr/local/Cellar/libxml2/2.8.0 --disable-apps-crypto-dl | |
## --------- ## | |
## Platform. ## |
This file contains 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
imac% brew install -v libxmlsec1 | |
==> Downloading http://www.aleksey.com/xmlsec/download/xmlsec1-1.2.18.tar.gz | |
Already downloaded: /Library/Caches/Homebrew/libxmlsec1-1.2.18.tar.gz | |
/usr/bin/tar xf /Library/Caches/Homebrew/libxmlsec1-1.2.18.tar.gz | |
==> Patching | |
/usr/bin/patch -f -p1 -i 000-homebrew.diff | |
patching file src/dl.c | |
==> ./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/libxmlsec1/1.2.18 --with-libxml=/usr/local/Cellar/libxml2/2.8.0 --disable-apps-crypto-dl | |
./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/libxmlsec1/1.2.18 --with-libxml=/usr/local/Cellar/libxml2/2.8.0 --disable-apps-crypto-dl | |
checking build system type... x86_64-apple-darwin12.0.0 |
This file contains 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
Last login: Sun Aug 12 10:22:20 on ttys002 | |
imac [nilesh] /Users/nilesh>cd rails_projects/uhuru | |
imac [nilesh] /Users/nilesh/rails_projects/uhuru>ls | |
imac [nilesh] /Users/nilesh/rails_projects/uhuru>ls -l | |
imac [nilesh] /Users/nilesh/rails_projects/uhuru>vmcu | |
Usage: vmcu [options] command [<args>] [command_options] | |
Try 'vmcu help [command]' or 'vmcu help options' for more information. | |
imac [nilesh] /Users/nilesh/rails_projects/uhuru>vmcu target services.uhurucloud.com |
OlderNewer