IF LINUX SERVER, CONFIGURE APACHE2/NGINX via APT COMMAND
LEMP INSTALLATION RESOURCE - https://www.howtoforge.com/tutorial/ubuntu-laravel-php-nginx/
RPM (RED HAT, FEDORA, CentOS), yum COMMAND
yum install php
! | |
" | |
# | |
$ | |
% | |
& | |
' | |
( | |
) | |
* |
import openai | |
import streamlit as st | |
from streamlit_chat import message | |
from dotenv import load_dotenv | |
import os | |
from langchain.embeddings.openai import OpenAIEmbeddings | |
from langchain.vectorstores import Chroma | |
import openai | |
from langchain.document_loaders import UnstructuredMarkdownLoader | |
from langchain.chains.question_answering import load_qa_chain |
import openai | |
import streamlit as st | |
from streamlit_chat import message | |
from dotenv import load_dotenv | |
import os | |
from langchain.embeddings.openai import OpenAIEmbeddings | |
from langchain.vectorstores import Chroma | |
import openai | |
from langchain.document_loaders import UnstructuredMarkdownLoader | |
from langchain.chains.question_answering import load_qa_chain |
<?php | |
/** | |
* adds custom js file to handle inline error messages | |
*/ | |
add_action( 'woocommerce_after_checkout_form', 'add_custom_validation_script', 20 ); | |
function add_custom_validation_script() { | |
wp_enqueue_script( |
IF LINUX SERVER, CONFIGURE APACHE2/NGINX via APT COMMAND
LEMP INSTALLATION RESOURCE - https://www.howtoforge.com/tutorial/ubuntu-laravel-php-nginx/
RPM (RED HAT, FEDORA, CentOS), yum COMMAND
yum install php
####### Apache Installation | |
sudo apachectl stop | |
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist 2>/dev/null | |
brew install httpd | |
#Now we just need to configure things so that our new Apache server is auto-started | |
sudo brew services start httpd | |
#You can see Apache running on the browser by default http://localhost:8080 |
// Courtesy of CSS Tricks : https://css-tricks.com/findingfixing-unintended-body-overflow/ | |
var docWidth = document.documentElement.offsetWidth; | |
[].forEach.call( | |
document.querySelectorAll('*'), | |
function(el) { | |
if (el.offsetWidth > docWidth) { | |
console.log(el); | |
} |
<?php | |
/** | |
* Customer new account email | |
* | |
* This template has been overriden to change account creation text. | |
* | |
* @see https://docs.woocommerce.com/document/template-structure/ | |
* @author WooThemes | |
* @package WooCommerce/Templates/Emails | |
* @version 1.6.4 |
osxfuse
:brew cask install osxfuse
Reboot your Mac.
Install ntfs-3g
:
To connect Jetpack in your local installation, you'll need a way for WP.com servers to reach your server. That can be done in a number of different ways:
But these options fall short of ngrok
, which is a "localhost tunnel". It basically allows the Internet to hit a local port on your machine without worrying about ports or IPs.
As long as ngrok
is running, Jetpack / WP.com will be able to communicate with your local site. This will allow remote modules like Site Search and Manage to work.