TODO: Write a project description
TODO: Describe the installation process
RewriteEngine on | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_URI} !\.(css|gif|ico|jpg|js|png|swf|txt)$ | |
RewriteCond $1 !^(index\.php|images|captcha|css|js|robots\.txt|favicon\.ico) | |
RewriteRule ^(.*)$ //index.php/$1 [L] | |
<Files "index.php"> | |
AcceptPathInfo On | |
</Files> |
if (isset($_SESSION['LAST_ACTIVITY']) && (time() - $_SESSION['LAST_ACTIVITY'] > 1800)) { | |
// last request was more than 30 minutes ago | |
session_unset(); // unset $_SESSION variable for the run-time | |
session_destroy(); // destroy session data in storage | |
} | |
$_SESSION['LAST_ACTIVITY'] = time(); // update last activity time stamp | |
/* | |
You can also use an additional time stamp to regenerate the session ID periodically to avoid attacks on sessions like session fixation: |
// It's very handy to add references to $state and $stateParams to the $rootScope | |
// so that you can access them from any scope within your applications. | |
// For example, <li ng-class="{ active: $state.includes('contacts.list') }"> | |
// will set the <li> to active whenever 'contacts.list' or one of its | |
// decendents is active. | |
.run([ '$rootScope', '$state', '$stateParams', | |
function ($rootScope, $state, $stateParams) { | |
$rootScope.$state = $state; | |
$rootScope.$stateParams = $stateParams; |
(Full description and list of commands at - https://npmjs.org/doc/index.html)
##List of less common (however useful) NPM commands
######Prepand ./bin to your $PATH Make sure to export your local $PATH and prepand relative ./node_modules/.bin/:
MAIL_DRIVER=smtp | |
MAIL_HOST=smtp.gmail.com | |
MAIL_PORT=587 | |
[email protected] | |
MAIL_PASSWORD=wsfgeaudwccqgcoz | |
MAIL_ENCRYPTION=tls |
<?php | |
return [ | |
/* | |
|-------------------------------------------------------------------------- | |
| Mail Driver | |
|-------------------------------------------------------------------------- | |
| | |
| Laravel supports both SMTP and PHP's "mail" function as drivers for the |
/*! | |
* angular-loading-bar v0.9.0 | |
* https://chieffancypants.github.io/angular-loading-bar | |
* Copyright (c) 2016 Wes Cruver | |
* License: MIT | |
*/ | |
/* Make clicks pass-through */ | |
#loading-bar, | |
#loading-bar-spinner { |
These are my notes basically. At first i created this gist just as a reminder for myself. But feel free to use this for your project as a starting point. If you have questions you can find me on twitter @thomasf https://twitter.com/thomasf This is how i used it on a Debian Wheezy testing (https://www.debian.org/releases/testing/)
Discuss, ask questions, etc. here https://news.ycombinator.com/item?id=7445545