Create a folder based on the filename, but exclude the extension, then move the original item with the same name into the folder.
before:
Folder
|- File1.ext
|- File2.ext
|- File3.ext
|- File4.ext
[Unit] | |
Description=Goaccess Web log report. | |
After=network.target | |
[Service] | |
Type=simple | |
User=root | |
Group=root | |
Restart=always | |
ExecStart=/usr/local/bin/goaccess -a -g -f /var/log/nginx/access.log -o /srv/www/goaccess/index.html --real-time-html --ws-url <your url> |
After a reboot, i can no longer connect to my Debian 10 server in SSH. | |
I receive the following error message: Socket is closed: Socket closed by remote peer | |
The identifier/password are correct (i don't use a key), I tried with Putty, ZenTermLite and Filezilla clients in sFTP mode. | |
# log filezilla | |
Status: Connecting to xx.xx.xx.xx... | |
Response: fzSftp started, protocol_version=9 | |
Command: open "root@xx.xx.xx.xx" 22 |
/// QUERY - Checking if an email address if valid /// | |
SELECT email, | |
email REGEXP '^[A-Za-z0-9._%\-+!#$&/=?^|~]+@[A-Za-z0-9.-]+[.][A-Za-z]+$' AS valid_email | |
FROM email_table | |
/// RESULT /// | |
email | valid_email |
#!/bin/bash | |
# https://null-byte.com/turn-forums-into-c-c-servers-0196708/ | |
while true; do | |
forumUser="tokyoneon"; | |
username="tokyoneon@email.com"; | |
password="treHGFd76547^%$"; | |
cookies='/tmp/forum_cookies'; | |
function urlencode () |
Note: This is the guide for v 2.x.
For the v3, please follow this url: https://blog.csdn.net/sam_shan/article/details/80585240 Thanks @liy-cn for contributing.
Download: StarUML.io
Source: jorgeancal
#protonmail #debian #linux
Currently protonmail bridge for linux is distributed as part of an open beta program, but soon it will be made public (https://protonmail.com/bridge/install).
Consider that the bridge linux client requires a paid protonmail account to work.
# split the file into a file of 50,000 lines. | |
split -b 50000 bigfile.txt | |
# OR split the file into a 100MB file. | |
split -b 100M bigfile.txt | |
# extract the email addresses contained in all the files of a directory | |
grep -r -E -h -o "[[:alnum:]+\.\_\-]*@[[:alnum:]+\.\_\-]*" /dir/* > emails.txt | |
# remove duplicates and sort order ASC |
install Nginx, SSL Let's Encrypt, PHP7.3, MySQL, PHPmyadmin, Postfix on Ubuntu 19.10 x64 (Eoan Ermine) | |
package version : | |
- nginx-extras 1.16.1 | |
- php7.3 fpm 7.3.11 | |
- mysql 8.0.18 | |
- phpmyadmin 4.6.6-5 | |
- postfix 3.4.5-1 | |
- certbot |
<?php | |
// I had a command line (CLI) script written in PHP that I wanted to be able to | |
// run via the web, to save having to open a terminal and SSH connection each | |
// time. | |
// First I had to modify the console script so it could output messages to | |
// either the console, using STDOUT or STDERR, or the web, which requires | |
// flushing the buffer each time: |