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
Authority: | |
columns: | |
... | |
actAs: | |
Versionable: | |
className: '%CLASS%Versionable' | |
tableName: '%TABLE%_log' | |
deleteVersions: false | |
auditLog: true | |
generateFiles: 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
bash-3.2# ps x | grep vmnet | |
919 ?? S 0:00.10 /Library/Application Support/VMware Fusion/vmnet-bridge | |
923 ?? Ss 0:00.02 /Library/Application Support/VMware Fusion/vmnet-dhcpd -s 13 -cf /Library/Application Support/VMware Fusion/vmnet1/dhcpd.conf -lf /var/db/vmware/vmnet-dhcpd-vmnet1.leases -pf /var/run/vmnet-dhcpd-vmnet1.pid vmnet1 | |
925 ?? Ss 0:00.00 /Library/Application Support/VMware Fusion/vmnet-netifup -s 13 -d /var/run/vmnet-netif-vmnet1.pid vmnet1 vmnet1 | |
927 ?? Ss 0:00.02 /Library/Application Support/VMware Fusion/vmnet-dhcpd -s 13 -cf /Library/Application Support/VMware Fusion/vmnet8/dhcpd.conf -lf /var/db/vmware/vmnet-dhcpd-vmnet8.leases -pf /var/run/vmnet-dhcpd-vmnet8.pid vmnet8 | |
930 ?? S 0:00.06 /Library/Application Support/VMware Fusion/vmnet-natd -s 13 -m /Library/Application Support/VMware Fusion/vmnet8/nat.mac -c /Library/Application Support/VMware Fusion/vmnet8/nat.conf | |
932 ?? Ss 0:00.00 /Library/Application Support/VMware Fusion/vmnet-netifu |
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
set isRunning to do shell script "ps -ef | grep vmnet | grep -v grep | wc -l |sed 's/ //g'" | |
if isRunning is "0" then | |
do shell script "/Library/Application\\ Support/VMware\\ Fusion/boot.sh --start" with administrator privileges | |
end if | |
tell application "VMware Fusion" to activate |
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
# Install and run xvfb | |
apt-get install xvfb | |
Xvfb -ac :99 | |
# Get Firefox | |
wget -O firefox-5.0.tar.bz2 "http://download.mozilla.org/?product=firefox-5.0&os=linux&lang=en-US" | |
tar xfj firefox-5.0.tar.bz2 | |
mv firefox firefox-5.0 | |
# Get Selenium Server |
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
if ENV.key?('SELENIUM_REMOTE') | |
Capybara.register_driver :selenium do |app| | |
require 'selenium-webdriver' | |
profile = Selenium::WebDriver::Firefox::Profile.from_name 'default' | |
capabilities = Selenium::WebDriver::Remote::Capabilities.firefox(:firefox_profile => profile) | |
Capybara::Selenium::Driver.new(app, { :browser => :remote, :desired_capabilities => capabilities }) | |
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
# TODO: Can be removed after updating to rack 1.3.0 | |
module Rack | |
module Utils | |
def escape(s) | |
CGI.escape(s.to_s) | |
end | |
def unescape(s) | |
CGI.unescape(s) | |
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
@mixin all-retina-sprites($map, $map2x) { | |
@media (min--moz-device-pixel-ratio: 1.5), | |
(-o-min-device-pixel-ratio: 3/2), | |
(-webkit-min-device-pixel-ratio: 1.5), | |
(min-device-pixel-ratio: 1.5), | |
(min-resolution: 1.5dppx) { | |
$base-class: sprite-map-name($map); | |
.#{$base-class}-all-retina-sprites { |
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 | |
# Base Repository URL | |
SVN_URL=http://svn-repo-url | |
# Atlassian Jira URL | |
JIRA_URL=https://jira-url | |
# Jira Project Key | |
PROJECT=project-key |
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 | |
class Factory | |
{ | |
// ... | |
/** | |
* Helper to instantiate objects with dynamic constructors. | |
* |
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 | |
current=`find /Applications/Google\ Chrome.app/Contents/Versions -maxdepth 1 -type d -name "*.*.*.*" | sort | tail -1 | xargs -I% basename %` | |
echo Deleting old Chrome versions and keep $current | |
find /Applications/Google\ Chrome.app/Contents/Versions -maxdepth 1 -type d -name "*.*.*.*" -not -iname "$current" -exec rm -rf {} + |
OlderNewer