Object: $result
($this
)
Expectation: should
or shouldNot
Matcher: Be...()
Types of Matchers:
#!/bin/bash | |
echo "Deleting remote branches contained within to-be-deleted-branches.txt" | |
while read BRANCH_NAME | |
do | |
echo -e "$BRANCH_NAME \n" | |
if [ ! -L "${BRANCH_NAME}" ]; then | |
git push origin --delete $BRANCH_NAME | |
fi | |
done < to-be-deleted-branches.txt |
#!/bin/bash | |
echo "Tracking all remote branches" | |
for remote in `git branch -r | sed "s/origin\///g"`; | |
do git branch --track $remote origin/$remote; | |
done |
SET FOREIGN_KEY_CHECKS=0; | |
-- Here's where we reset the orders | |
TRUNCATE `sales_flat_order`; | |
TRUNCATE `sales_flat_order_address`; | |
TRUNCATE `sales_flat_order_grid`; | |
TRUNCATE `sales_flat_order_item`; | |
TRUNCATE `sales_flat_order_status_history`; | |
TRUNCATE `sales_flat_quote`; | |
TRUNCATE `sales_flat_quote_address`; |
# | |
# deb cdrom:[Ubuntu-Server 14.04 LTS _Trusty Tahr_ - Release amd64 (20140416.2)]/ trusty main restricted | |
#deb cdrom:[Ubuntu-Server 14.04 LTS _Trusty Tahr_ - Release amd64 (20140416.2)]/ trusty main restricted | |
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to | |
# newer versions of the distribution. | |
deb http://mirrors.digitalocean.com/ubuntu/ trusty main restricted | |
deb-src http://mirrors.digitalocean.com/ubuntu/ trusty main restricted |
UPDATE wp_options SET option_value = replace(option_value, 'http://localhost:8888/', 'http://somesite.local/') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
UPDATE wp_posts SET guid = replace(guid, 'http://localhost:8888/', 'http://somesite.local/'); | |
UPDATE wp_posts SET post_content = replace(post_content, 'http://localhost:8888/', 'http://somesite.local/'); | |
UPDATE wp_postmeta SET meta_value = replace(meta_value, 'http://localhost:8888/', 'http://somesite.local/'); |
<?php | |
$root = $_SERVER['DOCUMENT_ROOT']; | |
chdir($root); | |
$path = '/'.ltrim(parse_url($_SERVER['REQUEST_URI'])['path'],'/'); | |
set_include_path(get_include_path().':'.__DIR__); | |
if(file_exists($root.$path)) | |
{ | |
if(is_dir($root.$path) && substr($path,strlen($path) - 1, 1) !== '/') | |
$path = rtrim($path,'/').'/index.php'; |
php -d memory_limit=-1 composer.phar update |
###########START of redirect updates based on geoip######## | |
set $condition ''; | |
set $redirect_uri ''; | |
set $my_cookie ''; | |
if ($cookie_store) { | |
set $condition 'cookie'; | |
} | |
set $country 'none'; | |
if ($http_CF_IPCOUNTRY) { |
a2enmod expires | |
----------------- | |
ExpiresActive on | |
# send an Expires: header for each of these mimetypes (as defined by server) | |
ExpiresByType image/png "access plus 1 month" | |
ExpiresByType image/gif "access plus 1 month" | |
ExpiresByType image/jpeg "access plus 1 month" | |
ExpiresByType image/jpg "access plus 1 month" |