Skip to content

Instantly share code, notes, and snippets.

View rjmurillo's full-sized avatar
💭
I may be slow to respond.

Richard Murillo rjmurillo

💭
I may be slow to respond.
View GitHub Profile

Fiduciary License Agreement 2.0

based on the

Individual Contributor Exclusive License Agreement

(including the Traditional Patent License OPTION)

Thank you for your interest in contributing to Richard Murillo's Effective C# Analyzers ("We" or "Us").

@rjmurillo
rjmurillo / pack-man.ps1
Last active July 31, 2020 13:11
Useful Package Manager console commands
Get-Project –All | Add-BindingRedirect
# On large projects commands like `Update-Package -Reinstall` can take HOURS
# If the updates are broken up, then don't lock up the IDE and complete much faster (minutes vs hours)
# Reinstall all packages that match a specific targetFramework
# Useful when retargeting
gci -recurse packages.config | % { [xml]$XmlDocument = Get-Content -Path $_.FullName; $XmlDocument.packages.package | ? { $_.targetFramework -eq 'net462' } | select id | sort-object -unique | % { update-package -reinstall $_.id } }
# Reinstall all packages that have been marked with requireReinstallation
@rjmurillo
rjmurillo / Expire.sh
Created March 26, 2016 01:53
LUA script to expire multiple keys in Redis by pattern
EVAL "for i, name in ipairs(redis.call('KEYS', 'user:*')) do redis.call('expire', name, 0); end" 0
@rjmurillo
rjmurillo / BoxStarter.ps1
Last active June 30, 2016 19:32
First BoxStarter Script
# START http://boxstarter.org/package/url?
# Initial Windows Config
Update-ExecutionPolicy Unrestricted
Set-ExplorerOptions -showFileExtensions
Enable-RemoteDesktop
Disable-GameBarTips
# Windows Features and Extras
cinst sudo