This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Outputs: database_2019-09-09_14-15-12 | |
| @DATABASE@_%Y-%m-%d_%H-%M-%S | |
| // Outputs: database_20190909_141512 | |
| @DATABASE@_%Y%m%d_%H%M%S |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Exports the database to an sql file with a timestamp | |
| # USERNAME = username | |
| # PASSWORD = password | |
| # DATABASE = database | |
| # PATH = location to store the database | |
| mysqldump -u [USERNAME] -p[PASSWORD] [DATABASE] > [PATH]/$(date +\%Y\%m\%d-\%H\%M\%S)_[DATABASE].sql | |
| # Exports to a gzip file | |
| mysqldump -u [USERNAME] -p[PASSWORD] [DATABASE] | gzip > [PATH]/$(date +\%Y\%m\%d-\%H\%M\%S)_[DATABASE].sql.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE USER '{{ BACKUP_USER_NAME }}'@'localhost' IDENTIFIED BY '{{ BACKUP_USER_PASSWORD }}'; | |
| GRANT SELECT, SHOW VIEW, RELOAD, REPLICATION CLIENT, EVENT, TRIGGER ON {{ BACKUP_DATABASE_NAME }}.* TO '{{ BACKUP_USER_NAME }}'@'localhost'; | |
| FLUSH PRIVILEGES; | |
| -- CREATE DATABASE | |
| CREATE DATABASE {{DATABASE_NAME}} CHARACTER SET utf8 COLLATE utf8_general_ci; | |
| CREATE USER '{{DATABASE_USER}}'@'{{DATABASE_HOST}}' IDENTIFIED BY '{{BACKUP_USER_PASSWORD}}'; | |
| GRANT ALL PRIVILEGES ON {{DATABASE_NAME}}.* TO '{{DATABASE_USER}}'@'{{DATABASE_HOST}}' WITH GRANT OPTION; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Zoológicos</title> | |
| <meta name="description" content=""> | |
| <meta name="author" content=""> | |
| </head> | |
| <body> | |
| <h1>Zoológicos</h1> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using System.IO; | |
| public class GameManager : MonoBehaviour | |
| { | |
| public Transform Player; | |
| // Start is called before the first frame update | |
| void Start() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| using System.Collections; | |
| public class MoveToTargets : MonoBehaviour { | |
| // Lugar a donde vamos | |
| public Transform[] Targets; | |
| public int _targetIndex = 0; | |
| // Velocidad que tenemos | |
| public float Speed = 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Providers; | |
| use Illuminate\Support\ServiceProvider; | |
| use Illuminate\Support\Facades\Schema; | |
| class AppServiceProvider extends ServiceProvider | |
| { | |
| /** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Generates margin and padding classes: | |
| * usage: | |
| * @include gen-mar-pad(10, px); | |
| * generates: | |
| * .margin-top-10 { | |
| * margin-top: 10px; | |
| * } | |
| * | |
| * .padding-top-10 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ln -s /Applications/AMPPS/var/mysql.sock /tmp/mysql.sock |