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
<IfModule mod_deflate.c> | |
# compress text, html, javascript, css, xml: | |
AddOutputFilterByType DEFLATE text/plain | |
AddOutputFilterByType DEFLATE text/html | |
AddOutputFilterByType DEFLATE text/xml | |
AddOutputFilterByType DEFLATE text/css | |
AddOutputFilterByType DEFLATE application/xml | |
AddOutputFilterByType DEFLATE application/xhtml+xml | |
AddOutputFilterByType DEFLATE application/rss+xml | |
AddOutputFilterByType DEFLATE application/javascript |
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
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND | |
staging 1709 0.0 0.0 10772 1404 ? S 10:14 0:00 bash -c cd '/home/staging/public_html/releases/20141013231355/app/Vendor/kamisama/php-resque-ex/'; VERBOSE=true QUEUE='default' PIDFILE='/home/staging/public_html/releases/20141013231355/app/Plugin/CakeResque/t | |
staging 1710 0.0 0.7 161472 15492 ? S 10:14 0:00 php ./bin/resque | |
staging 3437 0.0 0.0 10772 1404 ? S 10:17 0:00 bash -c cd '/home/staging/public_html/releases/20141013231718/app/Vendor/kamisama/php-resque-ex/'; VERBOSE=true QUEUE='default' PIDFILE='/home/staging/public_html/releases/20141013231718/app/Plugin/CakeResque/t | |
staging 3438 0.0 0.7 161496 15468 ? S 10:17 0:00 php ./bin/resque | |
staging 4803 0.0 0.0 10772 1404 ? S 10:19 0:00 bash -c cd '/home/staging/public_html/releases/20141013231903/app/Vendor/kamisama/php-resque-ex/'; VERBOSE=true QUEUE='default' PIDFILE='/home/staging/p |
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
joshuapaling: /Applications/MAMP/htdocs/BIG/Employee_Management_Website/www | |
->cap staging deploy | |
INFO[516fb1c3] Running /usr/bin/env mkdir -p /tmp/the_big_vault_staging/ on XXX.XXX.XXX.XXX | |
DEBUG[516fb1c3] Command: /usr/bin/env mkdir -p /tmp/the_big_vault_staging/ | |
INFO[516fb1c3] Finished in 0.501 seconds with exit status 0 (successful). | |
DEBUGUploading /tmp/the_big_vault_staging/git-ssh.sh 0.0% | |
INFOUploading /tmp/the_big_vault_staging/git-ssh.sh 100.0% | |
INFO[7f2c25f1] Running /usr/bin/env chmod +x /tmp/the_big_vault_staging/git-ssh.sh on XXX.XXX.XXX.XXX | |
DEBUG[7f2c25f1] Command: /usr/bin/env chmod +x /tmp/the_big_vault_staging/git-ssh.sh | |
INFO[7f2c25f1] Finished in 0.069 seconds with exit status 0 (successful). |
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
task :rename_css_scss do | |
files = Rake::FileList["app/assets/stylesheets/**/*.css.scss"] | |
files.each do |f| | |
new_name = f.gsub(/\.css\.scss/, '.scss') | |
sh "mv #{f} #{new_name}" | |
end | |
end |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<style type="text/css"> | |
.box { | |
width: 300px; | |
height: 300px; | |
float: left; | |
border: 9px solid red; |
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
# I battled for hours trying to install imagick via macports, trying to follow various tutorials. | |
# If you've been battling with macports, completely uninstall everything related to | |
# macports (http://guide.macports.org/chunked/installing.macports.uninstalling.html) | |
# and trying with Home Brew instead, using the instructions below | |
# install brew (http://mxcl.github.com/homebrew/) | |
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)" | |
# install imagemagick |
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
/** Database Charset to use in creating database tables. */ | |
define('DB_CHARSET', 'utf8'); | |
/** The Database Collate type. Don't change this if in doubt. */ | |
define('DB_COLLATE', ''); | |
// ** MySQL settings - You can get this info from your web host ** // | |
switch ($_SERVER['SERVER_NAME']) { | |
case 'mysite.localhost': | |
define('DB_NAME', 'local_database_name'); |
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
/** | |
* Takes a date and calculates the start and end of the calendar week that it's in. | |
* Start will be 00:00:00 of the Monday of that calendar week, and end will be | |
* 00:00:00 of the Monday of the next calendar week (ie, just after the Sunday ends) | |
* | |
* @param string $date MySQL friendly date, with format "Y-m-d H:i:s" | |
* @return array - has two keys, 'start' and 'end' which are the boundaries of the calendar | |
* week, in MySQL format - ie, "Y-m-d H:i:s" | |
*/ | |
protected function _getWeekEndpoints($date){ |
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
function setUpTabs($tabContainer){ | |
$('.tab_links a', $tabContainer).click(function(){ | |
$('.tab_content', $tabContainer).hide(); | |
$('.tab_links a', $tabContainer).removeClass('current'); | |
$(this).addClass('current'); | |
var tabId = $(this).attr('href'); | |
//tabId = tabId.substr(1); // stip of the # from the front | |
window.location.hash = tabId; | |
$(tabId).show(); |
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
require "bundler/capistrano" | |
require "rvm/capistrano" | |
#set :rvm_ruby_string, :local # from https://github.com/wayneeseguin/rvm-capistrano | |
set :rvm_type, :system # from http://stackoverflow.com/questions/5253153/rvm-error-with-deploying-rails-app-via-capistrano | |
default_run_options[:shell] = '/bin/bash --login' | |
set :application, "sneakerology_spree" | |
set :repository, "ssh://git@bitbucket.org/bbldigital/sneakerology-ecom.git" |
OlderNewer