Skip to content

Instantly share code, notes, and snippets.

View robertsanseries's full-sized avatar
👨‍💻
contributing eventually

Robert San robertsanseries

👨‍💻
contributing eventually
View GitHub Profile
@jonatanfroes
jonatanfroes / MY_Form_validation.php
Created August 20, 2012 14:16
CodeIgniter My_Form_validation p/ validação de CPF e outros
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
* MY_Form_validation Class
*
* Extends Form_Validation library
*
*/
class MY_Form_validation extends CI_Form_validation {
function __construct()
@senthil245
senthil245 / JDK 1.6 Installation in Ubuntu
Created July 27, 2013 02:16
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.
@vitorbritto
vitorbritto / install.sh
Last active January 22, 2022 03:19
Shell Script - Este é um script shell básico para clonar um repositório no GitHub e executar comandos de estruturação para um projeto com Bower e Grunt.
# Executar no shell/bash com: bash install.sh
# ------------------------------------------------------------------------------
# | Helpers |
# ------------------------------------------------------------------------------
# Renderiza um log de informação
e_informa() {
printf "\n$(tput setaf 7)%s$(tput sgr0)\n" "$@"
@wwwbruno
wwwbruno / site_helper.php
Last active June 18, 2023 19:26
Helper com funções úteis para o Codeigniter
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| Site Helper
| -------------------------------------------------------------------------
| Desenvolvido por Bruno Almeida
|
*/
package com.example;
public class Fraction {
private int numerator;
private int denominator;
public Fraction() {
this.numerator = 1;
this.denominator = 1;
}
@rdeavila
rdeavila / git-update-fork.sh
Last active February 19, 2024 16:02
Git: como atualizar um fork com as mudanças do original?
#!/bin/bash
# Adicione um novo remote; pode chamá-lo de "upstream":
git remote add upstream https://github.com/usuario/projeto.git
# Obtenha todos os branches deste novo remote,
# como o upstream/master por exemplo:
git fetch upstream
@mkalygin
mkalygin / install-zsh.sh
Created May 2, 2014 16:20
Install zsh on Elementary OS.
# Source: http://choyan.me/oh-my-zsh-elementaryos/
sudo apt-get update && sudo apt-get install -y curl vim git zsh
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | bash
sudo chsh -s $(which zsh) $(whoami)
@leocomelli
leocomelli / git.md
Last active June 25, 2024 23:57
Lista de comandos úteis do GIT

GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda

@icarofreire
icarofreire / DB.php
Last active January 20, 2016 10:27
Classes de Operações de Banco de Dados em PHP.
/*
* Classes de Operações de Banco de Dados.
* Autor: Ícaro Freire.
* Site: http://icarofreire.blogspot.com.br/
* Email: icaro.ns@hotmail.com
*/
class banco
{
@PurpleBooth
PurpleBooth / README-Template.md
Last active June 25, 2024 09:23
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites