Related tutorial: https://code64.de/visionerdy/wordpress-backups/
This file contains 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
#/bin/bash | |
cd _seed | |
FILENAME=$(find . -maxdepth 1 -name [a-zA-Z0-9]*-migrate-[0-9]*.sql.gz) | |
gunzip ${FILENAME} -c > temp.sql | |
read -p "New Domain Name e.g. http://example.com: " replacement | |
cat temp.sql | sed -e "s@##DEV_URL##@${replacement}@g" > temp2.sql | |
cat temp2.sql | sed -e "s@##DEV_PATH##@${replacement}@g" > new_db.sql |
This file contains 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
# ignore everything in the root except the "wp-content" directory. | |
/* | |
!wp-content/ | |
# ignore all files starting with . | |
.* | |
# track this file .gitignore (i.e. do NOT ignore it) | |
!.gitignore |
Note that you will not see the encoded email address in the inspector but it will display as encoded in the source code, view source will display it appropriately.
This file contains 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 | |
// Prefetch For Speed Up | |
function dns_prefetch() { | |
$prefetch = 'on'; | |
echo "\n <!-- DNS Prefetching Start --> \n"; | |
echo '<meta http-equiv="x-dns-prefetch-control" content="'.$prefetch.'">'."\n"; | |
if ($prefetch != 'on') { |
I have some data that I have in a config file or array that I need to make sure all of that data is in laravel.
This is how I accomplish it using firstOfCreate()
. In my problem I had a config file with arrays of roles, data types, and permissions, and the latter needed to be merged but it should not create it if it already exists.
- https://stackoverflow.com/questions/50971524/laravel-5-6-intl-tel-input-compatibility-issue-with-app-js
- https://github.com/jackocnr/intl-tel-input
- https://github.com/googlei18n/libphonenumber
- https://laravel-phone.herokuapp.com/
- https://github.com/propaganistas/laravel-phone
- https://github.com/Propaganistas/Laravel-Intl