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 http = require('http'), | |
sys = require( 'sys' ), | |
httpProxy = require( 'http-proxy' ) | |
var _port; | |
var _server; | |
var proxy; | |
exports.setProxy = function(server,port) { | |
_port = parseInt( port ); |
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 Connect = require('connect'); | |
var sys = require('sys'); | |
var MemoryStore = require('connect/middleware/session/memory'); | |
function handleLogin( json, req, res, next ) { | |
sys.puts( "In handle login" ); | |
req.sessionStore.regenerate(req, function(err){ | |
req.session.profile = json.profile; | |
req.session.username = json.profile.displayName; | |
next(); |
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
exports.handler = function(func) { | |
return function(req, res, next ) { | |
var profile = { 'profile' : | |
{ 'displayName' : ('fakedUsername' + parseInt( Math.random() * 1000 ) ), | |
'email' : '[email protected]' } };; | |
func( profile, req, res, next ); | |
}; | |
} |
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
exports.setProxy = function(server,port) { | |
_port = parseInt( port ); | |
_server = server; | |
proxy = httpProxy.HttpProxy; | |
} | |
exports.handler = function( request, response, next ) { | |
proxy.watch(request,response); | |
if( request.profile || request.session.profile ) { |
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 | |
encoded=`cat` | |
file=/home/example/`date "+%s"`.txt | |
echo $encoded > $file | |
# Use curl to send the data to our server | |
curl "http://example.com/mail/receive" --data-urlencode email_data@$file | |
# comment this out if you want to keep the file for debugging | |
unlink $file |
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
alias_database = hash:/etc/aliases | |
alias_maps = hash:/etc/aliases | |
append_dot_mydomain = no | |
biff = no | |
config_directory = /etc/postfix | |
inet_interfaces = all | |
mailbox_size_limit = 0 | |
mydestination = hardy2, vivoh, localhost.localdomain, localhost | |
myhostname = vivoh.com | |
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 |
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
Chris-Dawsons-MacBook-Pro:node-proxy xrdawson$ . ~/.nvm/nvm.sh | |
Chris-Dawsons-MacBook-Pro:node-proxy xrdawson$ nvm use v0.2.6 | |
v0.2.6 version is not installed yet | |
Chris-Dawsons-MacBook-Pro:node-proxy xrdawson$ ls ~/.nvm/ | |
README.markdown package.json v0.1.102 v0.1.97 v0.2.0 | |
nvm.sh src v0.1.94 v0.1.99 v0.2.6 |
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
cdawson@vivoh:~$ sudo apt-get upgrade | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
The following packages have been kept back: | |
linux-image linux-image-generic | |
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. | |
4 not fully installed or removed. | |
After this operation, 0B of additional disk space will be used. | |
Do you want to continue [Y/n]? y |
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
outreach@woven-live:~/Outreach/live-manager$ rake db:migrate --trace | |
(in /home/outreach/Outreach/live-manager) | |
** Invoke db:migrate (first_time) | |
** Invoke environment (first_time) | |
** Execute environment | |
rake aborted! | |
uninitialized constant I18n::Backend::Fallbacks | |
/home/outreach/Outreach/live-manager/vendor/rails/activesupport/lib/active_support/dependencies.rb:440:in `rescue in load_missing_constant' | |
/home/outreach/Outreach/live-manager/vendor/rails/activesupport/lib/active_support/dependencies.rb:436:in `load_missing_constant' | |
/home/outreach/Outreach/live-manager/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing_with_dependencies' |
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
<?xml version="1.0" encoding="utf-8"?> | |
<wsdl:definitions xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://tempuri.org/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> | |
<wsdl:types> | |
<s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/"> | |
<s:element name="Authenticate"> | |
<s:complexType> | |
<s:sequence> | |
<s:element minOccurs="0" maxOccurs="1" name="sessionID" type="s:string" /> | |
</s:sequence> | |
</s:complexType> |