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
@martinbean
martinbean / pre-commit
Last active December 19, 2023 22:14
Pre-commit hook to detect if any .php files contain dd()
#!/usr/bin/php
<?php
$files = shell_exec('git diff-index --name-only --cached --diff-filter=ACMR HEAD | grep "\.php$"');
$files = explode("\n", trim($files));
$exitCode = 0;
foreach ($files as $file) {
if (empty($file)) {
@JeffreyWay
JeffreyWay / .bash_profile
Created July 31, 2015 19:20
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"
@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