Search found 200 matches
- Sat Aug 06, 2022 11:14 am
- Forum: Shell
- Topic: delete a block of text in nano
- Replies: 1
- Views: 5408
delete a block of text in nano
Does anyone know how to delete a block of multiple lines text in nano ?
- Sun Jul 31, 2022 9:55 am
- Forum: Servers
- Topic: linux verify dates of SSL certificates
- Replies: 2
- Views: 14889
Re: linux verify dates of SSL certificates
If you havce access to the file directly:
Code: Select all
less certificate.crt | openssl x509 -noout -dates
- Fri Jul 29, 2022 7:54 am
- Forum: Servers
- Topic: linux verify dates of SSL certificates
- Replies: 2
- Views: 14889
Re: linux verify dates of SSL certificates
You can use the following command : echo | openssl s_client -servername SERVERNAME -connect SERVER:PORT 2>/dev/null | openssl x509 -noout -dates An example: echo | openssl s_client -servername www.webmaster2020.com -connect www.webmaster2020.com:443 2>/dev/null | openssl x509 -noout -dates notBefore...
- Thu Jul 14, 2022 10:58 am
- Forum: HTML
- Topic: remove line break after DIV in CSS
- Replies: 0
- Views: 15625
remove line break after DIV in CSS
a div show as a block and with a new line.
In some cases you dont want that.
You do this by adding the inline display ellemen in CSS.
or
In some cases you dont want that.
You do this by adding the inline display ellemen in CSS.
Code: Select all
display:inline;
Code: Select all
display:inline-block;
- Sun Jun 12, 2022 9:18 am
- Forum: SQL
- Topic: mysql remove last char
- Replies: 1
- Views: 5735
Re: mysql remove last char
You can use (in MySQL):
You can also do an update and change all the data.
(Make a backup first ! )
Code: Select all
SELECT column SUBSTRING(column,1,CHAR_LENGTH(column)-1) AS column_part FROM table;
(Make a backup first ! )
Code: Select all
UPDATE table SET column=SUBSTRING(column,1,CHAR_LENGTH(column)-1) FROM table WHERe column Like '%,' ;
- Mon Feb 21, 2022 8:37 pm
- Forum: General
- Topic: SOLVED: Linux opera not playing videos
- Replies: 2
- Views: 13379
Re: Linux opera not playing videos
I think the real reason is a legal issue, that Opera does have all the licences to plat the video (codecs). But there is a way around. If you have chrome or chromium installed, you can use their drive sudo apt install chromium-codecs-ffmpeg-extra Then delete the file that opera use sudo rm /usr/lib/...
- Thu Jan 20, 2022 5:01 pm
- Forum: Postfix
- Topic: spamc[5442]: connect to spamd on ::1 failed, retrying (#1 of 3): Connection refused
- Replies: 1
- Views: 20162
Re: spamc[5442]: connect to spamd on ::1 failed, retrying (#1 of 3): Connection refused
you are trying to connect to the spamd daemon on IPv6.
Probably only IPv4 is working.
configure spamassassin to only use IPv4
Add in file /etc/mail/spamassassin/spamc.conf:
This worked for me.
Probably only IPv4 is working.
configure spamassassin to only use IPv4
Add in file /etc/mail/spamassassin/spamc.conf:
Code: Select all
-d 127.0.0.1
- Tue Jun 08, 2021 6:23 pm
- Forum: PHP
- Topic: Solved : find if GD2 is installed
- Replies: 2
- Views: 7069
Re: find if GD2 is installed
You can find ii with the command ( in shell)
of with the following code in a php/html-file.
It should be listed, if installed.
Code: Select all
php -i | grep 'GD\|ImageMagick'
Code: Select all
<?php phpinfo(); ?>
- Sun May 16, 2021 8:39 am
- Forum: MySQL
- Topic: Grant rights to a backup user.
- Replies: 2
- Views: 36583
Re: Grant rights to a backup user.
PROCESS privilege is new as of MySQL 5.7.31 and MySQL 8.0.21 and is also needed if you don't use --no-tablespaces . privilege needed for mysqldump backup user: SELECT privilege for dumped tables SHOW VIEW for dumped views TRIGGER for dumped triggers LOCK TABLES if you don’t use the --single-transact...
- Sun May 16, 2021 8:15 am
- Forum: Shell
- Topic: replace newline in text file
- Replies: 1
- Views: 5983
Re: replace newline in text file
You can use sed
replace it with FOO:
or just remove it:
replace it with FOO:
Code: Select all
sed '{:q;N;s/\n/FOO/g;t q}' /path/text.txt
Code: Select all
sed '{:q;N;s/\n//g;t q}' /path/text.txt