- Take a snapshot of your dev environment. I had to roll back a couple times even with following these steps.
- Update all projects in solution to reference DLLs inside the RockWeb folder rather than using NuGet package references.
a. This means remove all the non-system (i.e. referencing C:\Program Files...) DLLs and re-add them to point at the RockWeb\bin*.dll version of the files.
b. You will also need to remove any packages from the packages.config of the project(s). - Update all projects in solution that reference RockWeb DLLs to be set to Copy Local = False
- Clean Solution from Build Menu
a. Set Configuration to Debug and then Clean Solution.
b. Set Configuration to Release and then Clean Solution.
c. Set Configuration back to Debug.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Project { | |
[Guid]$Id | |
[string]$Name | |
[Guid]$Type | |
[string]$ProjectFile | |
[Guid[]]$References | |
} | |
Function Get-NuGet-References { | |
param ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# Right-click in Explorer and select 'Run In Powershell' | |
# | |
# Prepares a new project for use with either RockIt development kit or a production Rock | |
# installation by setting up windows symbolic links between the project folders and their corresponding | |
# folders under the RockIt or RockWeb folders. This allows you to maintain version control through | |
# git or another system of the plugin all in one folder tree while still having them show up directly | |
# in Rock. | |
# | |
# Note: Symbolic links requires NTFS and that you authorize the script to run with elevated privileges. | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# | |
# COMPUTER_NAME_MAXLEN - Maximum length the computer name can be. If binding | |
# to Active Directory this should be 15. | |
# | |
# AD_BIND_TO_DOMAIN - If not empty, bind to the given AD domain. | |
# | |
# AD_MOBILE - Enable mobile user accounts ('enable' or 'disable'). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
BACKUPDEST="$1" | |
DOMAIN="$2" | |
MAXBACKUPS="$3" | |
if [ -z "$BACKUPDEST" -o -z "$DOMAIN" ]; then | |
echo "Usage: ./vm-backup <backup-folder> <domain> [max-backups]" | |
exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# looks like they changed they name again | |
# https://groups.google.com/forum/#!topic/munki-dev/w38roCmEgH0 | |
# I have 11.2.1.203 and it is now just 'shoe' | |
# Changed once again, 12.0.0.456 and it is 'shoetoolv120' | |
# Copy the com.avid.bsd.shoe Helper Tool | |
PHT_SHOE="/Library/PrivilegedHelperTools/com.avid.bsd.shoetoolv120" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
DIR="/mnt/servers/snapshots" | |
# | |
# Remove all existing symlinks. | |
# | |
for f in "$DIR"/*; do | |
if [ -L "$f" ]; then rm -f "$f"; fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
LDAPURI="ldapi://%2Fvar%2Frun%2Fldapi" | |
BASEDN="dc=hdcnet,dc=org" | |
GROUPDN="cn=groups,$BASEDN" | |
USERDN="cn=users,$BASEDN" | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'facter' | |
begin | |
errors = 0 | |
File.open("/var/log/system.log").each_line do |line| | |
begin | |
if ( line.chomp =~ /disk.*: I\/O error/ ) | |
errors = 1 | |
break | |
end |