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/env perl | |
use DBI; | |
use Data::Dumper qw/Dumper/; | |
my $query = shift(@ARGV); | |
my $dbh = DBI->connect('dbi:mysql:database=', 'root', 'YoPassword'); | |
my $sth = $dbh->prepare("SHOW PROCESSLIST"); | |
while (1) { | |
$sth->execute(); |
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
function geocode(lat,lon) { | |
geocoder = new google.maps.Geocoder(); | |
var latlng = new google.maps.LatLng(lat,lon); | |
geocoder.geocode({'latLng': latlng}, function(results, status) { | |
if (status == google.maps.GeocoderStatus.OK) { | |
if (results[0]) { | |
var address = "", city = "", state = "", zip = "", country = "", formattedAddress = ""; | |
var lat; | |
var lng; |
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
==> Downloading http://downloads.sourceforge.net/project/wxwindows/2.8.11/wxMac-2.8.11.tar.bz2 | |
File already downloaded in /Users/jjeffus/Library/Caches/Homebrew | |
/usr/bin/tar xf /Users/jjeffus/Library/Caches/Homebrew/wxmac-2.8.11.tar.bz2 | |
==> ./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/wxmac/2.8.11 --enable-unicode | |
./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/wxmac/2.8.11 --enable-unicode | |
checking build system type... i686-apple-darwin11.0.0 | |
checking host system type... i686-apple-darwin11.0.0 | |
checking target system type... i686-apple-darwin11.0.0 | |
loading argument cache configarg.cache | |
checking for --enable-gui... yes |
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
==> Downloading http://downloads.sourceforge.net/project/wxwindows/2.8.11/wxMac-2.8.11.tar.bz2 | |
File already downloaded in /Users/jjeffus/Library/Caches/Homebrew | |
/usr/bin/tar xf /Users/jjeffus/Library/Caches/Homebrew/wxmac-2.8.11.tar.bz2 | |
==> ./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/wxmac/2.8.11 --enable-unicode | |
./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/wxmac/2.8.11 --enable-unicode | |
checking build system type... i686-apple-darwin11.0.0 | |
checking host system type... i686-apple-darwin11.0.0 | |
checking target system type... i686-apple-darwin11.0.0 | |
loading argument cache configarg.cache | |
checking for --enable-gui... yes |
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
==> Downloading http://downloads.sourceforge.net/project/wxwindows/2.8.11/wxMac-2.8.11.tar.bz2 | |
File already downloaded in /Users/jjeffus/Library/Caches/Homebrew | |
/usr/bin/tar xf /Users/jjeffus/Library/Caches/Homebrew/wxmac-2.8.11.tar.bz2 | |
==> ./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/wxmac/2.8.11 --enable-unicode | |
./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/wxmac/2.8.11 --enable-unicode | |
checking build system type... i686-apple-darwin11.0.0 | |
checking host system type... i686-apple-darwin11.0.0 | |
checking target system type... i686-apple-darwin11.0.0 | |
loading argument cache configarg.cache | |
checking for --enable-gui... yes |
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
==> Downloading http://build.openvpn.net/downloads/releases/openvpn-2.2.0.tar.gz | |
File already downloaded in /Users/jjeffus/Library/Caches/Homebrew | |
/usr/bin/tar xf /Users/jjeffus/Library/Caches/Homebrew/openvpn-2.2.0.tar.gz | |
==> ./configure --prefix=/usr/local/Cellar/openvpn/2.2.0 --disable-debug --disable-dependency-tracking | |
./configure --prefix=/usr/local/Cellar/openvpn/2.2.0 --disable-debug --disable-dependency-tracking | |
checking build system type... x86_64-apple-darwin11.0.0 | |
checking host system type... x86_64-apple-darwin11.0.0 | |
checking for a BSD-compatible install... /usr/bin/install -c | |
checking whether build environment is sane... yes | |
checking for a thread-safe mkdir -p... ./install-sh -c -d |
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 | |
use strict; | |
use PDF::API2::Simple; | |
my ($input_pdf, $pdf, $api, $page, $width, $height); | |
my ($box_width, $box_height); | |
$input_pdf = shift @ARGV; |
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 'open-uri' | |
def get_file_path() | |
name = ActiveSupport::SecureRandom.hex(16) | |
Rails.root.join('processing', | |
name[0], | |
name[1], | |
name[2 .. name.length]).to_s + '.pdf' | |
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
module ActiveMerchant #:nodoc: | |
module Billing #:nodoc: | |
class InternetSecureGateway < AuthorizeNetGateway | |
self.live_url = self.test_url = 'https://anet.internetsecure.com/process.cgi' | |
self.homepage_url = 'http://www.internetsecure.com/' | |
self.display_name = 'InternetSecure' | |
def test? | |
Base.gateway_mode == :test |
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
# Adds information about the customer | |
def add_arb_customer(xml, options) | |
customer = options[:customer] | |
return unless customer | |
xml.tag!('customer') do | |
xml.tag! 'type' ,customer[:type] if customer[:type] | |
xml.tag! 'id' ,customer[:id] if customer[:id] | |
xml.tag! 'email' ,customer[:email] if customer[:email] | |
xml.tag! 'phoneNumber' ,customer[:phone_number] if customer[:phone_number] | |
xml.tag! 'faxNumber' ,customer[:fax_number] if customer[:fax_number] |
OlderNewer