Add into begining of file ~/.bashrc
[ -d ~/bin ] && PATH=~/bin:$PATH
A mysql and a mysqldump without user:passwod
git config --global http.sslVerify false | |
``` | |
#~/.gitconfig | |
[alias] | |
co = checkout | |
br = branch | |
ci = commit | |
st = status | |
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short | |
type = cat-file -t |
#! /bin/sh | |
# /etc/init.d/mailhog | |
### BEGIN INIT INFO | |
# Provides: mailhog | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start MailHog at boot time. | |
# Description: Enable MailHog. |
#! /bin/sh | |
# /etc/init.d/mailhog | |
### BEGIN INIT INFO | |
# Provides: mailhog | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start MailHog at boot time. | |
# Description: Enable MailHog. |
<?php | |
declare(strict_types=1); | |
namespace Tests\Core; | |
use PHPUnit\Framework\Test; | |
use PHPUnit\Framework\TestListener; | |
use PHPUnit\Framework\TestListenerDefaultImplementation; | |
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; |
Wide open nginx CORS configuration CORS is a W3C working standard that currently has decent (but inconsistent) implementions in Firefox, Chrome and Safari. I use it primarily to test PhoneGap apps in regular browsers instead of testing the code in simulators. PhoneGap apps can skip the usual origin checks via configuration, but running a PhoneGap app takes more setup - which make it harder for designers to work with the app. Running apps in simulators or on actual devices also takes al lot more time that just reloading a browser and this annoys me.
#https://www.vagrantup.com/docs/synced-folders/nfs.html | |
``` | |
$enable_serial_logging = false | |
config.vm.provider "virtualbox" do |v| | |
v.customize [ | |
"storagectl", :id, | |
"--name", "SATA Controller", | |
"--hostiocache", "on" | |
] |
$fileSystem = new Filesystem(); | |
$fileSystem->mkdir($target); | |
$directoryIterator = new \RecursiveDirectoryIterator($source, \RecursiveDirectoryIterator::SKIP_DOTS); | |
$iterator = new \RecursiveIteratorIterator($directoryIterator, \RecursiveIteratorIterator::SELF_FIRST); | |
foreach ($iterator as $item) { | |
if ($item->isDir()) { | |
$targetDir = $target.DIRECTORY_SEPARATOR.$iterator->getSubPathName(); | |
$fileSystem->mkdir($targetDir); | |
} else { |
http://www.hackersgarage.com/install-mod_proxy-apache-module-on-whmcpanel-ceentos-linux-server.html | |
Installation : | |
Check Apache current version : | |
/usr/local/apache/bin/httpd -v | |
Output : | |
Server version: Apache/2.2.19 (Unix) |