Skip to content

Instantly share code, notes, and snippets.

View jpritchard's full-sized avatar

Jonathan Pritchard jpritchard

View GitHub Profile
@pmanlukas
pmanlukas / github_kpis.md
Created January 9, 2020 08:28 — forked from jonico/github_kpis.md
GitHub related KPIs

GitHub Related KPIs

Source of Inspiration

screen shot 2016-06-09 at 13 12 05

Insight Partners is a VC which has companies like Twitter, Docker, BlaBlaCar, HelloFresh and bmc in their portfolio. They developed the periodic table of software development KPIs to steer their portfolio.

The KPIs used by Insight Partners are a good starter for companies who like to transform their business as they are

Sometimes, companies are worried about "reusing personal GitHub accounts", but contributing source code or reviews with an already existing account does NOT mean that

#requires -Version 5.0 -Modules AzureRM.OperationalInsights, AzureRM.profile
<#
============================================================================================================================
AUTHOR: Tao Yang
DATE: 17-12-2016
Version: 1.0
Comment:
- Create OMS saved searches to that map SCOM ACS reports that are
- Listed in Wei Hao Lim's blog post:
- https://blogs.msdn.microsoft.com/wei_out_there_with_system_center/2016/07/25/mapping-acs-reports-to-oms-search-queries/
@PlagueHO
PlagueHO / Update-Nano-Servers-using-Cim.ps1
Last active November 13, 2016 01:53
Update multiple Windows Server 2016 TP4+ Nano Servers remotely using CIM
function Get-AvailableUpdates {
[CmdletBinding()]
param (
[PSCredential] $Credential = (Get-Credential -Message 'Credentials to use to update Servers'),
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[String[]] $Servers,
[Switch] $Install,
@darrenjrobinson
darrenjrobinson / AzureRGVMPowerGo.ps1
Last active June 14, 2020 00:05
ParallelRMRGVirtualMachines
param(
[string]$power,
[string]$azureResourceGroup
)
if (!$power){Write-host "No powerstate specified. Use -Power start|stop"}
if (!$azureResourceGroup){Write-host "No Azure Resource Group specified. Use -azureResourceGroup 'ResourceGroupName'"}
# see if we already have a session. If we don't don't re-authN
if (!$AzureRMAccount.Context.Tenant) {
@joemaffia
joemaffia / AEM cURL
Last active February 27, 2025 19:28
AEM cURL commands
Uninstall a bundle (use http://localhost:4505/system/console/bundles to access the Apache Felix web console)
curl -u admin:admin -daction=uninstall http://localhost:4505/system/console/bundles/"name of bundle"
Install a bundle
curl -u admin:admin -F action=install -F bundlestartlevel=20 -F
bundlefile=@"name of jar.jar" http://localhost:4505/system/console/bundles
Build a bundle
curl -u admin:admin -F bundleHome=/apps/centrica/bundles/name of bundle -F
descriptor=/apps/centrica/bundles/com.centrica.cq.wcm.core-bundle/name_of_bundle.bnd
@nateyolles
nateyolles / curlPackageFilterRules.sh
Last active May 2, 2025 06:34
AEM/CQ cURL: Adding include/exclude rules to package filters
# Adding include/exclude rules to CQ/AEM package filters through cURL.
# Through a simple search, you will find numerous lists of CQ/AEM cURL commands.
# However, I haven't seen an example of adding rules to package filters. The
# JSON "rules" key takes an array value. You can leave the array empty if you
# don't need to include any rules. The array is of JSON objects with a
# "modifier" key and value of "include" or "exclude", and a "pattern" key with
# your path or regular expression as the value.
# create package
@floriankraft
floriankraft / JcrQueryLibrary.md
Last active July 28, 2025 14:45
Some useful JCR queries (XPATH, SQL2) for AEM/CQ development.

SQL2

All nodes with a specific name

SELECT * FROM [nt:unstructured] AS node
WHERE ISDESCENDANTNODE(node, "/search/in/path")
AND NAME() = "nodeName"

All pages below content path

Function WSUSUpdate {
$Criteria = "IsInstalled=0 and Type='Software'"
$Searcher = New-Object -ComObject Microsoft.Update.Searcher
try {
$SearchResult = $Searcher.Search($Criteria).Updates
if ($SearchResult.Count -eq 0) {
Write-Output "There are no applicable updates."
exit
}
else {
@altrive
altrive / Test-RebootRequired.ps1
Last active August 3, 2023 14:34
Check pending reboot on local computer
#Based on <http://gallery.technet.microsoft.com/scriptcenter/Get-PendingReboot-Query-bdb79542>
function Test-RebootRequired
{
$result = @{
CBSRebootPending =$false
WindowsUpdateRebootRequired = $false
FileRenamePending = $false
SCCMRebootPending = $false
}