Skip to content

Instantly share code, notes, and snippets.

View MushuLeDragon's full-sized avatar
🐉
On Fire

MushuLeDragon MushuLeDragon

🐉
On Fire
View GitHub Profile
@MushuLeDragon
MushuLeDragon / AbstractMigrationCommand.php
Last active March 17, 2021 11:19 — forked from jmsche/AbstractMigrationCommand.php
Proxy commands for Doctrine Migrations bundle with multiple entity managers.
<?php
declare(strict_types=1);
namespace App\Command\Migration;
use Doctrine\Common\Persistence\ManagerRegistry;
use Doctrine\Migrations\Configuration\EntityManager\ExistingEntityManager;
use Doctrine\Migrations\Configuration\Migration\YamlFile;
use Doctrine\Migrations\DependencyFactory;
@MushuLeDragon
MushuLeDragon / sql_import.php
Created March 16, 2020 09:19 — forked from b4oshany/sql_import.php
PHP PDO sql file import.
<?php
namespace libs\mysql;
class PDODbImporter{
private static $keywords = array(
'ALTER', 'CREATE', 'DELETE', 'DROP', 'INSERT',
'REPLACE', 'SELECT', 'SET', 'TRUNCATE', 'UPDATE', 'USE',
'DELIMITER', 'END'
);
@MushuLeDragon
MushuLeDragon / git-update-a-fork.md
Last active February 11, 2020 10:50 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@MushuLeDragon
MushuLeDragon / composer.json
Created January 31, 2020 15:34 — forked from andyshinn/composer.json
Docker Compose PHP Composer Example
{
"require": {
"mfacenet/hello-world": "v1.*"
}
}
# remove specific file from git cache
git rm --cached filename
# remove all files from git cache
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"
@MushuLeDragon
MushuLeDragon / gist:fef7ca7637ccc0a04686cd1b8d3ac7f7
Created November 8, 2018 13:31 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@MushuLeDragon
MushuLeDragon / .gitignore
Created February 13, 2018 10:32 — forked from chhh/.gitignore
.gitignore file for IDEA, Eclipse, NetBeans
#
# Project specific excludes
#
tomcat
#
# Default excludes
#