This file contains 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
[ryankirkman@cloud9]:/workspace$ npm install | |
npm ERR! Error: No compatible version found: trycatch@'>=0.1.0- <0.2.0-' | |
npm ERR! Valid install targets: | |
npm ERR! ["0.0.1","0.0.2","0.0.3","0.0.4","0.0.5","0.0.6","0.0.7","0.0.8","0.0.9"] | |
npm ERR! at installTargetsError (/mnt/ws/users/ryankirkman/npm/lib/cache.js:424:10) | |
npm ERR! at /mnt/ws/users/ryankirkman/npm/lib/cache.js:406:17 | |
npm ERR! at saved (/mnt/ws/users/ryankirkman/npm/lib/utils/npm-registry-client/get.js:136:7) | |
npm ERR! at Object.cb [as oncomplete] (/mnt/ws/users/ryankirkman/npm/node_modules/graceful-fs/graceful-fs.js:36:9) | |
npm ERR! Report this *entire* log at: | |
npm ERR! <http://github.com/isaacs/npm/issues>; |
This file contains 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
using System; | |
using System.Linq.Expressions; | |
using System.Web.Mvc; | |
namespace MvcHtmlHelpers | |
{ | |
public static class HtmlHelperExtensions | |
{ | |
/// <summary> | |
/// Return the raw DisplayName attribute of a property of a Model, |
This file contains 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"?> | |
<configuration> | |
<configSections> | |
<sectionGroup name="elmah"> | |
<section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah" /> | |
<section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah" /> | |
<section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah" /> | |
<section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah" /> | |
</sectionGroup> | |
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /> |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<link rel="dns-prefetch" href="//code.jquery.com"> | |
<!-- Ensure we set a viewport so everything scales appropriately on mobile devices. --> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> |
This file contains 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
/* F - Red Theme - Extended from: https://gist.github.com/909284 | |
-----------------------------------------------------------------------------------------------------------*/ | |
.ui-bar-f { | |
border: 1px solid #A60000; | |
background: #FF0000; | |
color: #ffffff; | |
font-weight: bold; | |
text-shadow: 0 -1px 1px #BF3030; | |
background-image: -webkit-gradient(linear, left top, left bottom, from( #FF7373 /*{a-bar-background-start}*/), to( #FF4040 /*{a-bar-background-end}*/)); /* Saf4+, Chrome */ |
This file contains 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 cluster = require('cluster'); | |
cluster('./app') | |
.set('socket path', '/tmp') | |
.use(cluster.logger('logs')) | |
.use(cluster.stats()) | |
.use(cluster.pidfiles('pids')) | |
.use(cluster.cli()) | |
.use(cluster.repl(8888)) | |
.listen(3000); |
This file contains 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
Cluster detected over 20 worker deaths in the first | |
20 seconds of life, there is most likely | |
a serious issue with your server. | |
aborting. | |
info [90m- master started[0m | |
info [90m- worker 0 spawned[0m | |
info [90m- worker 1 spawned[0m |
This file contains 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
[Thu, 19 May 2011 18:18:04 GMT] INFO spawned worker 0 | |
[Thu, 19 May 2011 18:18:04 GMT] ERROR worker 3 died | |
[Thu, 19 May 2011 18:18:04 GMT] INFO spawned worker 3 | |
[Thu, 19 May 2011 18:18:04 GMT] ERROR worker 1 died | |
[Thu, 19 May 2011 18:18:04 GMT] INFO spawned worker 1 | |
[Thu, 19 May 2011 18:26:00 GMT] INFO master started | |
[Thu, 19 May 2011 18:26:00 GMT] INFO spawned worker 0 | |
[Thu, 19 May 2011 18:26:00 GMT] INFO spawned worker 1 | |
[Thu, 19 May 2011 18:26:00 GMT] INFO spawned worker 2 | |
[Thu, 19 May 2011 18:26:00 GMT] INFO spawned worker 3 |
This file contains 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
TypeError: Object #<Object> has no method 'on' | |
at Worker.start (./node_modules/cluster/lib/worker.js:83:17) | |
at Socket.<anonymous> (./node_modules/cluster/lib/master.js:258:16) | |
at Socket.emit (events.js:61:17) | |
at Socket._onConnect (net.js:587:12) | |
at IOWatcher.onWritable [as callback] (net.js:186:12) | |
Error: Socket is not writable | |
at Socket._writeOut (net.js:392:11) | |
at Socket.write (net.js:378:17) |
This file contains 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 | |
## Save cookies to the "cookies.txt" file | |
## Assumes the web service expects username | |
## and password in a JSON object, submitted via POST. | |
curl --cookie-jar cookies.txt -H "Content-Type: application/json" -X POST http://localhost:3000/user/login -d "{\"username\": \"YOURUSERNAME\", \"password\": \"YOURPASSWORD\"}" | |
## Now to use the authenticated session: | |
## (Assuming your web service speaks JSON) | |
curl --cookie cookies.txt -X GET http://localhost:3000/user/SOMEID |