Skip to content

Instantly share code, notes, and snippets.

View andreferraro's full-sized avatar
🎯
Focusing

Andre Ferraro andreferraro

🎯
Focusing
  • Brazil
  • 10:42 (UTC -03:00)
View GitHub Profile
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
location ~ \.(hh|php)$ {
proxy_intercept_errors on;
error_page 502 = @fallback;
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_keep_conn on;
include /etc/nginx.custom.d/fastcgi_params;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
#/bin/bash
cd
wget http://ufpr.dl.sourceforge.net/project/phpmyadmin/phpMyAdmin/4.4.10/phpMyAdmin-4.4.10-all-languages.zip
apt-get install unzip -y
unzip phpMyAdmin-4.4.10-all-languages.zip
mv phpMyAdmin-4.4.10-all-languages /var/www/phpmyadmin/
chown -R www-data:www-data /var/www/
chmod 775 -R /var/www/
GRANT USAGE ON mysql.* TO 'pma'@'localhost' IDENTIFIED BY 'senha';
GRANT USAGE ON mysql.* TO 'pma'@'srv.dominio.com' IDENTIFIED BY 'senha';
GRANT USAGE ON mysql.* TO 'pma'@'%' IDENTIFIED BY 'senha';
GRANT SELECT (
Host, User, Select_priv, Insert_priv, Update_priv, Delete_priv,
Create_priv, Drop_priv, Reload_priv, Shutdown_priv, Process_priv,
File_priv, Grant_priv, References_priv, Index_priv, Alter_priv,
Show_db_priv, Super_priv, Create_tmp_table_priv, Lock_tables_priv,
Execute_priv, Repl_slave_priv, Repl_client_priv
<?php
$cfg['blowfish_secret'] = 'EnsoExtremeBushidoTech';
$i = 0;
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'localhost';
#/bin/bash
cd
apt-get install curl git -y
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
APP_ENV=local
APP_DEBUG=true
APP_KEY=TwlfgT5igsg2CKRV9Z1K4L5yw2eLiDy6
DB_HOST=localhost
DB_DATABASE=NOME-DO-BANCO-DE-DADOS
DB_USERNAME=USUARIO-BANCO-DE-DADOS
DB_PASSWORD=SENHA
CACHE_DRIVER=file
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
<?php
use Illuminate\Database\Seeder;
use Illuminate\Database\Eloquent\Model;
class DatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*
<?php
use Illuminate\Database\Seeder;
class UserTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()