Skip to content

Instantly share code, notes, and snippets.

View ederrafo's full-sized avatar

Eder Rafo Jose Pariwana Espinhal ederrafo

View GitHub Profile
@ederrafo
ederrafo / JDK 1.6 Installation in Ubuntu
Created January 29, 2016 15:46 — forked from senthil245/JDK 1.6 Installation in Ubuntu
Step by step installation of JDK 1.6 in Ubuntu
Install Java JDK 6.0 update 31 on Ubuntu 12.04 LTS
Introduction
The first question is why are we installing an old JDK. The answer is that Oracle JDK 6.0 update 31 is the JDK recommended by Cloudera when installing CDH4 (Cloudera Distribution Hadoop v4).
This is an update to an older version of this post. Mainly I have changed the JDK from 1.6.0_26 to 1.6.0_31 as this is the recommended JDK for CDH4 .
Install Java
I have a 64 bit version of Ubuntu 12.04 LTS installed, so the instructions below only apply to this OS.
src: http://difusal.blogspot.com/2015/06/how-to-install-eclipse-mars-45-on-ubuntu.html
0. maybe :
sudo ln -s *eclipse path* /usr/bin/eclipse
make sure you replace *eclipse path* with the location where you previously saved eclipse - in my case it is ~/Programs/eclipse/eclipse
1. sudo gedit /usr/share/applications/eclipse.desktop
2. After these commands, gedit - Ubuntu's default text editor - should have opened
3. Copy the following text and paste it there:
@ederrafo
ederrafo / install.sh
Created February 8, 2016 02:23 — forked from claudiosanches/install.sh
Ubuntu - Install Strem.io
#!/usr/bin/env bash
sudo su
mkdir -p /opt/stremio
tar -xvzf Stremio3.3.1.linux.tar.gz -C /opt/stremio
curl -SO# http://www.strem.io/3.0/stremio-white-small.png
mv stremio-white-small.png /opt/stremio/
curl -SO# https://gist.githubusercontent.com/claudiosmweb/797b502bc095dabee606/raw/52ad06b73d90a4ef389a384fbc815066c89798eb/stremio.desktop
mv stremio.desktop /usr/share/applications/
/*
Version 1.
*/
private function validateCaptcha()
{
require_once './library/google/1.11/recaptchalib.php';
if (!$_POST["recaptcha_challenge_field"]) {
return new View('agency', array("messageFailed" => "formCaptchaErrorMessage"));
}
echo $GLOBALS['wp_query']->request;

The system file odbcinst.ini contains information about ODBC drivers available to all users ** Manual Instalation: ** If make clean give error

$ sudo apt-get install libtool autoconf && autoreconf -f -i

If Make no exist

 $ sudo apt-get install make
@ederrafo
ederrafo / sybase.sql
Last active May 23, 2017 23:11
All reference sybase
-- SQLAnywhere
-- buscar una columna
select t.table_name, c.column_name, c.nulls from systabcol c key join systab t on t.table_id = c.table_id
where c.column_name = 'salutation'
-- Estructura de una tabla
SELECT c.column_name
FROM systabcol c
<?php
$data = "This is somsde /<b>bold</b> text.";
$data = trim($data);
// $data = stripslashes($data);
$data = htmlspecialchars($data);
echo $data;
/*Formatear cadena de caracteres. reemplazar caracteres en un string*/
/*strings*/
@ederrafo
ederrafo / laravel-commands.md
Last active November 11, 2024 23:32
php laravel 5.2.41, commands

Instalacion del proyecto de forma local, via composer

$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar create-project laravel/laravel my-project.com --prefer-dist

Para instalar vendor es necesario la libreria mbstring

$ sudo apt-get install php7.0-mbstring php7.0-xml

freetds.org

  • FreeTDS is a free implementation of the TDS (Tabular Data Stream).
  • Includes three client libraries: DB-Library, CT-Library, and ODBC
  • To use tsql : $ sudo apt-get install freetds-bin

Free TDS

$ wget http://ibiblio.org/pub/Linux/ALPHA/freetds/stable/freetds-stable.tgz
$ tar -zxvf freetds-stable.tgz
$ cd freetds-0.91/