-
Open Terminal move to your home folder:
cd ~
-
Enable git colors:
git config --global color.ui true
-
Make a file called ".colors":
touch .colors
-
Open .colors and paste the following:
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
// 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. | |
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
# -*- 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" |
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
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 |
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
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> |
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
<?php | |
namespace Projeto\Empresa\Services; | |
class ProductManager | |
{ | |
private $productDAO; | |
public function __construct(\Product_model $productDAO) | |
{ |
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
<?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 |
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
<?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" |
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
<?php | |
$attributeValues = array( | |
'color' => array('Red', 'White', 'Blue'), | |
'size' => array(1, 2, 3, 4), | |
'fabric' => array('Cloth', 'Silk') | |
); | |
class Cartesian | |
{ |
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.