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
{ | |
"name":"update-dtm" | |
,"version":"0.1.0" | |
,"dependencies":{ | |
"request":"2.x.x" | |
} | |
,"devDependencies":{} | |
} |
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
# Without the anonymous function wrapper, it seemed to only export the first value. | |
(-> | |
exports.getTopOfQueue = """ | |
SELECT TOP 10 | |
[Id],[CreatedOn],[LastAttemptOn],[Application],[Class],[From],[To],[Subject],[BodyUrl],[BodyHtml],[JsonDetails] | |
FROM [EmailQueue] | |
WHERE [LastAttemptOn] < DATEADD(m, -15, SYSUTCDATETIME()) | |
ORDER BY [Id] | |
""" |
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 EventEmitter = require("events").EventEmitter; | |
var util = require("util"); | |
module.exports = CardReader; | |
//the export is essentially a self-healing wrapper around the external interface... | |
function CardReader() { | |
var that = this, someProc = null; | |
loadProc(); | |
function loadProc() { |
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
@functions{ | |
string currentController = null; | |
string currentAction = null; | |
string currentModel = null; | |
private void InitVars() { | |
ViewBag.Phone = phone; | |
currentController = ViewContext.RouteData.Values["Controller"].ToString().ToLower(); | |
currentAction = ViewContext.RouteData.Values["Action"].ToString().ToLower(); |
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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Microsoft.Practices.Unity; | |
using Microsoft.Practices.Unity.Configuration; | |
using System.Configuration; | |
using System.ServiceModel; | |
using System.ServiceModel.Web; | |
using System.Runtime.Serialization; |
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.Collections.Generic; | |
using System.Configuration; | |
using System.Data.Entity; | |
using System.Data.EntityClient; | |
using System.Data.Metadata.Edm; | |
using System.Data.SqlServerCe; | |
using System.IO; | |
using System.Linq; | |
using System.Reflection; |
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
base image tracker1/nodejs -- ubuntu 12.04 w/ python 2.7, build tools and nodejs 0.10.22 | |
build docker app, from app dir :tagname | |
sudo docker build -t tracker1/nodejs-demo:1 . | |
run docker app in bg / -p ### will create random forward for port X | |
-d is daemon mode, or & at the end for background | |
sudo docker run -d -name demo1 tracker1/nodejs-demo: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
#Setup bridge for guest wifi (br1) with separate subnet/dhcp | |
# setup virtual wifi wlan0.1 | |
#the following rules go under administration -> scripts -> firewall then reboot after saving | |
#NOTE: -I inserts at the beginning be default, so restrictive rules at the top, permissive at the bottom. | |
#default deny guest | |
iptables -I FORWARD -i br1 -j DROP | |
#Removes guest access to physical network |
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
# This file describes the network interfaces available on your system | |
# and how to activate them. For more information, see interfaces(5). | |
# The loopback network interface | |
auto lo | |
iface lo inet loopback | |
# The primary network interface | |
auto eth0 |
OlderNewer