Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#######################################################################
# This is a helper script that keeps snapraid parity info in sync with
# your data and optionally verifies the parity info. Here's how it works:
# 1) Shuts down configured services
# 2) Calls diff to figure out if the parity info is out of sync.
# 3) If parity info is out of sync, AND the number of deleted or changed files exceed
# X (each configurable), it triggers an alert email and stops. (In case of
# accidental deletions, you have the opportunity to recover them from
# Description: Boxstarter Script
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
# start http://boxstarter.org/package/nr/url?<URL-TO-RAW-GIST>
#---- TEMPORARY ---
Disable-UAC
#--- Windows subsystems/Features ---
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
<xunit>
<assemblies>
<assembly filename="IMImobile.Nancy.Sessions/bin/Release/IMImobile.Nancy.Sessions.Tests.dll" />
</assemblies>
</xunit>
public class HomeModule : NancyModule
{
public HomeModule()
{
Get["/"] = _ =>
{
Session["sometempvariable"] = "firstvalue";
return View["someform"];
};
Post["/"] = _ =>
@mrb0nj
mrb0nj / mono.rb
Created January 24, 2014 09:31
Homebrew install Patched Mono 3.2.6
require 'formula'
class Mono < Formula
url 'http://download.pokorra.de/mono/tarballs/mono-3.2.6.tar.bz2'
homepage 'http://www.mono-project.com/Release_Notes_Mono_3.2'
sha1 'fd40c7ec7b91986ebcc06474d2891112b91a8882'
def install
args = ["--prefix=#{prefix}",
"--enable-nls=no"]