Skip to content

Instantly share code, notes, and snippets.

View ramonornela's full-sized avatar

Ramon Henrique Ornelas ramonornela

View GitHub Profile
#!/usr/bin/bash
sudo yum -y update
sudo yum -y install ruby
sudo yum -y install wget
cd /home/ec2-user
region=`curl -s http://169.254.169.254/latest/meta-data/placement/region`
module.exports = function removePrivateApi() {
return {
name: 'remove-private-api',
description: 'Prevent the private apis from being rendered',
$runBefore: ['rendering-docs'],
$process: function(docs) {
console.log('Test: run hide-private');
var publicDocs = [];
docs.forEach(function(doc){
if(!doc.private){
@ramonornela
ramonornela / build_xml.php
Created December 18, 2012 21:11
Geração XML Joomla
<?php
define('DIR_COMP', '<path>');
$objects = new RecursiveIteratorIterator(
new RecursiveRegexIterator(
new RecursiveDirectoryIterator(DIR_COMP),
'/^(?!.*(\.svn|\.cvs)).*$/',
RecursiveRegexIterator::MATCH
),
RecursiveIteratorIterator::SELF_FIRST
@ramonornela
ramonornela / gist:1487835
Created December 16, 2011 20:29
Mantis svn
#
# Account to be used by the source control script. The account must be enabled
# and must have the appropriate access level to add notes to all issues even
# private ones (DEVELOPER access recommended).
$g_source_control_account = 'svn';
# For open source projects it is expected that the notes be public VS_PUBLIC, however,
# for non-open source it will probably be VS_PRIVATE.
$g_source_control_notes_view_status = VS_PRIVATE;
@ramonornela
ramonornela / gist:1129015
Created August 6, 2011 04:34
reproduce issue
<?php
//@see ZF-10543
set_include_path('/your_path');
define("DIR_CACHE", "./temp/cache"); // change to your dir cache
require_once 'Zend/Loader/Autoloader.php';
Zend_Loader_Autoloader::getInstance();
$application = new Zend_Application('testing', './zf-11636.ini');
$application->getBootstrap()