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/sh | |
# Installs tarsnap client on Debian and Ubuntu | |
# | |
# You'll need to setup an account at | |
# http://www.tarsnap.com | |
# and load it with some funds | |
# | |
# Make sure you run this as root | |
# |
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
var fs = require('fs'); | |
var email_file = process.argv[2]; | |
var ws = fs.createWriteStream('/var/node/log.txt', {flags: 'a+', mode: 0666}); | |
ws.write(email_file + ' ' + new Date() + " \n", 'utf8'); | |
var http = require('http'); | |
try { | |
var mail_server = http.createClient(3000, 'mail.example.com'); | |
var request = mail_server.request('POST', '/services/1.0/rest/mail/', {host: 'mail.example.com'}); |
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
# This controller handles the login/logout function of the site. | |
class SessionsController < ApplicationController | |
# Be sure to include AuthenticationSystem in Application Controller instead | |
include AuthenticatedSystem | |
layout nil | |
# render new.rhtml | |
def new | |
end | |
def create |