View gamselect.sh
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
#!/bin/bash | |
# | |
# | |
# Author: Duncan Isaksen-Loxton | |
# Web: sixfive.com.au | |
# | |
# PREREQUISITES |
View userauth.cfm
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
<cfparam name="isAuthenticated" default="false"> | |
<cfparam name="logindomain" default="domain"> | |
<cfparam name="ldapServer" default="192.168.1.1"> | |
<cfparam name="dcStart" default="DC=domain,DC=co,DC=uk"> | |
<cfif IsDefined("form.username") AND form.username is not "" AND IsDefined("form.password") AND form.password is not ""> | |
<cftry> | |
<cfldap action="QUERY" | |
name="auth" | |
attributes="samAccountName" | |
start="#dcStart#" |
View error.txt
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
Error when loading gists from http://gist.github.com/. |
View mailchimp-googlescript.txt
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
/** | |
* Mailchimp API v3 | |
* Add a subscriber to a list with interests on Google Form submit | |
* | |
* Updated to 3.0 from https://gist.github.com/acarrillo/5772508 | |
* | |
* Edit the Google Sheet connected to your form | |
* Menu > Tools > Script Editor | |
* Copy and paste this into the file, remove anything there already | |
* Update the variables in the top section |
View icon.html
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
<link rel="apple-touch-icon" href="/media/pics/site/ios.png"> |
View createtable.sql
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
Create table vin_deadlock (id int, Name Varchar(30)) | |
GO | |
Insert into vin_deadlock values (1, 'Vinod') | |
Insert into vin_deadlock values (2, 'Kumar') | |
Insert into vin_deadlock values (3, 'Saravana') |
View timer.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
// set property timer to zero initially | |
var propertyTimerID = 0; | |
function timeProperty() { | |
// if property timer is set | |
if(propertyTimerID) { | |
// clear it | |
clearTimeout(propertyTimerID); | |
} | |
// set it to fire a second from now | |
propertyTimerID = self.setTimeout('getPropertyHelper()', 1000); |
View copy.sql
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
SELECT * | |
INTO NewTable | |
FROM existingdb.dbo.existingtable; |
View 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
var xml = window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest(); |
View XMPPConnection.cfm
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
<cfset XMPPConnection = createObject("java", "org.jivesoftware.smack.XMPPConnection").init("localhost")> |
NewerOlder