TESTED: Linux 20.04
Quick start script for Minimal nVIM
Run the command with sudo
| /** | |
| * This will equal height all grids as well as | |
| * limit the title and also add (...) end of it | |
| * | |
| * @author Rhythm Shahriar | |
| * @version 1.0 | |
| */ | |
| (function ($) { | |
| //max equal heights parent and title |
| php_value upload_max_filesize 64M | |
| php_value post_max_size 64M | |
| php_value max_execution_time 300 | |
| php_value max_input_time 300 |
| cd repository | |
| git checkout --orphan orphan_name | |
| git rm -rf . | |
| rm '.gitignore' | |
| echo "#Title of Readme" > README.md | |
| git add README.md | |
| git commit -a -m "Initial Commit" | |
| git push origin orphan_name |
| #enable subdir multisite | |
| #if (!-e $request_filename) { | |
| # rewrite ^(/[^/]+/wp-admin)$ $scheme://$host$1/ redirect; | |
| # rewrite ^(/[^/]+)?(/wp-.*) $2 last; | |
| # rewrite ^(/[^/]+)?(/.*\.php) $2 last; | |
| #} | |
| #enabled subdir multisite media files | |
| #rewrite ^(/[^/]+/)?files/(.+) /wp-includes/ms-files.php?file=$2; |
| ## Install - Ubuntu | |
| # sudo apt install supervisor -y | |
| ## Place this file in /etc/supervisor/conf.d | |
| ## add this config for supervisor process | |
| # supervisorctl reread | |
| ## Update the process | |
| # supervisorctl update | |
| [program:prod-app-queue-worker] | |
| process_name=%(program_name)s_%(process_num)02d |
| <?php | |
| /** | |
| * Update the Permalink of a Specific Category | |
| * | |
| * @param $permalink | |
| * @param $term | |
| * @param $taxonomy | |
| * | |
| * @return mixed | |
| */ |
| # prefix to screens | |
| unbind C-b | |
| unbind '"' | |
| unbind % | |
| bind-key - split-window -h | |
| bind-key | split-window -v | |
| set-option -g prefix C-a | |
| # quality of life | |
| set -g history-limit 10000 |