-
Open the Terminal
-
Use
mysqldumpto backup your databases -
Check for MySQL processes with:
ps -ax | grep mysql -
Stop and kill any MySQL processes
-
Analyze MySQL on HomeBrew:
brew remove mysql
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
| const mix = require('laravel-mix'); | |
| const tailwindcss = require('tailwindcss'); | |
| const rootPath = Mix.paths.root.bind(Mix.paths); | |
| const tailwindPlugins = function(configFile, paths) { | |
| const pluginList = [tailwindcss(configFile)]; | |
| if (mix.inProduction()) { | |
| pluginList.push(require('@fullhuman/postcss-purgecss')({ |
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 | |
| $section = Craft::$app->sections->getSectionByHandle('journalArticles'); | |
| $entryTypes = $section->getEntryTypes(); | |
| $entryType = reset($entryTypes); | |
| $entry = new Entry([ | |
| 'sectionId' => $section->id, | |
| 'typeId' => $entryType->id, | |
| 'fieldLayoutId' => $entryType->fieldLayoutId, |
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 | |
| URL::macro('social', function ($name, $replacement = '#') { | |
| return array_get([ | |
| 'facebook' => 'https://www.facebook.com/mypage/', | |
| 'instagram' => 'https://www.instagram.com/mypage/', | |
| 'pinterest' => 'https://nl.pinterest.com/mypage/', | |
| ], $name), $replacement); | |
| }); |
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
| { | |
| "basics": { | |
| "name": "Your first and last name", | |
| "label": "", | |
| "picture": "", | |
| "email": "Your email address", | |
| "phone": "A phone number, with any formatting you like. E.g. (555) 555-5555.", | |
| "degree": "", | |
| "website": "Your website URL", | |
| "summary": "A one-sentence to one-paragraph overview text. Do not include any line-breaks.", |
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 | |
| use Aws\CloudSearch\CloudSearchClient; | |
| use Aws\CloudSearchDomain\CloudSearchDomainClient; | |
| // http://docs.aws.amazon.com/aws-sdk-php/v2/guide/service-cloudsearchdomain.html | |
| $client = CloudSearchDomainClient::factory(array( | |
| //'endpoint' => 'https://doc-example-xxx.ap-southeast-1.cloudsearch.amazonaws.com', | |
| 'endpoint' => 'https://search-example-xxx.ap-southeast-1.cloudsearch.amazonaws.com', |
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
| <template> | |
| <div> | |
| <nav-bar></nav-bar> | |
| <cookie-info></cookie-info> | |
| <router-view></router-view> | |
| <corporate-footer></corporate-footer> | |
| </div> |
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
| # stop script on error signal | |
| set -e | |
| # remove old deployment folders | |
| if [ -d "/home/forge/deploy" ]; then | |
| rm -R /home/forge/deploy | |
| fi | |
| if [ -d "/home/forge/backup" ]; then | |
| rm -R /home/forge/backup | |
| fi |
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 | |
| // | |
| // delete-old-tweets.php - https://github.com/timdp | |
| // | |
| // -- Instructions -- | |
| // 1. Save this script somewhere as delete-old-tweets.php | |
| // 2. Get your Twitter archive and extract it to the same folder | |
| // 3. Clone https://github.com/themattharris/tmhOAuth to the same folder | |
| // 4. Register an app at dev.twitter.com and enter its credentials below |