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
-----BEGIN WEBFACTION INSTALL SCRIPT----- | |
#!/bin/env python2.4 | |
""" | |
Nginx 0.7.65 Installer New | |
"autostart": not applicable | |
"extra info": Enter domain name for the nginx app | |
""" |
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
document.onclick = function(event) { | |
event = event || window.event; | |
var target = event.target || event.srcElement, | |
targetElement = target.tagName.toLowerCase(); | |
if (targetElement == "a") { | |
var href = target.getAttribute("href"), | |
urlHost = document.domain.replace(/^www\./i,""); | |
var urlPattern = "^(?:https?:)?\/\/(?:(?:www)\.)?" + urlHost + "\/?"; |
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
/* | |
* Inspired by (directly copied from) Mathias Bynens' optimized Google Analytics snippet | |
* http://mathiasbynens.be/notes/async-analytics-snippet | |
* Not fully tested, use at own risk! | |
*/ | |
<script> | |
var clicky = { log: function(){ return; }, goal: function(){ return; }}, | |
clicky_site_id = XXXXXX; | |
(function(d, t) { |
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
javascript:(function(){var a=window.open("about:blank").document;a.write("<!DOCTYPE html><html><head><title>Source of "+location.href+'</title><meta name="viewport" content="width=device-width" /></head><body></body></html>');a.close();var b=a.body.appendChild(a.createElement("pre"));b.style.overflow="auto";b.style.whiteSpace="pre-wrap";b.appendChild(a.createTextNode(document.documentElement.innerHTML))})(); |
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
/* | |
* Bookmarklet for viewing source in iPad Safari | |
*/ | |
javascript:(function(){ | |
var w = window.open('about:blank'), | |
s = w.document; | |
s.write('<!DOCTYPE html><html><head><title>Source of ' + location.href + '</title><meta name="viewport" content="width=device-width" /></head><body></body></html>'); | |
s.close(); | |
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
#!/usr/bin/evn python2.6 | |
# Shell script for rotating/archiving nginx logs | |
import os | |
from datetime import datetime | |
cwd = os.getcwd() | |
date = datetime.now().strftime("%Y-%m-%d") |
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
#!/bin/bash | |
curl -k --user USERNAME:PASSWORD -o delicious.xml -O 'https://api.del.icio.us/v1/posts/all' |
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
//Set initial slide | |
changeSlide(currentSlide); | |
//Add this line to make the slides auto-change | |
autoSlide = setInterval(function() { nextSlide() }, 30000); |
OlderNewer