Taken from Using MacOSX Lion command line mail with Gmail as SMTP
Edit file /etc/postfix/main.cf
sudo vim /etc/postfix/main.cf
{ | |
"shell_cmd": ["cat", "$file", "|", "/usr/bin/ruby", "/Users/ttscoff/scripts/update_workflow.rb"] | |
} |
# If in a playlist, play the next video. | |
tell application "Google Chrome" | |
repeat with t in tabs of windows | |
tell t | |
if URL starts with "http://www.youtube.com/watch" or URL starts with "https://www.youtube.com/watch" then | |
execute javascript " | |
var player = | |
document.getElementById('movie_player') || | |
document.getElementsByTagName('embed')[0]; | |
var next = document.getElementsByClassName('yt-uix-button-icon-playlist-bar-next')[0]; |
Taken from Using MacOSX Lion command line mail with Gmail as SMTP
Edit file /etc/postfix/main.cf
sudo vim /etc/postfix/main.cf
#!/usr/bin/env bash | |
# Configurable variables | |
database='vagrant' | |
username='vagrant' | |
password='vagrant' | |
echo '' | |
echo ' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~' | |
echo ' Bootstrapping Ubuntu Precise 32bit for Laravel 4' |
false
as "0"
, so you want to typecast them.$hidden
array then OOPS!/users/id/5/active/true
. Your API does not need to be SEO optimised.?format=xml
is stupid, use an Accept: application/xml
header. I added this to the CodeIgniter Rest Server once for lazy people, and now people think it's a thing. It's not.<?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"); |
<?php | |
/** | |
* An helper file for Laravel 4, to provide autocomplete information to your IDE | |
* Generated with https://github.com/barryvdh/laravel-ide-helper | |
* | |
* @author Barry vd. Heuvel <[email protected]> | |
*/ | |
// This is now merged with: https://gist.github.com/barryvdh/5227822 | |
// The same format is used for phpStorm, netBeans and Sublime Text Codeintel! |
$ /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome -disable-prompt-on-repost & |
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?