Skip to content

Instantly share code, notes, and snippets.

View rafaelqm's full-sized avatar
馃幆
Focusing

Rafael Querino Moreira rafaelqm

馃幆
Focusing
View GitHub Profile
Open a terminal.
Install ack-grep by typing sudo apt-get install ack-grep
Change to the directory you want to search under, and type ack-grep foo. it lists out all the matches in all files under that directory.
@rafaelqm
rafaelqm / install wkhtmltopdf 0.12.4 on Linux Ubuntu.md
Last active August 5, 2019 14:59
How to install WKHTMLtoPDF on Linux Ubuntu

Installing WKHTMLtoPDF 0.12.4 (fixed DPI error)

cd ~
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
tar -xvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
cd wkhtmltox/bin/
sudo mv wkhtmltopdf  /usr/bin/wkhtmltopdf
sudo mv wkhtmltoimage  /usr/bin/wkhtmltoimage
sudo ln -s /usr/bin/wkhtmltopdf /usr/local/bin/wkhtmltopdf
@rafaelqm
rafaelqm / Instalando OCI8 (Oracle) no Ubuntu 14, 16 e 18.md
Last active January 23, 2021 22:23
Instala莽茫o lib para conex茫o ao Oracle no PHP 7.0 脿 7.4

Instalar o m贸dulo OCI8 (Oracle) no Ubuntu 14.04 ou 16.04 ou 18.04 (detalhes no final)

1 - Instalar PHP7 e Apache 2 / Nginx

2 - Baixar o Oracle Instant Client

Para que o m贸dulo php-oci8 funcione, 茅 necess谩rio baixar o Instant Client.

@rafaelqm
rafaelqm / macosx-install-php-oracle-oci8-pdo_oci.md
Created April 13, 2017 14:28 — forked from krisanalfa/macosx-install-php-oracle-oci8-pdo_oci.md
Install OCI8 and / or PDO_OCI on OSX via Brew

Installation

This procedure is tested on Mac OS X 10.10.5 with Developpers tools installed (xCode).

PHP 5.6 installed with Homebrew.

Preparation

Download the following files from Oracle website (yes, you need to create an account and accept terms):

@rafaelqm
rafaelqm / 0_reuse_code.js
Last active August 29, 2015 14:23
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console