| Description | Command |
|---|---|
| Start a new session with session name | screen -S <session_name> |
| List running sessions / screens | screen -ls |
| Attach to a running session | screen -x |
| Attach to a running session with name | screen -r |
| ================================================================================= | |
| ENV Summary: | |
| TIME: Tue Jan 28 2025 14:38:10 GMT+0100 (Central European Standard Time) | |
| TITLE: ember | |
| ARGV: | |
| - /home/arkshine/.nvm/versions/node/v18.20.2/bin/node | |
| - /home/arkshine/discourse/app/assets/javascripts/discourse/node_modules/ember-cli/bin/ember | |
| - server |
This guide will help you install systemd to run as normal under WSL2 Debian. This will allow services like microk8s, docker, cockpit and many more to just work during a WSL session. Note: this was tested on Windows 10 Build 21H2, running Debian 11 in WSL2.
-
To enable
systemdunder WSL we require a tool calledsystemd-genie -
Download
install-sg.shto a temporary location/tmp:
cd /tmp| <?php | |
| /** | |
| * == About this Gist == | |
| * | |
| * Code to add to wp-config.php to enhance information available for debugging. | |
| * | |
| * You would typically add this code below the database, language and salt settings | |
| * | |
| * Oh.. and *do* make sure you change the path to the log file to a proper file path on your server (make sure it exists). | |
| * |
Put this on your wp-config.php
/* That's all, stop editing! Happy blogging. */
define('FS_METHOD', 'direct');
| const functions = require('firebase-functions') | |
| const admin = require('firebase-admin') | |
| const express = require('express') | |
| const app = express() | |
| const auth = admin.auth() | |
| const cors = require('cors') | |
| const cookieParser = require('cookie-parser') | |
| const DiscourseSSO = require('discourse-sso') | |
| const env = functions.config() | |
| const __DEBUG__ = false |
FULLTEXT support to WordPress is simple if you have access to phpMyAdmin. If not, it can still be done but is a little trickier if you’re not used to command-line. We’ll demonstrate how to modify your WordPress database using phpMyAdmin.
-
Start out by having a set of keywords to test against. You’ll need ‘before’ and ‘after’ test results. Also, I can’t stress this enough but back up your database before proceeding!
-
Next, log into your phpMyAdmin page and navigate to your {prefix}_posts table.
-
Click on the “Structure” tab.
| # For phpize | |
| apt install php7.3-dev | |
| # Install extensions | |
| pecl install ev | |
| pecl install event | |
| # Create configurations | |
| sudo echo 'extension=ev.so' > /etc/php/7.3/mods-available/ev.ini | |
| sudo echo 'extension=event.so' > /etc/php/7.3/mods-available/event.ini |
| [wp-xmlrpc] | |
| enabled = true | |
| filter = wp-xmlrpc | |
| action = iptables-multiport[name=wp-xmlrpc, port="http,https"] | |
| logpath = /var/www/vhosts/system/*/logs/*access*log | |
| /var/log/httpd/*access_log | |
| bantime = 86400 | |
| maxretry = 0 |
| # -*- mode: sh; sh-basic-offset: 3; indent-tabs-mode: nil; -*- | |
| # vim: set filetype=sh sw=3 sts=3 expandtab autoindent: | |
| # | |
| # borg handler script for backupninja | |
| # requires borgbackup | |
| # | |
| # Guillaume Subiron, Sysnove, 2016 | |
| # | |
| # Copyright 2016 Guillaume Subiron <guillaume@sysnove.fr> | |
| # This work is free. You can redistribute it and/or modify it under the |