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> | |
<body> | |
<script> | |
<?php | |
$templates = array( | |
'result' => file_get_contents('template.html') | |
); | |
echo '__templates = ' . json_encode($templates) . ';'; | |
?> | |
</script> |
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> | |
<body> | |
<script> | |
<?php | |
$templates = array( | |
'result' => file_get_contents('template.html') | |
); | |
echo '__templates = ' . json_encode($templates) . ';'; | |
?> | |
</script> |
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
wget -c http://download.virtualbox.org/virtualbox/4.1.8/VBoxGuestAdditions_4.1.8.iso -O VBoxGuestAdditions_4.1.8.iso | |
sudo mount VBoxGuestAdditions_4.1.8.iso -o loop /mnt | |
sudo sh /mnt/VBoxLinuxAdditions.run --nox11 | |
rm *.iso |
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
import os | |
def walk(root, is_inside=False): | |
for item in os.listdir(root): | |
if is_project(root, item): | |
print "%s is a project" %item | |
def is_project(root, item): | |
return os.path.isdir(os.path.join(root,item,"etc")) and os.path.isdir(os.path.join(root,item,".git")) |
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
require 'mongo_mapper' | |
class Content | |
include MongoMapper::Document | |
attr_accessible :version, :html, :css, :js, :html_preprocessor, :css_preprocessor, :js_preprocesor | |
#Foreign Keys | |
key :user_id, String | |
key :slug_id, 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
vagrant@lucid64:/opt/webapp$ git clone [email protected]:AppEnv/anweb.git anweb | |
Initialized empty Git repository in /opt/webapp/anweb/.git/ | |
remote: Counting objects: 8884, done. | |
remote: Compressing objects: 100% (5765/5765), done. | |
remote: Total 8884 (delta 3481), reused 7736 (delta 2529) | |
Receiving objects: 100% (8884/8884), 21.42 MiB | 4.94 MiB/s, done. | |
Resolving deltas: 100% (3481/3481), done. | |
vagrant@lucid64:/opt/webapp$ cd anweb | |
vagrant@lucid64:/opt/webapp/anweb$ git submodule init | |
Submodule 'etc' ([email protected]:ConfigManagment/anweb.git) registered for path 'etc' |
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
cd #{root} | |
git clone [email protected]:AppEnv/#{project}.git #{project} | |
cd #{project} | |
git checkout #{site} | |
git submodule init | |
git submodule update | |
cd etc | |
git checkout #{site} | |
git pull origin #{site} |
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
DISK SPACE | |
------------------- | |
Filesystem Size Used Avail Use% Mounted on | |
/dev/mapper/enterprise--11-root | |
7.6G 6.3G 956M 87% / | |
udev 1.5G 4.0K 1.5G 1% /dev | |
tmpfs 606M 300K 605M 1% /run | |
none 5.0M 0 5.0M 0% /run/lock | |
none 1.5G 0 1.5G 0% /run/shm | |
/dev/sda1 228M 23M 193M 11% /boot |
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
rm -rf $VIRTUAL_ENV/build | |
ZMQVERSION=zeromq-2.1.11 | |
if [ ! -d $ZMQVERSION ] | |
then | |
wget -O - "http://download.zeromq.org/${ZMQVERSION}.tar.gz" | tar -xvzf - | |
fi | |
pushd . > /dev/null | |
cd $ZMQVERSION | |
./configure --prefix $VIRTUAL_ENV |
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
Requirement already satisfied (use --upgrade to upgrade): distribute==0.6.14 in /home/vagrant/doula/lib/python2.7/site-packages | |
Cleaning up... | |
Traceback (most recent call last): | |
File "/home/vagrant/doula/bin/doula", line 9, in <module> | |
load_entry_point('doulado==0.0', 'console_scripts', 'doula')() | |
File "/home/vagrant/doula/src/doulado/doulado/script.py", line 36, in main | |
return args.func(args) | |
File "/home/vagrant/doula/src/doulado/doulado/script.py", line 46, in devinst | |
return devinstall(deps) | |
File "/home/vagrant/doula/local/lib/python2.7/site-packages/fabric/tasks.py", line 110, in __call__ |