Skip to content

Instantly share code, notes, and snippets.

View orrsella's full-sized avatar

Orr Sella orrsella

View GitHub Profile
@orrsella
orrsella / init.d-script.sh
Last active August 2, 2020 05:43
Init.d Script
#!/bin/bash
START_SCRIPT={{ start_script }}
PID_FILE={{ pid_file }}
# ***********************************************
# ***********************************************
ARGS="" # optional start script arguments
DAEMON=$START_SCRIPT
@orrsella
orrsella / start.sh
Last active August 2, 2020 05:43
Start Script
#!/bin/bash
MAIN_CLASS={{ main_class }}
APP_CONFIG={{ app_config }}
LOG_CONFIG={{ log_config }}
BIN_DIR={{ bin_dir }}
# ***********************************************
# ***********************************************
@orrsella
orrsella / MyClass.scala
Created July 21, 2014 08:12
Specs2 Intro & Examples
package com.example
class MyClass {
def hello = "Hello world"
def prime = 11
def isAwesome = true
}
@orrsella
orrsella / notepad.html
Last active March 13, 2022 21:29
Simple in-browser html notepad
data: text/html,
<html>
<head>
<title>Notepad</title>
<link rel="icon" type="image/png" href="http://icons.iconarchive.com/icons/hopstarter/sleek-xp-software/256/Notepad-icon.png">
<script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#text').bind('keyup', function() {
var content = $(this).val();
@orrsella
orrsella / sbt-global-plugin.md
Last active December 12, 2015 00:18
Instructions on how to reproduce sbt global plugin reload bug.