Skip to content

Instantly share code, notes, and snippets.

View 3en's full-sized avatar

Ben Reyes 3en

View GitHub Profile
</style>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" charset="UTF-8"></script>
<script type="text/javascript">
setTimeout(function(){
var email_confirmation = '<div style="margin-top: 12px;"><label for="email_confirmation">Email confirmation:<abbr title="Required">*</abbr></label><input id="email_confirmation" name="email_confirmation" required="required" title="Please fill out this field." type="email"><div class="validation error" id="conformation_validation" style="display: block;"></div></div>';
$(".two_across").append(email_confirmation);
$("#ticket_submission form").submit(function(e){
@3en
3en / autobackupmongo.rb
Created August 18, 2011 18:06 — forked from lajunta/autobackupmongo.rb
auto backup mongo (ruby version and very concise)
# Instead of backing up on set days this will check the time differences
# between the last backup and the time the script running.
# Useful if you're backing up irregularly on a laptop
#!/usr/local/ruby/bin/ruby -w
require 'time'