Skip to content

Instantly share code, notes, and snippets.

View Protiguous's full-sized avatar

Protiguous Protiguous

View GitHub Profile
@Protiguous
Protiguous / BaseNotifyModel.cs
Created September 4, 2022 02:45 — forked from RupertAvery/BaseNotifyModel.cs
WPF ListView Binding
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace WPFSample
{
public class BaseNotifyModel : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
protected void OnPropertyChanged([CallerMemberName] string name = null)
@Protiguous
Protiguous / Draw BrentOzar.sql
Last active November 17, 2019 18:33 — forked from SQLAdrian/drawbrent.sql
Let's draw Brent
/*Adrian Sullivan - 2019/11/15 Fun with polygons.*/
/*Thanks to Michael J Swart for all the awesome work on color
https://michaeljswart.com/
*/
DECLARE @tt table(id int identity(0,1), label VARCHAR(50), gg GEOMETRY)
SET NOCOUNT ON
DECLARE @g geometry = 'POLYGON((-121.97087 37.372518,-121.97087 37.372518,-121.970863 37.372517,-121.970845 37.372515,-121.97087 37.372518))'
@Protiguous
Protiguous / FullDBBackup.ps1
Created November 9, 2019 01:17 — forked from AdamLJohnson/FullDBBackup.ps1
Powershell script to backup all SQL Databases on a server. Useful for SQL Express.
$serverName = ".\SQLExpress"
$backupDirectory = "D:\backupSQL"
$daysToStoreDailyBackups = 7
$daysToStoreWeeklyBackups = 28
$monthsToStoreMonthlyBackups = 3
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SMO") | Out-Null
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SmoExtended") | Out-Null
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.ConnectionInfo") | Out-Null
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SmoEnum") | Out-Null