This file contains hidden or 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 ( isset($_GET['id']) && !isset($_COOKIE['campaign']) ) { | |
# preg_match('/-/', $_GET['id']) == true ? list($campaign, $publisher) = split("-", $_GET['id']) : $campaign = $_GET['id']; | |
# in_array($_GET['id'], $ads) ? $campaign_valid = true : $campaign_valid = false; | |
if ( in_array($_GET['id'], $ads) ) { | |
setcookie("campaign", $_GET['id'], time() + 60*60*24*45, "", ".idwatchdog.com"); | |
setcookie("ipaddress", $_SERVER['REMOTE_ADDR'], time() + 60*60*24*45, "", ".idwatchdog.com"); |
This file contains hidden or 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
$ ./script/generate kawaii | |
exists config/initializers | |
create config/initializers/kawaii.rb | |
exists config | |
create config/kawaii.yml | |
create lib/too_cute | |
create lib/kawaii_authentication.rb | |
exists lib/too_cute | |
create lib/too_cute/activerecord_base.rb | |
create lib/too_cute/array.rb |
This file contains hidden or 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
<script type="text/javascript"> | |
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); | |
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); | |
</script> | |
<script type="text/javascript"> | |
var pageTracker = _gat._getTracker("UA-2011730-1"); | |
pageTracker._setDomainName(".idwatchdog.com"); | |
pageTracker._trackPageview(); | |
</script> |
This file contains hidden or 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
# Is this correct? | |
# if | |
>> cookies['test'] = "testing" | |
# then | |
>> params[:test] | |
=> "testing" |
This file contains hidden or 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
def kill_them(c_id) | |
puts | |
puts "---------------------------------------------" | |
if (c = Customer.find_by_id(c_id)) | |
puts " " + c.name | |
puts "---------------------------------------------" | |
print " Delete this customer? (y/n): " | |
answer = gets.chomp | |
if answer == "y" | |
kill_customer(c) |
This file contains hidden or 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
# Source: http://us3.php.net/types.string | |
// Outputs: You deleted C:\*.*? | |
echo 'You deleted C:\\*.*?'; | |
// Outputs: You deleted C:\*.*? | |
echo 'You deleted C:\*.*?'; |
This file contains hidden or 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
$ ~ > pkginfo | grep subversion | |
application CSWap2svn ap2_subversion - Subversion modules for Apache 2.2 | |
application CSWpmsvn pm_subversion - Subversion Perl language binding | |
application CSWsvn subversion - Version control rethought | |
$ ~ > pkginfo | grep CSW | |
system CSWaalib aalib - Ascii art graphics library | |
application CSWantiword antiword - convert Word docs to text |
This file contains hidden or 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
$ newpkgs > pkginfo | grep -i openssl | grep CSW | |
application CSWossl openssl - The Open Source toolkit for SSL and TLS. | |
application CSWphp4openssl php4_openssl - openssl extension for php4 | |
application CSWpmcryptosslrandom pm_osslrandom - Perl Crypt::OpenSSL::Random module | |
application CSWpmcryptosslrsa pm_osslrsa - Perl Crypt::OpenSSL::RSA module | |
system CSWpmcryptssleay pm_cryptssleay - OpenSSL glue that provides LWP https support | |
application CSWpmiosocketssl pm_iosocketssl - Perl extension for using OpenSSL | |
application CSWpmnetssleay pm_netssleay - extension for using OpenSSL |
This file contains hidden or 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
# pkgadd -d pkg_get* all | |
Processing package instance <CSWpkgget> from </tmp/newpkgs/pkg_get-3.8.4-SunOS5.8-all-CSW.pkg> | |
pkg_get - CSW version of automated package download tool(all) 3.8.4 | |
You may use and copy this software without charge, as you see fit. | |
The software is copyright (C) Philip Brown, Nov 2000-2007 | |
Dont forget to update /opt/csw/etc/pkg-get.conf with your nearest archive site. | |
(or /etc/opt/csw/pkg-get.conf) |
This file contains hidden or 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
# pkginfo -l CSWossl CSWosslrt CSWwget CSWpkgget | |
PKGINST: CSWossl | |
NAME: openssl - Openssl meta package | |
CATEGORY: application | |
ARCH: sparc | |
VERSION: 0.9.8g,REV=2008.04.30_rev=g | |
BASEDIR: / | |
VENDOR: http://www.openssl.org/source/ packaged for CSW by Yann Rouillard | |
PSTAMP: yann@ra-20080430122548 | |
INSTDATE: Sep 16 2008 11:34 |