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 minimatch = require("minimatch"); | |
var url=require('url'); | |
/* | |
Example usage: | |
app.use(auth( | |
true, // disable access by default | |
[ | |
{path:"/j_security_check", roles:["EVERYONE"]}, |
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": "Mappu Backend", | |
"version": "0.0.1", | |
"private": true, | |
"scripts": { | |
"start": "node app" | |
}, | |
"dependencies": { | |
"express": "3.1.0", | |
"jade": "*", |
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
MyApp.CheckableListItemView = SC.ListItemView.extend({ | |
/** @private in SC.ListItemView | |
* | |
* Overridden here to handle events on checkbox | |
*/ | |
mouseUp: function(evt) { | |
var ret = sc_super(); | |
// check event was on checkbox | |
if(this._isInsideCheckbox(evt)) { | |
var pane = this.get('pane'), |
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
/******************** | |
Core.js | |
********************/ | |
MyApp = SC.Application.create( | |
/** @scope MyApp.prototype */ { | |
NAMESPACE: 'MyApp', | |
VERSION: '0.1.0', | |
store: SC.Store.create().from(SC.Record.fixtures) |
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
Interval 10 | |
LoadPlugin logfile | |
#LoadPlugin write_graphite | |
LoadPlugin csv | |
LoadPlugin threshold | |
LoadPlugin exec | |
LoadPlugin tail | |
<Plugin "logfile"> |
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
Set FSO = CreateObject("scripting.filesystemobject") | |
Set objShell = WScript.CreateObject("WScript.Shell") | |
strDesktop = objShell.SpecialFolders("Desktop") | |
' Could you believe this is a comment? I know, vbs sucks | |
' | |
' The following is a dictionary of dictionaries. | |
' The first dictionary is keyed by group name (case sensitive!) | |
' while the second holds the attributes for the link to be created. | |
' With the example cfg below the script will create a link on the desktop |
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
package java.is.awesome; // joking | |
import org.apache.commons.httpclient.URIException; | |
import org.apache.commons.httpclient.util.URIUtil; | |
import org.apache.commons.io.IOUtils; | |
import org.apache.log4j.Logger; | |
import javax.servlet.ServletInputStream; | |
import javax.servlet.http.*; | |
import java.io.*; | |
import java.security.Principal; |
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
import org.mappu.* | |
import org.codehaus.groovy.grails.commons.ApplicationHolder | |
import liquibase.* | |
import liquibase.util.NetUtil | |
import liquibase.database.DatabaseFactory; | |
import grails.util.Environment | |
class BootStrap { | |
def dataSource |
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
/* | |
* The code below show how to hook into the standard ListItemView implementation | |
* to add support for events generated on the right icon. | |
* | |
* Specify a rightIconTarget/rightIconAction on the ListView definition as you would | |
* normally do for action/target. | |
* | |
*/ | |
P.CustomListItemView = SC.ListItemView.extend({ | |
/** @private in SC.ListItemView |
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
@ in soa localhost. root 1 3H 15M 1W 1D | |
ns localhost. | |
{% set nets=salt['publish.publish']('*','network.interfaces') %}{% for n in nets %}{% set pdata=salt['publish.publish'](n,'pillar.data') %}{% if pdata.has_key(n) %}{% if pdata[n].has_key('zone') %}{% if pdata[n]['zone']=='linuxservers' %} | |
{{ n }} IN A {{ nets[n]['eth0']['inet'][0]['address'] }} | |
{% endif %}{% endif %}{% endif %}{% endfor %} |