Laravel Valet is a lightweight development environment for macOS. It configures your Mac to run Nginx in the background and uses DnsMasq to proxy all requests on the *.test domain to your local machine.
- macOS
- Homebrew installed
| { | |
| "highlights": { | |
| "1": "https://www.fifa.com/en/watch/7wv3jFr0T2wczSuQbhgrSW", | |
| "2": "https://www.fifa.com/en/watch/1iidGe97khg8lmdSRopdh4", | |
| "3": "https://www.fifa.com/en/watch/5ekSKA6XJZqv9Fag9pI7sH", | |
| "4": "https://www.fifa.com/en/watch/6jzgitUqP6YyXpwwuY6VRc", | |
| "5": "https://www.fifa.com/en/watch/NdoxOQqn5cnkmfioABvsL", | |
| "6": "https://www.fifa.com/en/watch/1e8ayUzYWGZDbZUEU42bgQ", | |
| "7": "https://www.fifa.com/en/watch/1amePIIN9Rt7kvMwQGMPke", | |
| "8": "https://www.fifa.com/en/watch/6qvmyR3k0BcpuPrSmer7Mf", |
Laravel Valet is a lightweight development environment for macOS. It configures your Mac to run Nginx in the background and uses DnsMasq to proxy all requests on the *.test domain to your local machine.
Reference for building Gutenberg blocks using PHP only — no JavaScript build step, no React, no Node.js. Requires: WordPress 7.0+ or Gutenberg plugin 21.8+
Author: (ajithrn)
| #!/bin/bash | |
| # ============================================================================= | |
| # WordPress Posts & Media Cleanup Script | |
| # ============================================================================= | |
| # | |
| # Deletes WordPress posts and their associated media attachments (including | |
| # featured images) for a given year and optional month filter. Attachments | |
| # are deleted first, then posts. A database backup is taken before any | |
| # destructive action unless explicitly skipped. | |
| # |
| #!/bin/bash | |
| # Create the CSV file with header | |
| echo "url,username,password" > credentials.csv | |
| # Define a string of possible characters for the password | |
| char_pool="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" | |
| counter=0 | |
| for i in {a..z}; do |
| // Get $order object from $email | |
| $order = $email->object; | |
| // Now you have access to (see above)... | |
| if ( $order ) { | |
| $order->get_id(); | |
| $order->get_formatted_order_total( ); | |
| // etc. |
| <?php | |
| $args = array( | |
| 'post_status'=>'publish', | |
| 'post_type'=>array(TribeEvents::POSTTYPE), | |
| 'posts_per_page'=>10, | |
| //order by startdate from newest to oldest | |
| 'meta_key'=>'_EventStartDate', | |
| 'orderby'=>'_EventStartDate', | |
| 'order'=>'DESC', |
| # Trellis Database Backup script for all bedrock folders. | |
| # Use case backup all db before destroy vagrant and create. | |
| # need to run from trellis folder on terminal | |
| vagrant ssh | |
| cd /srv/www | |
| find . -maxdepth 1 -type d \( ! -name . \) -exec bash -c "cd '{}'/current && mkdir -p db_backup && wp db export db_backup/database_`date +%Y%m%d`.sql " \; |
https://github.com/rg3/youtube-dl/
apt-get install libav-tools ffmpeg # Linux (either one of either should do) brew install ffmpeg # OSX choco install ffmpeg # Windows