Skip to content

Instantly share code, notes, and snippets.

Daniel Hazelbaker cabal95

Block or report user

Report or block cabal95

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cabal95
cabal95 / RockIt-SDK-Upgrade.md
Last active Mar 24, 2017
Steps I had to take to upgrade RockIt SDK from 5.0 to 6.2
View RockIt-SDK-Upgrade.md
  1. Take a snapshot of your dev environment. I had to roll back a couple times even with following these steps.
  2. 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).
  3. Update all projects in solution that reference RockWeb DLLs to be set to Copy Local = False
  4. 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.
@cabal95
cabal95 / SetupLinks.ps1
Last active Mar 26, 2018
PoweShell script to setup Hard Links for RockRMS Plugin
View SetupLinks.ps1
View mac-bootstrap.command
#!/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').
@cabal95
cabal95 / vm-backup.sh
Created Jul 25, 2015
I use this script to backup my QEMU/KVM/libVirt virtual machines. The script requires KVM 2.1+ since it uses the live blockcommit mode. This means the data in the snapshot disk is rolled back into the original instead of the other way around. Script does NOT handle spaces in paths.
View vm-backup.sh
#!/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
@cabal95
cabal95 / pro_tools_12_munki.sh
Last active Dec 29, 2016 — forked from rmanly/pro_tools_11_munki.sh
Updated script to work with Pro Tools 12
View pro_tools_12_munki.sh
#!/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"
@cabal95
cabal95 / rsnapshot-postflight.sh
Created Jul 26, 2014
Create user-friendly symlinks for rsnapshot names
View rsnapshot-postflight.sh
#!/bin/sh
#
DIR="/mnt/servers/snapshots"
#
# Remove all existing symlinks.
#
for f in "$DIR"/*; do
if [ -L "$f" ]; then rm -f "$f"; fi
@cabal95
cabal95 / update_memberUid_to_member
Last active Jun 9, 2018
Give Apple Open Directory the member and memberOf attributes.
View update_memberUid_to_member
#!/bin/sh
#
LDAPURI="ldapi://%2Fvar%2Frun%2Fldapi"
BASEDN="dc=hdcnet,dc=org"
GROUPDN="cn=groups,$BASEDN"
USERDN="cn=users,$BASEDN"
#
@cabal95
cabal95 / diskerror.rb
Created Mar 30, 2014
Sample Facter plugin for sal that checks for disk I/O errors in the system.log and reports them.
View diskerror.rb
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
You can’t perform that action at this time.