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
@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>
@oscarrenalias
oscarrenalias / nodeserver.js
Created October 29, 2011 12:37
A very simple Node.js static file server, based on lightnode (https://github.com/ngspinners/lightnode)
//
// A very simple Node.js static file server and Ajax proxy, based on lightnode (https://github.com/ngspinners/lightnode)
//
// Requirements:
// Node.js
// npm for the installation of modules
// lightnode (installed via npm)
//
// How to use, with all dependencies in place:
// node nodeserver.js [/path/to/the/root/folder]
@oscarrenalias
oscarrenalias / gist:1394536
Created November 25, 2011 22:11
Command to create an SSH tunnel
ssh -i key.pem -v -2 -C -D 4567 -N user@server
-2: force SSH v2 protocol
-C: enable compression
-D <port>: use given local port
-N: do not run any command in the remote server
-v: verbose mode
@oscarrenalias
oscarrenalias / AutoHotkey.ahk
Created March 24, 2012 19:59
Remap some keys in a Russian keyboard using AutoHotkey in Windows
º::<
ª::>
<^>!º::\
<^>!.::{
<^>!-::}
//
// 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
* List of commits not pushed to origin yet:
git log origin/master..master
@oscarrenalias
oscarrenalias / git-colors.sh
Created August 24, 2012 18:22
Enabling git integration with Bash in OS X
git config --global color.branch auto
git config --global color.diff auto
git config --global color.status auto
@oscarrenalias
oscarrenalias / node-event-emitter.js
Created September 10, 2012 18:47
An example of an event emitter class in Node.js
var events = require('events'),
util = require('util');
EventGenerator = function() {
events.EventEmitter.call(this);
this.read = function() {
var data = "this is new data";
this.emit("data", data);
}
@oscarrenalias
oscarrenalias / configuration.scala
Created October 2, 2012 21:40
Type-safe configuration in Scala
trait Handler
class Handler1 extends Handler
class Handler2 extends Handler
trait HandlerConfiguration {
val handler1: Handler
val handler2: Handler
}