A blog series for PHP developers working on larger-than-average Laravel projects
Written for projects with a development lifespan of six to twelve months, with a team of three to six developers working on them simultaneously.
| # SETUP # | |
| DOMAIN=example.com | |
| PROJECT_REPO="[email protected]:example.com/app.git" | |
| AMOUNT_KEEP_RELEASES=5 | |
| RELEASE_NAME=$(date +%s--%Y_%m_%d--%H_%M_%S) | |
| RELEASES_DIRECTORY=~/$DOMAIN/releases | |
| DEPLOYMENT_DIRECTORY=$RELEASES_DIRECTORY/$RELEASE_NAME | |
| # stop script on error signal (-e) and undefined variables (-u) |
| { | |
| "Create public function": { | |
| "prefix": "pubf", | |
| "body": [ | |
| "public function $1()", | |
| "{", | |
| "\t$2", | |
| "}", | |
| ], | |
| "description": "Create public function" |
| <?php | |
| add_filter( 'elementor/widget/render_content', function($output){ | |
| // replace the | |
| $re = '/(<svg[^>]+class="[^"]*e-fab-twitter".*?<path\s+d=")(.+?)(".+?<\/svg>)/s'; | |
| $output = preg_replace_callback($re, function($matches){ | |
| $path = "M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"; | |
| return $matches[1].$path.$matches[3]; | |
| }, $output); | |
| return $output; |
| <?php | |
| abstract class BaseTestCase extends PHPUnit\Framework\TestCase | |
| { | |
| /** | |
| * Reset the properties to save memory after each test. | |
| * @see https://kriswallsmith.net/post/18029585104/faster-phpunit | |
| */ | |
| protected function tearDown(): void | |
| { |
| #!/bin/bash | |
| # Made by st0rmis | |
| # Get the last tag, increment major, minor or patch version and push it | |
| declare -a valid_versions=('major' 'minor' 'patch') | |
| CURTAG=`git fetch --tags && git tag -l --sort=-creatordate | head -1` | |
| CURTAG="${CURTAG/v/}" | |
| IFS='.' read -a vers <<< "$CURTAG" |
| ############## SPOTIFY ################### | |
| 127.0.0.1 media-match.com | |
| 127.0.0.1 adclick.g.doublecklick.net | |
| 127.0.0.1 www.googleadservices.com | |
| 127.0.0.1 pagead2.googlesyndication.com | |
| 127.0.0.1 googleads.g.doubleclick.net | |
| 127.0.0.1 pubads.g.doubleclick.net | |
| 127.0.0.1 securepubads.g.doubleclick.net | |
| 127.0.0.1 www.omaze.com | |
| 127.0.0.1 omaze.com |
https://github.com/PacktPublishing free to download books code by Packet
https://github.com/EbookFoundation/free-programming-books Very immense
| CREATE TABLE IF NOT EXISTS `country` ( | |
| `id` int(11) NOT NULL AUTO_INCREMENT, | |
| `iso` char(2) NOT NULL, | |
| `name` varchar(80) NOT NULL, | |
| `nicename` varchar(80) NOT NULL, | |
| `iso3` char(3) DEFAULT NULL, | |
| `numcode` smallint(6) DEFAULT NULL, | |
| `phonecode` int(5) NOT NULL, | |
| PRIMARY KEY (`id`) | |
| ) ENGINE=MyISAM DEFAULT CHARSET=latin1; |