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
zend_extension=/usr/lib/php/modules/xdebug.so | |
; General settings | |
xdebug.cli_color=1 | |
xdebug.var_display_max_depth=10 | |
; xdebug.show_exception_trace=1 | |
xdebug.show_mem_delta=1 | |
; xdebug.show_local_vars=1 | |
; xdebug.collect_params=1 | |
; xdebug.coverage_enable=1 |
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
upstream portal { | |
server 127.0.0.1:3000; | |
server 127.0.0.1:3001; | |
} | |
server { | |
listen 80 default_server; | |
server_name _; | |
root /opt/portal/public; |
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
upstream portal { | |
server 127.0.0.1:3000; | |
server 127.0.0.1:3001; | |
} | |
server { | |
listen 80 default_server; | |
server_name _; | |
root /opt/portal/public; |
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
def self.get_with_items( id ) | |
rma = Rma.get( id ) | |
items = rma.items.all | |
_rma = rma.attributes | |
_rma[:items] = items | |
_rma | |
end |
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
#!/bin/bash | |
repos=( $(find /opt/repositories -type d -name .git) ) | |
for x in ${repos[@]}; do | |
cd ${x%.*} | |
git pull origin master | |
done | |
ruby /opt/redmine/script/runner "Repository.fetch_changesets" -e production > /dev/null 2>&1 & |
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
def aliases=( aliases ) | |
return super unless aliases.is_a?( String ) | |
aliases = aliases.split( "\n" ).map do |a| | |
SiteAlias.first_or_new( name: a ) | |
end | |
end |
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
# Converts a hash into a query string | |
# | |
# Hash keys can be underscored names | |
# @example | |
# { :service_type => 'rsemail' } | |
# | |
# Or the Rackspace API expected string | |
# | |
# @param [Hash, #to_hash] hash to convert | |
# @return [String] query param |
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
# TMP just for figuring out | |
post = post.collect do |k,v| | |
"%s=%s" % [k,v] | |
end.join('&') |
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
# Instance Methods for ControlPanel::Resources | |
module ResourceInstanceMethods | |
def initialize( slug_params = {} ) | |
@slug_params = slug_params | |
end | |
def slug |
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
dojo.provide( 'outland.store.JsonRestTreeModel' ); | |
dojo.require( 'dojo.store.JsonRest' ); | |
dojo.declare | |
( 'outland.store.JsonRestTreeModel' | |
, [ dojo.store.JsonRest ] | |
, { idProperty : 'id' |
NewerOlder