Verify Permissions
diskutil verifyPermissions /
Repair Permissions
diskutil repairPermissions /
<!DOCTYPE html> | |
<html lang="tr"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Çekiliş</title> | |
<style> | |
body { | |
font-family: Tahoma, sans-serif; | |
font-size: 40px; | |
} |
<?php | |
// Get an array of all files in a directory. | |
$files = File::files('path_to_dir'); | |
// Get all of the files from the given directory (recursive). | |
$files = File::allFiles('path_to_dir'); | |
// Get all of the directories within a given directory. | |
$files = File::directory('path_to_dir'); |
<?php | |
/********************************************************************************************* | |
* Example usage (In view) | |
* <div class="welcome"> | |
<?php echo Form::open(array('route'=>'process','class'=>'form-horizontal'))?> | |
<?php echo Form::textField('first_name')?> | |
<?php echo Form::textField('last_name')?> | |
<?php echo Form::emailField('email')?> | |
<?php echo Form::passwordField('password')?> | |
<?php echo Form::selectField('select_one', array('1'=>'abc', '2'=>'def'))?> |
// --- 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 |
# 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 |
<?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).+$/' | |
]; |
public function index(){ | |
$categoryList = Category::all(); | |
return view('category.list')->with('categoryList', $categoryList); | |
} |
#!/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 |
<?php | |
$progressBar = $this->output->createProgressBar(count($users)); | |
$progressBar->setEmptyBarCharacter(' '); | |
$progressBar->setProgressCharacter('>'); | |
$progressBar->setBarCharacter('-'); | |
$progressBar->start(); | |
foreach ($users as $user) { | |
$this->performTask($user); |