We have moved: https://github.com/magnetikonline/linuxmicrosoftievirtualmachines
Due to the popularity of this Gist, and the work in keeping it updated via a Gist, all future updates will take place at the above location. Thanks!
#! /bin/bash | |
MYSQL="/opt/local/etc/LaunchDaemons/org.macports.mysql5/mysql5.wrapper" | |
NGINX="/opt/local/sbin/nginx" | |
PHPFPM="/opt/local/sbin/php-fpm" | |
PIDPATH="/opt/local/var/run" | |
MEMCACHED="/opt/local/bin/memcached -m 24 -P /opt/local/var/run/memcached.pid -u root" | |
if [ $1 = "start" ]; then | |
sudo $MYSQL start | |
echo "Starting php-fpm ..." |
We have moved: https://github.com/magnetikonline/linuxmicrosoftievirtualmachines
Due to the popularity of this Gist, and the work in keeping it updated via a Gist, all future updates will take place at the above location. Thanks!
<?php | |
/** | |
* A helper file for Laravel 5, to provide autocomplete information to your IDE | |
* Generated for Laravel 5.5.13 on 2017-09-28. | |
* | |
* @author Barry vd. Heuvel <[email protected]> | |
* @see https://github.com/barryvdh/laravel-ide-helper | |
*/ | |
namespace { | |
exit("This file should not be included, only analyzed by your IDE"); |
There's no shortage of good resources for learning laravel. So instead of the usual introductory tutorial were just gonna learn Laravel by building a project from scratch and that's gonna be a User Management System.
I don't know if my definition of a User Management System is correct but here's my idea of what's it's capable of doing:
This is just a random list of notes, as I dig into Laravel 4. If you have any feedback/solutions, please leave a comment. I'll be compiling everything for an article on Nettuts+, when the framework is officially in Beta. This will be updated over the course of the week.
Running composer dump-autoload
after every new controller is a pain. Can this not be automated through artisan controller:make ControllerName
?
Seems that some of the View HTML helpers are missing. No HTML::script()
.
Route::resource('tasks', 'TasksController')
doesn't seem to create named routes. This is a big deal, if not. What's the solution?
INSERT INTO `states` (`id`, `name`, `code`) VALUES (1, 'Acre', 'AC'); | |
INSERT INTO `cities` (`state_id`, `name`, `latitude`, `longitude`) VALUES (1, 'Acrelândia', -9.825808, -66.897166); | |
INSERT INTO `cities` (`state_id`, `name`, `latitude`, `longitude`) VALUES (1, 'Assis Brasil', -10.929765, -69.573794); | |
INSERT INTO `cities` (`state_id`, `name`, `latitude`, `longitude`) VALUES (1, 'Brasiléia', -10.994994, -68.749696); | |
INSERT INTO `cities` (`state_id`, `name`, `latitude`, `longitude`) VALUES (1, 'Bujari', -9.815277, -67.955029); | |
INSERT INTO `cities` (`state_id`, `name`, `latitude`, `longitude`) VALUES (1, 'Capixaba', -10.566031, -67.686006); | |
INSERT INTO `cities` (`state_id`, `name`, `latitude`, `longitude`) VALUES (1, 'Cruzeiro do Sul', -7.627625, -72.675582); | |
INSERT INTO `cities` (`state_id`, `name`, `latitude`, `longitude`) VALUES (1, 'Epitaciolândia', -11.018771, -68.734109); | |
INSERT INTO `cities` (`state_id`, `name`, `latitude`, `longitude`) VALUES (1, 'Feijó', -8.170536, -70.350973); | |
INSERT INTO `cities` (` |
// Buscar o que? | |
var busquePor = '', | |
json = "{1:'Ofelquis',2:'Diego',3:'Vanessa',4:'Rennan',5:'Thiago',6:'André',7:'Caio',8:'Vagner',9:'Lucio',10:'Dhiego'}", | |
regex = RegExp('[^{:,]+:[\'"]([^\'"]*' + busquePor + '[^\'"]*)[\'"]', 'gi'), | |
html = ''; | |
json.match(regex).forEach(function (a) { | |
html += a+'<br />'; | |
}); |
InfoQ BR
Fuja da escravidão antes que ela te alcance - Nesta palestra, Vinícius Teles nos fala a respeito da realidade de muitos trabalhadores que possuem vidas estáveis, porém repletas de frustrações advindas de suas rotinas e carreiras aparentemente seguras. Vinícius trata do empreendedorismo, com dicas para profissionais de tecnologia que buscam atingir não apenas a estabilidade financeira, mas também a plena satisfação profissional e pessoal.
Agile Brazil 2012
# | |
# A virtual host using mix of IP-, name-, and port-based configuration. | |
# This is based on using Homebrew for OS X. You can use this in other | |
# cases though, but you'll likely need to adjust some of the paths below. | |
# | |
server { | |
# Replace this port with the right one for your requirements | |
# listen 80 [default|default_server]; #could also be 1.2.3.4:80 |
# From http://garmoncheg.blogspot.com/2012/06/pretty-git-log.html | |
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --" |