This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Check if Docker is running | |
if ! docker info &>/dev/null; then | |
echo "Docker is not running. Please start Docker and try again." | |
exit 1 | |
fi | |
# Check if the Docker container exists | |
if docker ps -a --format '{{.Names}}' | grep -q "openpanel_mysql"; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- phpMyAdmin SQL Dump | |
-- version 5.2.1 | |
-- https://www.phpmyadmin.net/ | |
-- | |
-- Host: localhost | |
-- Generation Time: Sep 21, 2023 at 02:09 PM | |
-- Server version: 8.0.34-0ubuntu0.20.04.1 | |
-- PHP Version: 7.4.3-4ubuntu2.19 | |
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker login --username=openpanel | |
# NGINX | |
# | |
# https://hub.docker.com/r/openpanel/nginx/tags | |
# | |
cd /usr/local/panel/DOCKER/nginx/ | |
docker build -t openpanel/nginx:VERZIJAAAA . | |
docker tag openpanel/nginx:VERZIJAAAA openpanel/nginx:latest |
We can make this file beautiful and searchable if this error is corrected: No tabs found in this TSV file in line 0.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TsvHttpData-1.0 | |
https://get.openpanel.co/downloads/0.1.6/openpanel/38/compressed.tar.gz | |
https://get.openpanel.co/downloads/0.1.6/openpanel/39/compressed.tar.gz | |
https://get.openpanel.co/downloads/0.1.6/openpanel/310/compressed.tar.gz | |
https://get.openpanel.co/downloads/0.1.6/openpanel/311/compressed.tar.gz | |
https://get.openpanel.co/downloads/0.1.6/openadmin/38/compressed.tar.gz | |
https://get.openpanel.co/downloads/0.1.6/openadmin/39/compressed.tar.gz | |
https://get.openpanel.co/downloads/0.1.6/openadmin/310/compressed.tar.gz | |
https://get.openpanel.co/downloads/0.1.6/openadmin/311/compressed.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
databases=`mysql -e "SHOW DATABASES;" | tr -d "| " | grep -v Database` | |
for db in $databases; do | |
if [[ "$db" != "information_schema" ]] && [[ "$db" != "performance_schema" ]] && [[ "$db" != "mysql" ]] && [[ "$db" != _* ]] ; then | |
echo "Exporting database: $db" | |
mysqldump --databases $db > `date +%Y%m%d`.$db.sql | |
fi | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.8' | |
services: | |
db: | |
image: mysql:latest | |
volumes: | |
- db_data:/var/lib/mysql | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: your_mysql_root_password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Remote Post Check for WooCommerce | |
Description: Checks the remote post and displays the result in the WordPress admin page with troubleshooting info. | |
Version: 1.0 | |
Author: Stefan Pejcic | |
Author URL: https://pejcic.rs | |
*/ | |
function check_remote_post() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bash <(curl -sSL https://get.openpanel.co/) | |
cd /usr/local/admin/ | |
wget FAJL/2087-main.zip | |
unzip 2087-main.zip | |
mv modules/ modulesOLD/ | |
mv 2087-main/modules/ modules | |
mv templates/ templatesOLD/ | |
mv 2087-main/templates/ templates | |
mv 2087-main/static/pages/ static/pages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import json | |
import socket | |
from flask import Flask, Response, abort, render_template, request, send_file, g, jsonify, session, url_for, flash, redirect, get_flashed_messages | |
import subprocess | |
import datetime | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NOTICE: You are seeing this message because you have apache2 package installed. | |
PHP extension php8.1-imagick is now successfully installed. | |
Hit:1 http://security.ubuntu.com/ubuntu jammy-security InRelease | |
Err:2 https://artifacts.elastic.co/packages/7.x/apt stable InRelease | |
403 Forbidden [IP: 34.120.127.130 443] | |
Hit:3 http://archive.ubuntu.com/ubuntu jammy InRelease | |
Hit:4 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease | |
Hit:5 http://archive.ubuntu.com/ubuntu jammy-updates InRelease | |
Hit:6 http://archive.ubuntu.com/ubuntu jammy-backports InRelease | |
Reading package lists... |
NewerOlder