Skip to content

Instantly share code, notes, and snippets.

@ecko
ecko / Blackbaud CRM SDK in Visual Studio 2017.md
Last active January 21, 2021 22:50
Blackbaud CRM SDK in Visual Studio 2017

Templates

These are the items used to generate new projects and specs.
You will find a ProjectTemplates and ItemTemplates folders in the SDK directory.

Project Templates

  1. Navigate to your C:\<username>\Documents\Visual Studio 2017\Templates\ProjectTemplates folder.
  2. Create a new Blackbaud AppFx folder here.
  3. Copy the contents of BlackbaudSDK\ProjectTemplates to your new Blackbaud AppFx folder.

Item Templates

@ecko
ecko / check-service-status.ps1
Created November 11, 2016 19:34
Restart SQL service and agent if they are stopped
# restart the SQL Server (MSSQLSERVER), and SQL Server Agent (MSSQLSERVER) services on the local machine
$services = 'MSSQLSERVER', 'SQLSERVERAGENT'
Get-Service | Where {$services -contains $_.Name -and $_.Status -eq 'stopped'} | Start-Service
@ecko
ecko / list current user AD groups.ps1
Last active October 6, 2016 20:44
Gets list of AD groups for the currently logged in user
#Single line, no modules necessary, uses current logged user $($env:username), runs from other windows machines:
#source: http://serverfault.com/a/594724/75418
#$user = $($env:username)
$user = '<username>'
(New-Object System.DirectoryServices.DirectorySearcher("(&(objectCategory=User)(samAccountName=$user))")).FindOne().GetDirectoryEntry().memberOf
@ecko
ecko / nmap_ssl_enum_ciphers.sh
Created September 14, 2016 19:35
nmap - list ssl/tls protocols and ciphers used on server
nmap --script ssl-enum-ciphers -p <PORT> <ADDRESS>
//A really better and shorter way to get extension is via:
<?php $extension = end(explode('.', $filename)); ?>
//this will print the last part after the last dot :)