Skip to content

Instantly share code, notes, and snippets.

View danitome24's full-sized avatar
💻
enjoying

Daniel Tomé Fernández danitome24

💻
enjoying
View GitHub Profile
@danitome24
danitome24 / composer-install.sh
Created July 23, 2018 16:49
Running composer command on docker
#!/bin/bash
# Simply run
docker run --rm -v $(pwd):/app -w /app composer install
@danitome24
danitome24 / gist:dba900dade12107df3f6fdd317a759a1
Last active March 13, 2019 10:29
run npm in single command docker
# Run npm install on docker single command
docker run --rm -v $(pwd):/app -w /app node npm install
CREATE USER 'nombre_usuario'@'localhost' IDENTIFIED BY 'tu_contrasena';
GRANT ALL PRIVILEGES ON * . * TO 'nombre_usuario'@'localhost';
FLUSH PRIVILEGES;
@danitome24
danitome24 / deployer.php
Created June 7, 2017 11:04
Deployer for Silex app
<?php
namespace Deployer;
require 'recipe/common.php';
// Configuration
set('repository', 'git@github.com:username/repo.git');
set('shared_files', ['config/parameters.yml']);