This file contains hidden or 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
aws: | |
access_key: 'myKey' | |
secret_key: 'mySecretKey+TjnS' | |
region: 'us-east-1' | |
bucket: 'myBucket' | |
bucket_path: 'myPath' | |
app: | |
versions_to_keep: 10 | |
app_name: 'myAppName' |
This file contains hidden or 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
[core] | |
repositoryformatversion = 0 | |
filemode = true | |
bare = false | |
logallrefupdates = true | |
ignorecase = true | |
precomposeunicode = false | |
[remote "origin"] | |
url = https://[email protected]/iamnotyou/le-large-projet.git |
This file contains hidden or 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
// Add salat and casbah to your build.scala or build.sbt files. | |
object ElBuild extends Build { | |
val Organization = "your own" | |
val Version = "0.0.1-SNAPSHOT" | |
val ScalaVersion = "2.10.3" | |
val ScalatraVersion = "2.2.1" | |
resolvers += "Maven Central Server" at "http://repo1.maven.org/maven2" | |
resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots" |
This file contains hidden or 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.ComponentModel.Composition; | |
using System.Linq; | |
using System.Reflection; | |
using System.Text; | |
using Common; | |
using Funq; | |
using ServiceStack.ServiceHost; | |
using ServiceStack.ServiceInterface; |
This file contains hidden or 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.Linq; | |
using System.Reflection; | |
using System.Text; | |
using ServiceStack.ServiceHost; | |
namespace Common | |
{ | |
public interface IComposobaleBootstrapper |
This file contains hidden or 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.IO; | |
using Nancy; | |
using Nancy.ViewEngines; | |
namespace Web.Modules | |
{ | |
public static class ModuleExtensions | |
{ | |
public static string RenderRazorViewToString(this NancyModule module, string viewName, object model) | |
{ |
This file contains hidden or 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.ComponentModel.Composition; | |
using System.ComponentModel.Composition.Hosting; | |
using System.IO; | |
using System.Linq; | |
using System.Configuration; | |
using System.Collections.Generic; | |
using System.Web.Mvc; | |
using Common; | |
using ServiceStack.Mvc; |
This file contains hidden or 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.Linq; | |
using System.Text; | |
using System.Threading; | |
using Microsoft.SqlServer.Management.Common; | |
using Microsoft.SqlServer.Management.Smo; | |
public class Restorinator{ | |
This file contains hidden or 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 static class AwsExtensions | |
{ | |
public static string Upload(this AmazonS3 client,UploadImageRequest request) | |
{ | |
var uploadRequest = new PutObjectRequest { InputStream = request.Image }; | |
uploadRequest.WithBucketName(request.Bucket).WithKey(request.FileIdentifier); | |
var response = client.PutObject(uploadRequest); |
This file contains hidden or 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
var resetEvent = new ManualResetEvent(false); | |
ThreadPool.QueueUserWorkItem( | |
arg => | |
{ | |
var task = new MyTaskRunner(); | |
task.Run(data); | |
resetEvent.Set(); | |
}); |