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
config.vm.synced_folder "./www", "/vagrant", :mount_options => ["dmode=775","fmode=664"], group: "www-data" |
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
LOCALHOST:~/vagrant/my_ubuntu $ VAGRANT_LOG=debug vagrant up > log.txt | |
INFO global: Vagrant version: 1.3.5 | |
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.5/plugins/guests/gentoo/plugin.rb | |
INFO manager: Registered plugin: Gentoo guest | |
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.5/plugins/guests/openbsd/plugin.rb | |
INFO manager: Registered plugin: OpenBSD guest | |
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.5/plugins/guests/solaris11/plugin.rb | |
INFO manager: Registered plugin: Solaris 11 guest. | |
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.5/plugins/guests/ubuntu/plugin.rb | |
INFO manager: Registered plugin: Ubuntu guest |
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
#!/bin/bash | |
# install all necessary packages | |
sudo apt-get update && sudo apt-get install -y libfontconfig1 ruby1.9.1-dev git zip nodejs npm | |
# install jekyll | |
sudo gem install jekyll --no-ri --no-rdoc | |
# link /usr/bin/nodejs > /usr/bin/node; phantomeJS has some problem if command is not strict 'node'. DEbian/ubuntu normally has 'nodejs' | |
sudo ln -s /usr/bin/nodejs /usr/bin/node |
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
drush en -y admin_views contextual_tabs ctools ctools_custom_content fape pm_existing_pages page_manager stylizer views_content defaultconfig bartik block color comment field field_sql_storage field_ui file filter image list menu node number options path search shortcut system taxonomy text update user date_all_day date_api date date_ical date_popup_authored date_popup date_repeat date_repeat_field date_views apps features features_override feeds conditional_fields entityreference field_group geofield link multiupload_filefield_widget flag trash_flag fullcalendar_colors fullcalendar fullcalendar_legend fullcalendar_options caption_filter image_resize_filter wysiwyg_filter mailsystem mimemail file_entity media_internet media media_vimeo media_youtube message_digest message message_notify message_subscribe message_subscribe_ui oa_responsive_regions oa_variables oa_admin oa_appearance oa_buttons oa_config oa_contextual_tabs oa_core oa_dashboard oa_date oa_diff oa_discussion oa_events_import oa_events oa_favorite |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="TCS intranet" default="build" basedir="." description="a demo project"> | |
<property name="project.name" value="intranet.childrenssociety.org.uk" /> | |
<property name="rsync.sourcedir" value="/var/www/drupal/drupal-7.x/" /> | |
<property name="rsync.destinationdir" value="/var/www/drupal/jenkins-drupal7/live" /> | |
<target name="update-code" > | |
<filesync | |
sourcedir="${rsync.sourcedir}" | |
destinationdir="${rsync.destinationdir}" |
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
<?php | |
/** | |
* @file | |
* Cart Links menu items. | |
*/ | |
/** | |
* Preprocesses a Cart Link, confirming with the user for destructive actions. | |
* |
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
javascript:if(!window.jQuery||confirm('Overwrite\x20current\x20version?\x20v'+jQuery.fn.jquery))(function(d,s){s=d.createElement('script');s.src='https://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.js';(d.head||d.documentElement).appendChild(s)})(document); |
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
#!/bin/bash | |
# Save process name to search | |
PROCESS=$1 | |
# Change 'myapp' > '[m]yapp so grep don't count itself | |
GREP_PROCESS=`echo $PROCESS | sed 's/^\(.\)/[\1]/'` | |
# List processes, remove self command name and on the end count wanted process | |
COUNT=$(ps ax | grep -v $0 | grep -c -i $GREP_PROCESS) |
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
<?php | |
/** | |
* Render ATD node context inside lightbox. | |
*/ | |
function l_lightbox($nid, $text) { | |
return l($text, '/lightbo/'. $nid, array('attributes' => array('class' => 'lightbox', 'rel'=> 'libghtframe')) ); | |
} |
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
#!/bin/bash | |
# Set up ssh-agent | |
SSH_ENV="$HOME/.ssh/environment" | |
function start_agent { | |
echo "Initializing new SSH agent..." | |
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}" | |
echo succeeded | |
chmod 600 "${SSH_ENV}" | |
. "${SSH_ENV}" > /dev/null |