This file contains 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
site = ENV["RAILS_ENV"] | |
HumanUser.find(:all, :conditions=>{:retirement_date=>nil}).each do |u| | |
next if u.custom_home_page.nil? || ['inbox', 'my_tasks', 'new_user_welcome'].include?(u.custom_home_page.page_type) | |
data = ["DATA_LINE",site] | |
data << u.login | |
data << u.permission_rule_set.display_name | |
data << u.custom_home_page.id | |
data << u.custom_home_page.name || '' | |
data << u.custom_home_page.page_type || '' |
This file contains 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
puts "AMI count on #{ShotgunConfig.instance['hostname']}: #{ActionMenuItem.find(:all).length}" if ActionMenuItem.find(:all).length > 0 |
This file contains 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
# ------------------------------------------------------------------------------ | |
# FILE: iTunes.plugin.zsh | |
# DESCRIPTION: oh-my-zsh plugin file to control iTunes | |
# AUTHOR: Patrick Boucher ([email protected]) | |
# VERSION: 1.0 | |
# ------------------------------------------------------------------------------ | |
function play() { | |
osascript 2>/dev/null <<EOF | |
tell application "iTunes" to play |
This file contains 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
import functools | |
from win32com.client import constants as c | |
xsi = Application | |
log = xsi.LogMessage | |
INDENT = ' ' | |
This file contains 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
from win32com.client import constants as c | |
xsi = Application | |
log = xsi.LogMessage | |
def XSILoadPlugin(reg): | |
reg.Author = "pboucher" | |
reg.Name = "MatLibFix" | |
reg.Major = 1 | |
reg.Minor = 0 |
This file contains 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
SI_GLOBALS = globals().copy() | |
import traceback | |
from win32com.client import constants as c | |
xsi = Application | |
log = xsi.LogMessage | |
ACTIVE_EVENTS = [ |
This file contains 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
import pprint | |
import sys | |
import shotgun_api3 as sg | |
class Shotgun(sg.Shotgun): | |
__registry = {} | |
def __init__(self, *args, **kwargs): | |
super(Shotgun, self).__init__(*args, **kwargs) |
This file contains 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
import functools | |
xsi = Application | |
def tempSetValues(newVals): | |
def closure(func): | |
@functools.wraps(func) | |
def inner(*args, **kwargs): | |
# Save current values and set new ones | |
oldVals = {} |