Export users export-mysql-user.sh
Backup Apache folders, WWW folders backup-apache-mysql-wwwfolder.sh
| import os | |
| os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' | |
| import tensorflow as tf | |
| import tensorflow_hub as hub | |
| import numpy as np | |
| import re | |
| # Intents and responses | |
| intents = { |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Simple Chatbot</title> | |
| <style> | |
| body { | |
| font-family: Arial, sans-serif; | |
| } |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>circle.html</title> | |
| <script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/universal-sentence-encoder@latest"></script> | |
| <style> | |
| body { |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>rectangle.html</title> | |
| <script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/universal-sentence-encoder@latest"></script> | |
| <style> | |
| body { |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>hello-02.html</title> | |
| <script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/universal-sentence-encoder@latest"></script> | |
| <style> | |
| body { |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>hello.html</title> | |
| <script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/universal-sentence-encoder@latest"></script> | |
| <style> |
| 1.java InstallCert | |
| 2. keytool -exportcert -alias [domain]-1 -keystore jssecacerts -storepass changeit -file [domain].cer | |
| 3. sudo keytool -importcert -alias [domain]-1 -keystore ~/glassfish5/glassfish/domains/domain1/config/cacerts.jks -storepass changeit -file [domain].cer | |
| JAVA: InstallCert.java | |
| ================================================== | |
| //https://github.com/escline/InstallCert |
| TO_BE_DEL="$1" | |
| IFS="" | |
| while read -r file ; do | |
| rm -rf "$file" | |
| done < "$TO_BE_DEL" | |
| #usage: delFromFile.sh file.txt |
| #!/bin/sh | |
| # wget -O backup-apache-mysql-wwwfolder.sh https://gist.githubusercontent.com/tbvinh/51bc2b297b1b864546ba42e4b2a92a04/raw/backup-apache-mysql-wwwfolder.sh?rnd=`date +%s` | |
| ## 0 ====================== | |
| echo 1. Backup apache .conf files | |
| echo 2. Backup www/ folder | |
| echo 3. Backup mysql | |
| ## 1 ====================== |
Export users export-mysql-user.sh
Backup Apache folders, WWW folders backup-apache-mysql-wwwfolder.sh