Skip to content

Instantly share code, notes, and snippets.

<script src="console.js" runat="server"></script>
<script runat="server">
console.log("Hello world!");
console.info("And", "so", "on");
</script>
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Form</title>
</head>
<body>
<div id="d"></div>
<script src="http://ajax.googleapis.com/ajax/libs/prototype/1.6.1.0/prototype.js"></script>
<script src="http://markupfactory.com/includes/javascripts/src/mf/form.js"></script>
" File: commonjs-package-json
" Author: Ash Berlin <ash.berlin@gmail.com>
" Last Change: 23-Feb-2010.
" Version: 1.1
" Usage:
"
" Use by placing something like the following in your .vimrc:
"
" let g:maintainer='{ "name": "Ash Berlin", "web": "http://ashberlin.com" }'
"
#!/bin/sh
# Make sure all components are using Kris Zyp's branches
APPS=~/apps
GCOKZ="git checkout kriszyp"
(cd $APPS/narwhal && echo -n `pwd`: && $GCOKZ)
(cd $APPS/jack && echo -n `pwd`: && $GCOKZ)
#!/bin/sh
# Ping the Coralville router so the VPN tunnel stays up
ping -c 1 10.0.48.11
#!/bin/sh
~/Projects/diyseo/script/server -p 3000 &
~/Projects/diyseo/community_engine_silo/script/server -p 3001 &
// Toggle Input Submit based on whether
// there are ANY input fields showing
function toggleInputSubmit() {
var dis, showit = false;
$$(".tag, .field a").each(function (el) {
el.observe("click", function (event) {
$$(".field").each(function (f) {
dis = f.getStyle("display");
if (dis !== "none") {
window.open(window.location.protocol+'//'+window.location.host+'/admin/');
size=`rsync --delete --delete-excluded -pthrv --exclude-from \
/Users/paul/.backup/exclude /Users/paul/Documents/ \
/Users/paul/Dropbox | egrep -o "total size is (.*)G" | egrep -o "[0-9\.]+"`
if [ "$size" = "" ]; then
size=0
fi
if [ `echo "$size < 1.8" | bc` = 0 ]; then
echo "`date`: WARNING: Size is running out for Dropbox backups.\
(Currently using ${size} GB.)" 1>&2
#! /bin/sh
# Author: Sean Garner <seanlgarner@gmail.com>
#
### BEGIN INIT INFO
# Provides: persevere
# Required-Start: $network $remote_fs
# Required-Stop: $network $remote_fs
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Description: Start the live instance of Persevere