Skip to content

Instantly share code, notes, and snippets.

if not OBJECT_ID('dbo.Proc_BackupDatabaseDailyWithLog') is null
Drop Proc dbo.Proc_BackupDatabaseDailyWithLog
go
Create Proc dbo.Proc_BackupDatabaseDailyWithLog(
@DbName sysname,
@TargetPath nvarchar(1000)) as
if not OBJECT_ID('dbo.Proc_BackupDatabaseDailyWithLog') is null
Drop Proc dbo.Proc_BackupDatabaseDailyWithLog
go
Create Proc dbo.Proc_BackupDatabaseDailyWithLog(
@DbName sysname,
@TargetPath nvarchar(1000)) as
namespace WpfApplication1
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows;
using DevExpress.Xpo;
using DevExpress.Xpo.DB;
; ==========================================================
; Config file for .NET Reflector including assembly lists
; for several versions of DevExpress XAF.
;
; Copy this file to:
; %LocalAppData%\Red Gate\.NET Reflector 8\Reflector.cfg
; ==========================================================
[AssemblyBrowser]
AssemblyList="DevExpress 13.2"
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Linq.Expressions;
namespace TechTalk.SpecFlow.ObjectConversion
{
public static class ObjectConverterExtensions
{
# Boxstarter script for blog post http://blog.zerosharp.com/provisioning-a-new-development-machine-with-boxstarter
# Allow reboots
$Boxstarter.RebootOk=$true
$Boxstarter.NoPassword=$false
$Boxstarter.AutoLogin=$true
# Basic setup
Update-ExecutionPolicy Unrestricted
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
@LSTANCZYK
LSTANCZYK / MimeMap.cs
Last active August 29, 2015 14:07 — forked from atifaziz/MimeMap.cs
#region Imports
using System;
using System.Collections.Generic;
using System.Linq;
using System.Collections;
using System.Configuration;
using System.IO;
#endregion
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
namespace Thinktecture.Helpers
{
public class MimeTypeLookup
{
function ZipFiles($zipfilename, $sourcedir)
{
[Reflection.Assembly]::LoadWithPartialName("System.IO.Compression.FileSystem")
$compressionLevel = [System.IO.Compression.CompressionLevel]::Optimal
[System.IO.Compression.ZipFile]::CreateFromDirectory($sourcedir, $zipfilename, $compressionLevel, $false)
}
# Step 1 - Sign all output assemblies
# TODO
# The version number for this release
$versionNumber = $Env:APPVEYOR_BUILD_VERSION
# The Commit SHA for corresponding to this release
$commitId = $Env:APPVEYOR_REPO_COMMIT
# The notes to accompany this release, uses the commit message in this case
$releaseNotes = $Env:APPVEYOR_REPO_COMMIT_MESSAGE
# The folder artifacts are built to
$artifactOutputDirectory = $Env:APPVEYOR_BUILD_FOLDER
# The name of the file to attach to this release
$artifact = 'xunit-build-runner.zip'