Skip to content

Instantly share code, notes, and snippets.

This script enables you stop and start Symantec Endpoint Protection on OS X

Installation

sudo curl https://gist.githubusercontent.com/steve-jansen/61a189b6ab961a517f68/raw/sep -o /usr/local/bin/sep
sudo chmod 755 /usr/local/bin/sep
sudo chown root:staff /usr/local/bin/sep
<keymap>
<global>
<remote>
<Yellow>RunScript("/storage/.xbmc/userdata/keymaps/sound.py")</Yellow>
</remote>
</global>
</keymap>
# Run this with jboss-cli to deplyo the given module:
module add --name=com.mydomain.placeholder --resources=placeholder\target\placeholder-6.6.6-SNAPSHOT.jar
/subsystem=ee:write-attribute(name="global-modules",value=[{"name" => "com.mydomain.placeholder","slot" => "main"}])
@oscarrenalias
oscarrenalias / type-bounds.scala
Created October 4, 2012 18:50 — forked from retronym/type-bounds.scala
Tour of Scala Type Bounds
class A
class A2 extends A
class B
trait M[X]
//
// Upper Type Bound
//
def upperTypeBound[AA <: A](x: AA): A = x
//
// How to start the embedded H2 web server in a Play Scala application
//
org.h2.tools.Server.startWebServer(play.api.db.DB.getConnection()(play.api.Play.current))
// the browser should automatically open but if not, the correct URL is http://192.168.255.11:58024/
// alternatively, this code only starts the web server (and the connection data must be manually provided). The
// correct port is 8082
@oscarrenalias
oscarrenalias / pom.xml
Created October 4, 2011 17:33 — forked from lobster1234/pom.xml
Maven pom.xml compatible with Scala 2.9.1 with updated dependency versions. This is needed because the archetype:generate for scala-archetype-simple will be 2.8 and the tests will fail with 2.9.1.
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>net.manish</groupId>
<artifactId>scala-simple</artifactId>
<version>1.0-SNAPSHOT</version>
<name>${project.artifactId}</name>
<description>My wonderfull scala app</description>
<inceptionYear>2010</inceptionYear>
<licenses>
<license>