Good Syntax Highlighting library for Web: Hack


Hack includes monospaced regular, bold, oblique, and bold oblique sets to cover all of your syntax highlighting needs.


Over 1500 glyphs that include lovingly tuned expanded Latin, modern Greek, and Cyrillic character sets.


Powerline glyphs are included in the regular set. Patching is not necessary. Install and go.


Installing PEAR on OSX 10.9 Mavericks and OSX10.8/10.7

PEAR is a poplular PHP package manager, it doesn’t come by default on OSX, how to install PEAR on OSX 10.9 Mavericks and earlier versions of OSX.

Check if you have it

pear version

If not, move into:

cd /usr/local

Get it

curl -O

if you are denied permission try it with sudo

sudo curl -O


Install It

sudo php -d detect_unicode=0 go-pear.phar

Click yes a couple of times during the install


Add PEAR to your PATH


vi .bashrc


vi .bash_profile

Add to your PATH variable:


So the PATH variable line will look something like this, each path is separated by a colon and finished with the variable $PATH, in the example below the pear path is the 2nd one

export PATH="/usr/local/mysql/bin:/Users/USERNAME/pear/bin:$PATH"


source .bash_profile


pear version

Output should be

PEAR Version: 1.9.4
PHP Version: 5.4.17
Zend Engine Version: 2.4.0
Running on: Darwin admins-MacBook.local 13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64
That’s PEAR installed and ready.
To upgrade PEAR
pear upgrade pear
To upgrade PEAR packages either name the package name after the command or to upgrade all just run
pear upgrade


Função para remover acentos no Excel

Para criar uma nova função, que remove acentos no Excel, pressione em seu teclado ALT + F11.
Surgirá uma nova janela (editor Visual Basic). No menu  acesse INSERIR/MÓDULO, e cole o texto abaixo:

Após isso volte para a janela do Excel. Basta agora usar a função TiraAcento()

Installing rails applications with thin server + nginx proxy

Aplicação exemplo: Redmine

Dentro do diretorio do Redmine, executar:
Considerando que a base de dados já está configurada, a aplicação já poderá ser iniciada. Para configurar base de dados, ver:

Em casos de migração, erros desse tipo podem acontecer:

You have already activated rack 1.6.4, but your Gemfile requires rack 1.6.1. Prepending bundle exec to your command may solve this. (Gem::LoadError)

ou apenas

Active Directory Powershell with CSV cmdlets to manage a bulk of objects

Import a lot of users into Active Directory can be a hard job if you do this one by one, but with Import-CSV cmdlet, this task could be easier. In this post we show how do this to select, create, change and delete users or another objects (computers/groups). We use cmdlets to manage users, but the same idea can be used for infinite things that an administrator need to do everyday. Leia Mais

Installing OCS Inventory NG on CentOS 7

On the server

On the clients

Open browser URL

http://ip_of_server/ocsreports and set MySQL configurations

Problems with ocsinventory-server and CentOS 7 using external database

After install ocsinventory, you may see this error:

This is because the variable of database connection are undefined. The reason is that the “install.php” don’t changed informations of host, username and password for MySQL on apache configuration. Set this and restart apache.

Configurations in /etc/httpd/conf.d/ocsinventory-server.conf