Skip to content

Instantly share code, notes, and snippets.

sudo -u apache ssh-keygen -t rsa
//make sure ./.ssh dir is set to 770
setTimeout(function(){myFunction(parameter); parameter = null},myTimeout);
list($width, $height) = getimagesize($img);
function changeBG(theid){
if(theid.style.backgroundImage == 'url(images/expand.jpg)') {
var your_image = 'images/collapse.jpg';
theid.style.backgroundImage="url('"+your_image+"')";
}
else {
var your_image = 'images/expand.jpg';
theid.style.backgroundImage="url('"+your_image+"')";
}
}
cursor: hand; cursor: pointer;
function URLEncode (clearString) {
var output = '';
var x = 0;
clearString = clearString.toString();
var regex = /(^[a-zA-Z0-9_.]*)/;
while (x < clearString.length) {
var match = regex.exec(clearString.substr(x));
if (match != null && match.length > 1 && match[1] != '') {
output += match[1];
x += match[1].length;
function return_agent(theForm) {
var radioSelected = false;
for (i = 0; i < theForm.agent_id.length; i++)
{
if (theForm.agent_id[i].checked)
radioSelected = true;
}
if (!radioSelected)
{
@QuestionDevelopment
QuestionDevelopment / find delete svn folders
Created August 23, 2013 19:53
Find and delete svn folders
find ./ -name .svn -exec ls -l {} \;
find ./ -name .svn -exec rm -rf {} \;