Skip to content

Instantly share code, notes, and snippets.

View JGaudette's full-sized avatar

Jon Gaudette JGaudette

View GitHub Profile
[PROD]
host = sybase_hostname
port = sybase_port
tds version = 5.0
[prod]
Driver = /usr/lib/libtdsodbc.so
Description = ODBC
Trace = No
Servername = PROD
Database = <database_name>
[TDS]
Description = TDS driver (Sybase/MS SQL)
Driver = /usr/lib/libtdsodbc.so
Setup = /usr/lib/libtdsS.so
FileUsage = 1
CPTimeout =
CPReuse =
#!/usr/bin/ruby
require 'dbi'
require 'odbc'
dbh = DBI.connect('DBI:ODBC:prod', 'username', 'password')
query = "select getdate()"
row = dbh.select_one(query)
puts "got a value of: " + row[0].to_s
<?php
<html>
<head>
<title>Sybase Test</title>
</head>
<body>
Testing execution<br />
<?= print_sybase_version() ?>
#!/usr/bin/perl
use Net::Amazon;
use Net::Amazon::Request::Wishlist;
use DBI;
use Product;
sub createRecord{
my $rec = shift;
#!/usr/bin/perl
use Net::Amazon;
use Net::Amazon::Request::Wishlist;
use Net::Amazon::Request::ASIN;
use DBI;
use Product;
use Price;
<html>
<head>
<title>A Little Bit of PHP</title>
<style type="text/css">
td {font-size: 8pt; font-family: Arial;}
</style>
</head>
<?php
#!/usr/bin/ruby
# Download NASA MODIS imagery and use it as a desktop background.
# You'll need ImageMagick installed for this to work.
require 'date'
require 'net/http'
# Screen width/height
X = 2580
Y = 1024