Skip to content

Instantly share code, notes, and snippets.

View eduardocruz's full-sized avatar
👨‍💻
I may be slow to respond.

Eduardo Cruz eduardocruz

👨‍💻
I may be slow to respond.
View GitHub Profile
@eduardocruz
eduardocruz / .bash_profile
Created January 11, 2019 16:48 — forked from JeffreyWay/.bash_profile
Prettier git logs
alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
Verifying that "eduardocruz.id" is my Blockstack ID. https://explorer.blockstack.org/name/eduardocruz.id
Verifying my Blockstack ID is secured with the address 15hWzLfCT9vumEb1wpDVWJBxvfmguuPUSX https://explorer.blockstack.org/address/15hWzLfCT9vumEb1wpDVWJBxvfmguuPUSX

Keybase proof

I hereby claim:

  • I am eduardocruz on github.
  • I am eduardocruz (https://keybase.io/eduardocruz) on keybase.
  • I have a public key ASAidBvvQajmmymeh8bQjxGX2MEsdtgxPMA3kn5xCojXJQo

To claim this, I am signing this object:

@eduardocruz
eduardocruz / gist:d94155dc0059b0f47bba
Created February 9, 2015 22:26
Removing Unnecessary ELSE
//BEFORE
function myFunction()
{
if(userAuthorized())
{
execute();
execute();
execute();
execute();
} else {
@eduardocruz
eduardocruz / page8.js
Created November 5, 2014 15:07
page8.js
messageButton.addEventListener("click",function(event){
alert(messageText.value);
},false);
@eduardocruz
eduardocruz / gist:bdee2129c2f3ea11d59e
Created October 29, 2014 20:11
Laravel Dynamimc Database configuration
Config::set('database.connections.dbconnection', array(
'driver' => 'mysql',
'host' => $host,
'database' => $nome_banco,
'username' => $login,
'password' => $senha,
'charset' => 'utf8',
'collation' => 'utf8_general_ci',
'prefix' => '',
));
@eduardocruz
eduardocruz / Windows platform version. 32-bits or 64-bits?
Last active December 25, 2015 08:59
Windows platform version. 32-bits or 64-bits?
wmic os get osarchitecture
@eduardocruz
eduardocruz / laravelIntall.txt
Created September 2, 2012 14:04
Laravel Installation
1.Copy files on Laravel's public folder into a folder you want to put them on public_html.
2.Copy Laravel's other folders anywhere your want to put them. Rename if you wanted.
3.Open index.php on your public folder with text editor , and change "require '../paths.php';" to fit your directory structure.
4.Open paths.php with text editor, and change "path['xxxx'] = 'xxxxx';" format lines to fit your directory structure.
5.Don't forget set permition for your 'storage' directory.
Source: http://forums.laravel.com/viewtopic.php?id=1685