Skip to content

Instantly share code, notes, and snippets.

View rogeriopradoj's full-sized avatar
😀

Rogerio Prado de Jesus rogeriopradoj

😀
View GitHub Profile
// iMacro CheatSheet - Command Reference
// http://wiki.imacros.net/Command_Reference
// iMacros supports 3 types of variables:
// * The macro variables !VAR0 thru !VAR9. They can be used with the SET and ADD command inside a macro.
// * Built-in variables. They contain certain values set by iMacros.
// * User-defined variables. They are defined in-macro using the SET command.
@rogeriopradoj
rogeriopradoj / gist:2405270
Created April 17, 2012 10:54 — forked from jordanbrock/gist:2404532
Vagrantfile for openphoto server
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
config.vm.box = "vagrant-oneiric"
config.vm.provision :chef_solo do |chef|
chef.binary_path = "/path/to/chef/binary/"
chef.cookbooks_path = "/path/to/chef/cookbooks"
@rogeriopradoj
rogeriopradoj / asciinema.rb
Last active December 23, 2015 17:59 — forked from ku1ik/asciiio.rb
require 'formula'
class Asciinema < Formula
# always gets the latest version, since asciinema
# doesn't have any versioning schemes going on
head 'git://github.com/sickill/asciinema.git'
homepage 'https://github.com/sickill/asciinema'
def install
NameVirtualHost 127.0.0.2:80
<Directory "/var/www/html/example/">
Options -Indexes +FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<VirtualHost 127.0.0.2:80>
<?php
namespace Projeto\Empresa\Services;
class ProductManager
{
private $productDAO;
public function __construct(\Product_model $productDAO)
{
<?php if (!defined('BASEPATH')) {exit('No direct script access allowed');}
/**
*
* Arquivo inserido em application/libraries/Twig.php
*
*/
class Twig {
/**
* Referência da instância da classe CodeIgniter
<?xml version="1.0" encoding="UTF-8"?>
<project name="TheProject" default="build" basedir=".">
<!-- Altere estas propriedades adequando-as ao seu projeto -->
<property name="application.library" value="${project.basedir}/library"/>
<property name="application.tests" value="${project.basedir}/tests"/>
<property name="application.builddir" value="${project.basedir}/build"/>
<target name="build"
@rogeriopradoj
rogeriopradoj / gist:cf2c8ed9a05449d8513dd6c614f88cd5
Created April 21, 2016 16:09 — forked from NoobsArePeople2/gist:4490307
Configuration for .bash_profile on OSX to get some Posh-Git features.
  1. Open Terminal move to your home folder: cd ~

  2. Enable git colors: git config --global color.ui true

  3. Make a file called ".colors": touch .colors

  4. Open .colors and paste the following:

@rogeriopradoj
rogeriopradoj / Cartesian.php
Created May 20, 2016 21:17 — forked from jwage/Cartesian.php
PHP Cartesian Function
<?php
$attributeValues = array(
'color' => array('Red', 'White', 'Blue'),
'size' => array(1, 2, 3, 4),
'fabric' => array('Cloth', 'Silk')
);
class Cartesian
{

Setup modern.ie vagrant boxes

Since modern.ie released vagrant boxes, it' no longer necessary to manually import the ova file to virtualbox, as mentioned here.

However, the guys at modern.ie didn't configured the box to work with WinRM. This how-to addresses that, presenting steps to proper repackage these boxes, adding WinRM support. Additionally configures chocolatey package manager and puppet provisioner.

Pre-requisites