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
/** | |
* Created with JetBrains WebStorm. | |
* User: unicoletti | |
* Date: 8/21/12 | |
* Time: 11:00 AM | |
* To change this template use File | Settings | File Templates. | |
*/ | |
AA={}; |
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/bash | |
# | |
# Template SUSE system startup script for example service/daemon salt-minion | |
# Copyright (C) 1995--2005 Kurt Garloff, SUSE / Novell Inc. | |
# | |
# This library is free software; you can redistribute it and/or modify it | |
# under the terms of the GNU Lesser General Public License as published by | |
# the Free Software Foundation; either version 2.1 of the License, or (at | |
# your option) any later version. | |
# |
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"?> | |
<xsl:stylesheet | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:opennms="http://xmlns.opennms.org/xsd/config/poller" | |
version="1.0"> | |
<xsl:template match="opennms:service"> | |
<xsl:if test="contains(@name, 'Windows')"> | |
<xsl:element name="detector"> | |
<xsl:attribute name="class">org.opennms.netmgt.provision.detector.snmp.Win32ServiceDetector</xsl:attribute> |
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
snmp_ro_community: xxxxxxx | |
snmp_management_station: 10.0.0.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
import java.net.URL | |
import com.vmware.vim25.* | |
import com.vmware.vim25.mo.* | |
/* | |
Example invocation: | |
groovy -cp lib/dom4j-1.6.1.jar:lib/vijava50120120518.jar Sample.groovy 1 2 3 websphere "Network adapter 1" DMZ | |
*/ |
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 %} |
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
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
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
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 |