Verify Permissions
diskutil verifyPermissions /
Repair Permissions
diskutil repairPermissions /
/** | |
* | |
* In this example we create view with inplace and bulk editing. | |
* Tools and plugins: | |
* jQuery | |
* xEditable jquery plugin | |
* twitter bootstrap | |
* | |
*/ |
var options = { class : "wikitable", idx : 0, id : "firstWikiTable" }; | |
var dt_options = { paging: false, scrollY: 400 }; | |
var jscript = document.createElement("script"); jscript.src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"; document.body.appendChild(jscript); | |
jscript.onload = function () | |
{ | |
var script = document.createElement("script"); script.src="https://cdn.datatables.net/1.10.6/js/jquery.dataTables.min.js"; document.body.appendChild(script); | |
script.onload = function () | |
{ | |
var css = document.createElement("link"); css.rel="stylesheet"; css.href="https://cdn.datatables.net/1.10.6/css/jquery.dataTables.min.css"; document.body.appendChild(css); | |
css.onload = function () |
/** | |
* Paginator | |
* | |
* The paginator can be used within any controller to easily set up | |
* some pagination options, including number of pages, page navigation | |
* and more. It is built to work with Laravel's own pagination library, | |
* which returns data in a particular format. | |
* | |
* Usage: | |
* Before you can use paginator, make sure you specify the URLs to your pagination |
<?php | |
$progressBar = $this->output->createProgressBar(count($users)); | |
$progressBar->setEmptyBarCharacter(' '); | |
$progressBar->setProgressCharacter('>'); | |
$progressBar->setBarCharacter('-'); | |
$progressBar->start(); | |
foreach ($users as $user) { | |
$this->performTask($user); |
#!/bin/bash | |
# Stop all containers | |
containers=`docker ps -a -q` | |
if [ -n "$containers" ] ; then | |
docker stop $containers | |
fi | |
# Delete all containers | |
containers=`docker ps -a -q` | |
if [ -n "$containers" ]; then | |
docker rm -f -v $containers |
public function index(){ | |
$categoryList = Category::all(); | |
return view('category.list')->with('categoryList', $categoryList); | |
} |
<?php | |
/* | |
* Place this with the rest of your rules. | |
* Doesn't need to be in an array as there are no pipes. | |
* Password is required with a minimum of 6 characters | |
* Should have at least 1 lowercase AND 1 uppercase AND 1 number | |
*/ | |
$rules = [ | |
'password' => 'required|min:6|regex:/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).+$/' | |
]; |
# Install Java | |
sudo apt-get install openjdk-7-jre-headless -y | |
# Download & install the Public Signing Key | |
wget -qO - http://packages.elasticsearch.org/GPG-KEY-elasticsearch | sudo apt-key add - | |
# Add the following to /etc/apt/sources.list | |
deb http://packages.elasticsearch.org/elasticsearch/1.3/debian stable main | |
# Update Aptitude |
// --- Compiling --- | |
$ wget http://download.redis.io/releases/redis-2.8.3.tar.gz | |
$ tar xzvf redis-2.8.3.tar.gz | |
$ cd redis-2.8.3 | |
$ make | |
$ make install | |
// --- or using yum --- | |
$ rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
$ rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm |