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
--- a/web/concrete/core/controllers/single_pages/dashboard/pages/types/add.php | |
+++ b/web/concrete/core/controllers/single_pages/dashboard/pages/types/add.php | |
@@ -23,8 +23,8 @@ class Concrete5_Controller_Dashboard_Pages_Types_Add extends DashboardBaseContro | |
if (!$ctName) { | |
$this->error->add(t("Name required.")); | |
- } else if (preg_match('/[^0-9A-Z\.\!\&\(\)\-\_ ]/i', $ctName)) { | |
- $this->error->add(t('Page type names can only contain letters, numbers, spaces and the following symbols: !, &, (, ), -, _.')); | |
+ } else if (preg_match('/[<>{};?"`]/i', $ctName)) { | |
+ $this->error->add(t('Invalid characters in page type name.')); |
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
provides 'opsworks' | |
require 'mixlib/shellout' | |
require 'json' | |
unless opsworks | |
opsworks Mash.new | |
cmd = Mixlib::ShellOut.new("opsworks-agent-cli stack_state") |
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
GEM | |
remote: http://rubygems.org/ | |
specs: | |
activesupport (3.2.12) | |
i18n (~> 0.6) | |
multi_json (~> 1.0) | |
addressable (2.3.3) | |
archive-tar-minitar (0.5.2) | |
berkshelf (1.2.1) | |
activesupport |
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
#!/usr/bin/bash | |
# REPLACE APP_REPO and APP_NAME | |
set -e | |
set -x | |
export PATH=/opt/local/bin:/opt/local/sbin:/usr/bin:/usr/sbin | |
MDATA_WRAPPER=001 |
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
#!/usr/bin/bash | |
## for dataset 'hadoop' 1.0.0 | |
set -e | |
## httpfs build | |
pkgin -y install apache-mavenpkgin -y install scmgit | |
pkgin -y install sun-jdk6 | |
ln -s /opt/local/java/sun6/lib /opt/local/java/ |
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
#!/usr/bin/bash | |
# | |
# Provides SmartMachine summary of information. | |
# Joyent 2012. | |
# JSON OPTION Author: github_id:sawanoboly | |
PATH="/opt/local/bin:/opt/local/gnu/bin:/opt/local/sbin:/usr/bin:/usr/sbin"; | |
JSON=0 | |
OPT= |
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
#!/usr/bin/env ruby | |
require 'json' | |
require 'faraday' | |
class MonitReports | |
def initialize(mmonit = "http://127.0.0.1:8080") | |
@connection = Faraday.new(:url => mmonit) | |
res = @connection.get "/index.csp" | |
@cookie = res.headers['set-cookie'] |
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
def _out(k,hash) | |
hash.each_pair do |k2,v2| | |
str = [k,"['#{k2}']"].join | |
ha = {str => v2} | |
out ha | |
end | |
end | |
def out(hash) | |
hash.each_pair do |k,v| |
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
prompt = function() { | |
// set version | |
version = db.version(); | |
// case mongos | |
if (rs.status().info == 'mongos') { | |
return rs.status().info + ':[' + version + '] > '; | |
} | |
// config or replica |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant::Config.run do |config| | |
vmbox = "precise64" | |
vmboxurl = "http://files.vagrantup.com/precise64.box" | |
gluster_repo = "http://download.gluster.org/pub/gluster/glusterfs/LATEST/Ubuntu/12.04/glusterfs_3.3.0-1_amd64.deb" | |
gluster_file = "glusterfs_3.3.0-1_amd64.deb" |