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 | |
$this->widgetSchema['captcha'] = new sfWidgetFormReCaptcha2(array( | |
'public_key' => sfConfig::get('app_recaptcha_public_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 use_javascript('http://api.recaptcha.net/js/recaptcha_ajax.js') ?> |
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 | |
/** | |
* Magento | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the Open Software License (OSL 3.0) | |
* that is bundled with this package in the file LICENSE.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://opensource.org/licenses/osl-3.0.php |
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 | |
// Tinycarts_Debug_Firephp usage example | |
Tinycarts_Debug_Firephp::send($this->debug(), 'Product view page aka view.phtml VAR: $this'); | |
Tinycarts_Debug_Firephp::send($_product->debug(), 'Product view page aka view.phtml VAR: $_product'); |
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
#!/usr/bin/perl -ln | |
# aspell wrapper to have spell checking simultaneously for Russian and English | |
# from http://powerman.name/config/vim.html | |
# put this code into ~/bin/aspell and make executable | |
BEGIN { | |
($OPT = " @ARGV ") =~ s/\s+-d\s+\w+//g; | |
$IS_APPEND = $OPT =~ /\s-a\s/; | |
@ARGV = ('-'); | |
umask 077; | |
open $R,"| /usr/bin/aspell $OPT -d russian --ignore-accents >/tmp/aspell_ru.$$"; |
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
## from libcloud.types import Provider | |
## from libcloud.providers import get_driver | |
require 'fog/types' | |
require 'fog/providers' | |
## EC2 = get_driver(Provider.EC2) | |
## Slicehost = get_driver(Provider.SLICEHOST) | |
## Rackspace = get_driver(Provider.RACKSPACE) | |
EC2 = Fog::Provider.new(:ec2) # syntax 1 |
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
STDOUT.sync = true | |
require 'queue' | |
start_time = Time.now.to_i | |
msg = 0 | |
queue = Queue.new("testing") | |
queue.subscribe do |obj| | |
msg += 1 |
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 @params[:ssl] %> | |
<VirtualHost <%= node[:ipaddress] %>:443> | |
ServerName <% if node[:magento][:server][:secure_domain] %><%= node[:magento][:server][:secure_domain] %><% else %><%= @params[:server_name] %><% end %> | |
SSLEngine on | |
SSLCertificateKeyFile ssl/<%= @params[:server_name] %>.pem | |
SSLCertificateFile ssl/<%= @params[:server_name] %>.pem | |
SSLProtocol all | |
SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL | |
<% else %> |
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
#!/usr/bin/python | |
# Copyright 2011 @Yeevgen | |
# Licensed under the Apache License, Version 2.0 | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
import os | |
import os.path | |
import re | |
import webbrowser |
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
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAqYwYSgkTesI+mCvITnxHIh5+CIEpSbll2QyuEsR0qTFbsjUIKrYckBpBU3SksHkUJ9zV0TiZ7CBQwPDY7UOzoFNcPZjSNw8TZ3jJFnHDp4g8iPhNRQKGzx/xMafWYMGfnf/09RQLsXozYqkTEUVG021YyV4vZAMHXKsYyQtB/80SeZZhE/gCVlTD2Q7XzXLqZpFFHYPoua6T4/YRHvT7WHjUJTW8g89FJpV+USJ0FME7dQ6/ocB4wmIV1NOiPCo/LzzrM9fkLAU0QWsmHVOP2JrOrt1Rhw9Q9vFNyWVUpuWsq3oen53bOpnpbPivfNjLR+e9ViOy9l/1D5+Qy7zqIQ== wik@www |