Skip to content

Instantly share code, notes, and snippets.

View andrematias's full-sized avatar
🏠
Working from home

André Matias andrematias

🏠
Working from home
View GitHub Profile
@andrematias
andrematias / git_branch
Created February 22, 2017 15:31 — forked from shivabhusal/git_branch
Add this snippet in Linux (Ubuntu)'s `~/.bashrc` to see your current git-branch in terminal prompt
# Author : Shiva Bhusal
# github: shivabhusal
# stackoverflow: users/3437900/illusionist
##########################################
# Usages:
# - create a file called ~/.promptrc
# - add following in ~/.bashrc
# `source ~/.promptrc`
# # this will include the source of the file
@andrematias
andrematias / commands.php
Created January 31, 2017 13:39 — forked from escopecz/commands.php
Script to run Mautic (https://mautic.org) commands from a URL.
<?php
if (!isset($_GET['ILoveMauticReallyIDo'])) {
echo 'The secret phrase is wrong.';
die;
}
$link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$allowedTasks = array(
'cache:clear',
@andrematias
andrematias / Instalacao_do_oracle_sql_plus.md
Last active October 24, 2016 23:49 — forked from tcnksm/install_sqlplus.md
How to install oracle client to Ubuntu 12.04

Instalação do ORACLE SQL*Plus

  1. Faça o download dos pacotes .rpm Aqui

    • oracle-instantclinet*-basic-*.rpm
    • oracle-instantclinet*-devel-*.rpm
    • oracle-instantclinet*-sqlplus-*.rpm
  2. Instale o conversor de pacotes rpm para deb, alien

    • sudo apt-get install alien
  3. Converta e instale os pacotes com o Alien

@andrematias
andrematias / gist:e223ffc870c1af38ed89f6fdd34fb55b
Created August 17, 2016 20:06 — forked from philfreo/gist:0a4d899de4257e08a000
4 different ways to save a Highcharts chart as a PNG (with and without a server)
// Method 1: simply use Highcharts built-in functionality (SVG -> Highcharts server -> PNG)
// Downside: won't work in webview native apps that don't handle the form response
highcharts.exportChart({
filename: filename
});