$ 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
#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
# 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
# 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
5[0-9]{2}[0-9]{2}[A-Z]{1}[AEIOUX]{1}[A-Z]{2}[0-9]{2}(0[1-9]|1[0-2])(0[1-9]|1[0-9]|2[0-9]|3[0-1])[HM]{1}(AS|BC|BS|CC|CS|CH|CL|CM|DF|DG|GT|GR|HG|JC|MC|MN|MS|NT|NL|OC|PL|QT|QR|SP|SL|SR|TC|TS|TL|VZ|YN|ZS|NE)[B-DF-HJ-NP-TV-Z]{3}[0-9A-Z]{1}[0-9]{1}[0-1]{1}[0-9]{2}[0-9]{1}[1-9]{1}[0-9]{3}[0-1][1-9][0-3][0-9][0-9]{3} |
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 |
I hereby claim:
- I am andresaquino on github.
- I am andresaquino (https://keybase.io/andresaquino) on keybase.
- I have a public key whose fingerprint is B3E9 BCB3 6102 30AA 2D85 0F78 0E31 EE04 39B6 E6AD
To claim this, I am signing this object:
OlderNewer