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
docker inspect -f='{{range .NetworkSettings.Networks}}{{println .Gateway}}{{end}}' <container-name> |
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
sudo sed -i 's/^Exec.*/& --explicitly-allowed-ports=10080/' /usr/share/applications/google-chrome.desktop |
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
zend_extension=xdebug.so | |
xdebug.remote_enable=1 | |
xdebug.remote_handler=dbgp | |
xdebug.remote_connect_back=1 | |
xdebug.remote_port=9001 | |
xdebug.remote_autostart=1 | |
xdebug.remote_host=172.17.0.1 | |
xdebug.idekey=PHPSTORM | |
xdebug.default_enable=0 | |
xdebug.profiler_aggregate=0 |
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
zend_extension=xdebug.so | |
xdebug.idekey = "PHPSTORM" | |
xdebug.remote_enable=on | |
xdebug.remote_handler=dbgp | |
xdebug.remote_connect_back=0 | |
xdebug.remote_host=host.docker.internal | |
xdebug.remote_port=9005 | |
xdebug.remote_autostart=1 | |
xdebug.default_enable=0 | |
xdebug.profiler_aggregate=0 |
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
zend_extension=xdebug.so | |
xdebug.idekey = "PHPSTORM" | |
xdebug.remote_enable=on | |
xdebug.remote_handler=dbgp | |
xdebug.remote_connect_back= on | |
xdebug.remote_port=9000 | |
xdebug.remote_autostart=on | |
xdebug.default_enable=0 | |
xdebug.profiler_aggregate=0 | |
xdebug.profiler_append=0 |
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
Find: (?<col>.*?) [x] Regex | |
Replace: '${col}' |
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
namespace App\Utils; | |
use Illuminate\Support\Collection; | |
class MariaDB | |
{ | |
/** | |
* @param $arr array|Collection |
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\Models; | |
use Illuminate\Database\Eloquent\Model as BaseModel; | |
abstract class Model extends BaseModel | |
{ | |
protected static $tableName = []; | |
public static function table(){ | |
$className = get_called_class(); |
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
/* | |
* Available context bindings: | |
* COLUMNS List<DataColumn> | |
* ROWS Iterable<DataRow> | |
* OUT { append() } | |
* FORMATTER { format(row, col); formatValue(Object, col) } | |
* TRANSPOSED Boolean | |
* plus ALL_COLUMNS, TABLE, DIALECT | |
* | |
* where: |
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
from fabric.api import env, run, cd, local, sudo | |
from fabric.contrib import files | |
from fabric.context_managers import lcd | |
import gitlab | |
gitlab_key = 'key' | |
gitlab_host = 'http://192.168.x.x' | |
env.hosts = ["192.168.x.x"] | |
env.user = "usuario" |
NewerOlder