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
~/Software/Clojure/pallet-crate-tomcat7-demo]lein run | |
16:35:14.723 [main] DEBUG pallet.compute.jclouds - extensions (:slf4j :sshj) | |
16:35:14.734 [main] DEBUG pallet.compute.jclouds - options [] | |
16:35:17.279 [main] DEBUG pallet.core - pallet version: 0.7.2 | |
16:35:17.290 [main] INFO pallet.core - retrieving nodes | |
16:35:23.639 [main] INFO pallet.core - lift-nodes phases [:destroy-server], groups [] | |
Exception in thread "main" java.lang.NumberFormatException: Invalid number: 09 | |
at clojure.lang.LispReader.readNumber(LispReader.java:253) | |
at clojure.lang.LispReader.read(LispReader.java:171) | |
at clojure.lang.RT.readString(RT.java:1707) |
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
public partial class HttpRequestOverridableWrapper : HttpRequestWrapper | |
{ | |
readonly string appVirtualDir; | |
public HttpRequestOverridableWrapper(HttpRequest httpRequest, string appVirtualDir) | |
: base(httpRequest) | |
{ | |
this.appVirtualDir = appVirtualDir; | |
} | |
public override string ApplicationPath { get { return appVirtualDir; } } |
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
@model IEnumerable<string> | |
@if (Request.IsLocal | |
&& ( Request.QueryString["test"]!=null | |
|| | |
Request.QueryString.ToString().Split('&').Any(k=>k.Equals("test",StringComparison.InvariantCultureIgnoreCase)) | |
)) | |
{ | |
<div id="unit-tests"> | |
<script src='~/scripts/qunit-1.20.0.js'></script> |
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
using System; | |
using System.Reflection; | |
using System.Runtime.Caching; | |
/// <summary>Memoize the results of method calls.</summary> | |
class Cacher | |
{ | |
public readonly string UniqueName; | |
public readonly int CacheTimeSeconds; |
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
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><title>title</title></head><body>Here</body></html> |
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
param( [Parameter(Mandatory=$true)][string]$UrlToDownload ) | |
$downloadDirectory="C:\Users\Services\Downloads" | |
cd $downloadDirectory | |
write-host "" | |
write-host "" | |
write-host "Downloading $urlToDownload to $downloadDirectory ..." | |
write-host "" | |
write-host "" | |
$Error.Clear() | |
youtube-dl.exe $urlToDownload |
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
# | |
$env:Proxy="http://YOUR-CORPORATE-PROXY-HERE" ; | |
Add-Type -AssemblyName 'Microsoft.PowerShell.Commands.Utility, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' | |
function curl | |
{ | |
param( | |
[Parameter(Mandatory=$true)][string]$Uri, | |
[Object]$Body, | |
[String]$ContentType, | |
[PSCredential]$Credential, |
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
{ | |
"profiles": [ | |
{ | |
"complex_modifications": { | |
"parameters": { /* ... etc ... */ }, | |
"README": "********************************************************************************************************", | |
"README": "*" COPY JUST THE ELEMENTS OF THIS "rules" array into your profiles.complex_modifications.rules array. "*", | |
"README": "********************************************************************************************************", | |
"rules": [ |
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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using Serilog; | |
using Serilog.Configuration; | |
using Serilog.Core; | |
using Serilog.Events; | |
using Serilog.Formatting; | |
using Serilog.Formatting.Display; |
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
static class LoggingConfig | |
{ | |
/// <summary> | |
/// After calling this method, use the logger with | |
/// <code>Log.Logger....</code> | |
/// e.g. | |
/// <see cref="Log.Logger"/>.<see cref="ILogger.Debug(string,object[])"/> | |
/// </summary> | |
public static ILogger RegisterLogger(ILogger overrideLogger=null) | |
{ |
OlderNewer