$ brew install pdnsd
$ sudo chown -R nobody /usr/local/var/cache/pdnsd
$ curl -L http://goo.gl/kMlyQ -o pdnsd.conf
$ mv pdnsd.conf /usr/local/etc
$ sudo chown root /usr/local/etc/pdnsd.conf
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
# triggered when a client connection is established | |
when HTTP_REQUEST { | |
# Is client IP address defined in the dg-mobilenetwork? | |
if { [ class match [IP::client_addr] equals $static::DGMobileNetwork ] } { | |
# Log accepted request | |
if { $static::AclNetworkDebug > 0 } { | |
log local0. " Client | [IP::client_addr]:[TCP::client_port] " | |
log local0. " Host | [HTTP::host] " |
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 update github and gitorious (mi principal trunk is in gitorious) | |
# w/GitHub | |
git remote add github git@github.com:username/project.git | |
# w/Gitorious | |
git remote add gitorious git@gitorious.org:username/project.git | |
# and updating |
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
# Check out a new branch for integration | |
git checkout -b integration | |
# Fetch the merge request into this branch | |
git pull git://gitorious.org/dpsync/mainline.git refs/merge-requests/1 | |
# Show the commits, assess they are okay | |
git log --pretty=oneline --abbrev-commit master..integration | |
# To apply the changes to your master branch: |
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
# Step 1: gem install thor | |
# Step 2: thor ssl:generate_ca && thor ssl:generate_cert | |
require 'thor' | |
require 'securerandom' | |
class SSL < Thor | |
desc "generate_ca", "Generate a Root CA" | |
method_option :name, type: :string, desc: "Common 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
require 'active_record' | |
ActiveRecord::Base.logger = Logger.new(STDERR) | |
ActiveRecord::Base.colorize_logging = false | |
ActiveRecord::Base.establish_connection( | |
:adapter => "sqlite3", | |
:dbfile => ":memory:" | |
) |
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 'rubygems' | |
require 'pp' | |
#require 'ap' # Awesome Print | |
class Object | |
# expects [ [ symbol, *args ], ... ] | |
def recursive_send(*args) | |
args.inject(self) { |obj, m| obj.send(m.shift, *m) } | |
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
cd ~/Downloads | |
curl -O http://www.magentocommerce.com/downloads/assets/1.8.1.0/magento-1.8.1.0.tar.gz | |
curl -O http://www.magentocommerce.com/downloads/assets/1.6.1.0/magento-sample-data-1.6.1.0.tar.gz | |
tar -zxvf magento-1.8.1.0.tar.gz | |
mv ~/Downloads/magento-1.8.1.0 ~/Sites/magento | |
tar -zxvf magento-sample-data-1.6.1.0.tar.gz | |
mv magento-sample-data-1.6.1.0/media/* ~/Sites/magento/media/ | |
mv magento-sample-data-1.6.1.0/magento_sample_data_for_1.6.1.0.sql ~/Sites/magento/data.sql | |
cd ~/Sites | |
mv magento/* magento/.htaccess magento |
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
<!-- Add the following lines to theme's html code right before </head> --> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script> | |
<script src="http://static.tumblr.com/fpifyru/VCxlv9xwi/writecapture.js"></script> | |
<script src="http://static.tumblr.com/fpifyru/AKFlv9zdu/embedgist.js"></script> | |
<!-- | |
Usage: just add <div class="gist">[gist URL]</div> | |
Example: <div class="gist">https://gist.github.com/1395926</div> | |
--> |
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
$> openssl pkcs12 -in uat-domain-br.pfx -nocerts | |
Enter Import Password: | |
MAC verified OK | |
Bag Attributes | |
localKeyID: 41 D4 48 C4 1D 3E 50 FE CA 9E 8A 2F BF 10 A5 A7 4B BE 20 88 | |
friendlyName: uat-domain-br | |
Key Attributes: | |
Enter PEM pass phrase: | |
Verifying - Enter PEM pass phrase: | |
-----BEGIN ENCRYPTED PRIVATE KEY----- |
OlderNewer