TESTED: Linux 20.04
Quick start script for Minimal nVIM
Run the command with sudo
# 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 |
<?php | |
/** | |
* Update the Permalink of a Specific Category | |
* | |
* @param $permalink | |
* @param $term | |
* @param $taxonomy | |
* | |
* @return mixed | |
*/ |
## 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 |
#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; |
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 |
php_value upload_max_filesize 64M | |
php_value post_max_size 64M | |
php_value max_execution_time 300 | |
php_value max_input_time 300 |
/** | |
* 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 |
/** | |
* Google Translate Module | |
* @author Rhythm Shahriar | |
* @version 1.0 | |
*/ | |
//in body | |
//<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateInit"></script> | |
function googleTranslateInit() { | |
new google.translate.TranslateElement({pageLanguage: 'en', includedLanguages: 'en,ru', layout: google.translate.TranslateElement.FloatPosition.TOP_LEFT}, 'google_translate'); |