Skip to content

Instantly share code, notes, and snippets.

View litodam's full-sized avatar

Pablo "Lito" Damiani litodam

  • SOUTHWORKS
  • Buenos Aires, Argentina
  • X @litodam
View GitHub Profile
@litodam
litodam / jira-velocity-planning.js
Created December 14, 2019 02:29
Velocity Planning for Jira Scrum Boards - Tampermonkey script
// ==UserScript==
// @name Velocity Planning for Jira Scrum Boards
// @namespace http://tampermonkey.net/
// @version 0.1.15
// @description Velocity Planning for Jira Scrum Sprints Boards
// @author litodam
// @match https://*.atlassian.net/secure/RapidBoard.jspa*
// @grant none
// ==/UserScript==
@litodam
litodam / InMemoryCacheHelper.cs
Last active August 2, 2017 19:32
MemoryCacheHelper<T>
using System;
using System.Runtime.Caching;
using System.Threading.Tasks;
namespace Helpers
{
public static class MemoryCacheHelper
{
public const int DefaultMinutesToCache = 60;
@litodam
litodam / Settings.StyleCop
Created July 19, 2017 15:11
Default stylecop settings
<StyleCopSettings Version="105">
<Parsers>
<Parser ParserId="StyleCop.CSharp.CsParser">
<ParserSettings>
<BooleanProperty Name="AnalyzeDesignerFiles">False</BooleanProperty>
</ParserSettings>
</Parser>
</Parsers>
<Analyzers>
<Analyzer AnalyzerId="StyleCop.CSharp.DocumentationRules">
@litodam
litodam / New-SelfSignedCertificate.ps1
Last active June 8, 2017 03:02
Create Self-signed certificate for IIS (with Subject Alternative Name)
# Requires PowerShell to be run as Admin.
New-SelfSignedCertificate -CertStoreLocation cert:\localmachine\my -Provider "Microsoft Enhanced RSA and AES Cryptographic Provider" -Subject "cn=lito.com" -DnsName "lito.com" -KeyDescription "lito.com" -NotBefore (Get-Date).AddDays(-1) -NotAfter (Get-Date).AddYears(2) -FriendlyName "Self Signed Cert for lito.com"
# After creating it open the Certificate Store and copy the cert under Trusted Root Certificate Authorities
##
# Create new Service Principal with Cert configured
##
Login-AzureRmAccount -SubscriptionId XXXXXXXX-XXXX-XXXX-XXXX-86b9ebca2d13
# $credValue comes from the previous script and contains the X509 cert we wish to use.
# $validFrom comes from the previous script and is the validity start date for the cert.
# $validTo comes from the previous script and is the validity end data for the cert.
@litodam
litodam / Create-SelfSignedCert.ps1
Created November 15, 2016 18:27 — forked from sjwaight/Create-SelfSignedCert.ps1
Shows how we can generate a self-signed certificate for use with an Azure AD Service Principal
# Requires PowerShell to be run as Admin-level user.
New-SelfSignedCertificate -CertStoreLocation cert:\localmachine\my -Provider "Microsoft Enhanced RSA and AES Cryptographic Provider" `
-Subject "cn=mydemokvcert" -KeyDescription "Used to access Key Vault" `
-NotBefore (Get-Date).AddDays(-1) -NotAfter (Get-Date).AddYears(2)
# PSParentPath: Microsoft.PowerShell.Security\Certificate::LocalMachine\my
#
#Thumbprint Subject
#---------- -------
@litodam
litodam / removeBotCommentsFromGitHubPR.tampermonkey.js
Created November 25, 2014 19:57
Removes 'acomghbot' comments from Pull Request view in GitHub to make it easier to parse the feedback
// ==UserScript==
// @name Remove 'acomghbot' comments from Pull Request view in GitHub
// @namespace http://your.homepage/
// @version 0.1
// @description Removes 'acomghbot' comments from Pull Request view in GitHub to make it easier to parse the feedback
// @author You
// @match https://github.com/Azure/acom/pull/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js
// @grant none
// ==/UserScript==
// ==UserScript==
// @name GitHub plain issues list
// @namespace some namespace
// @version 0.1
// @description some description
// @match https://github.com/*
// @copyright 2014+, Jorge Rowies
// ==/UserScript==
var htmlList = "";
#NOTE: This script is based on the Microsoft provided guidance example at
# https://www.windowsazure.com/en-us/develop/net/common-tasks/continuous-delivery/.
Param(
[parameter(Mandatory=$true)]
$serviceName,
[parameter(Mandatory=$true)]
$storageAccountName,
[parameter(Mandatory=$true)]
$storageAccountKey,
@litodam
litodam / PushAllBranches.cmd
Last active December 10, 2015 13:09
Git commands
REM git clone repo --mirror first
REM If running this in a batch file, replace %R by %%R
for /F "tokens=1 delims=/" %R in ('git branch') do git push github %R --tags