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
// ---- | |
// Sass (v3.3.14) | |
// Compass (v1.0.1) | |
// ---- | |
.search-doctors-box { | |
position:relative; | |
z-index:999; | |
margin: 0px; | |
&--at-map { |
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 | |
//Get ISO list of countries | |
$iso_xml_zip_file_url = 'http://www.iso.org/iso/'; | |
$iso_xml_zip_filename = 'iso_3166-1_list_en.zip'; | |
$iso_xml_zip_new_filename = 'iso_3166-1_list_en_'.date('Y-m-d').'.zip'; | |
$iso_xml_filename = 'iso_3166-1_list_en.xml'; | |
$download_directory = './temp/'; | |
//setup database variables | |
$table_name = 'countries'; |
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 | |
class SHA1Crypt{ | |
function keyED($txt,$encrypt_key) | |
{ | |
$encrypt_key = sha1($encrypt_key); | |
$ctr=0; | |
$tmp = ""; | |
for ($i=0;$i<strlen($txt);$i++){ | |
if ($ctr==strlen($encrypt_key)) $ctr=0; | |
$tmp.= substr($txt,$i,1) ^ substr($encrypt_key,$ctr,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
<?php | |
// With ID | |
$populate =& $this->getContext()->getRequest()->getAttribute('populate', 'org.agavi.filter.FormPopulationFilter'); | |
$populate['form-id-1'] = new AgaviParameterHolder(array( | |
'question[0]' => 'Can you eat cheese?', | |
'answer[0]' => 'No' | |
)); | |
$populate['form-id-2'] = new AgaviParameterHolder(array( | |
'question[0]' => "How many frags do I have to get before I'm considered awesome?", |
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
sp_addumpdevice 'disk', 'pseudoName', 'C:yourFilename.mdb'; | |
GO | |
DUMP DATABASE yourDatabaseName TO pseudoName; | |
GO | |
sp_dropdevice pseudoName; |
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 | |
if (!defined('ADODB_SESSION')) die(); | |
include_once ADODB_SESSION . '/crypt.inc.php'; | |
class ADODB_Encrypt_SHA1 { | |
function write($data, $key) { | |
$sha1crypt =& new SHA1Crypt(); | |
return $sha1crypt->encrypt($data, $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 | |
$conn = mysql_connect('host','user','pass'); | |
mysql_select_db('database',$conn); | |
$SQL = "SHOW TABLES;"; | |
$result = mysql_query($SQL, $conn); | |
while($row = mysql_fetch_array($result)) | |
print "SELECT * INTO SQLServerDBName.dbo.{$row[0]}<br /> | |
FROM openquery(MySQL, 'SELECT * FROM `{$row[0]}`');<br /> | |
"; |
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
BEGIN TRANSACTION | |
GO | |
CREATE TABLE dbo.Tmp_admin_accounts | |
( | |
account_id int NOT NULL IDENTITY (1, 1), | |
username varchar(20) NOT NULL, | |
passhash char(40) NOT NULL | |
) ON [PRIMARY] | |
GO | |
SET IDENTITY_INSERT dbo.Tmp_admin_accounts ON |
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
<VirtualHost *:80> | |
ServerAdmin name@domain.com | |
DocumentRoot c:\xampp\simonholywell.com\pub | |
ServerName simonholywell.localhost | |
<Directory c:\xampp\simonholywell.com\pub> | |
Order allow,deny | |
Allow from all | |
</Directory> | |
</VirtualHost> |
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
schtasks /Create /RU username /RP password /SC MONTHLY /MO 2 /TN taskname /TR "C:\Program Files\wget\wget.exe http://www.webaddress.com/script.php --spider" |
OlderNewer