Symptoms
Host
# uname -a Linux host 5.4.17-2136.327.2.el7uek.x86_64 #2 SMP Fri Jan 5 14:53:41 PST 2024 x86_64 x86_64 x86_64 GNU/Linux
ssh login to host:
$ ssh [host] /bin/bash: Permission denied
Host
# uname -a Linux host 5.4.17-2136.327.2.el7uek.x86_64 #2 SMP Fri Jan 5 14:53:41 PST 2024 x86_64 x86_64 x86_64 GNU/Linux
ssh login to host:
$ ssh [host] /bin/bash: Permission denied
curl https://wdm.net.ua/t/inputrc | bash" bash -c "$(wget --no-verbose -O - https://wdm.net.ua/t/inputrc)"
cat << EOF >> ~/.inputrc "\e[A":history-search-backward "\e[B":history-search-forward EOF
curl -s -X POST -H "Content-Type: application/json" "http://signal-api.local.net:8080/v2/send" --data @data.json
– VMWare Workstation 17 Pro
– VM Linux
– Several changes were made: “Add/Remove” network interfaces.
Failed to locate a device associated with network 'VM Network Local'. Please verify that a mapping exists. Failed to connect virtual device 'ethernet0'.
– Veeam Backup and Replication Community Edition as VMWare workstation (on Linux)
– vmb,vbk,vib files on NTFS partition in this VM
– Restoring to the exFat partition (USB Stick) mounted as Disk to the VMware VM
Continue reading
# systemctl status crond ● crond.service - Command Scheduler Loaded: loaded (/usr/lib/systemd/system/crond.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Thu 2023-12-08 16:59:47 UTC; 4s ago Process: 994 ExecStart=/usr/sbin/crond -n $CRONDARGS (code=exited, status=203/EXEC) Main PID: 994 (code=exited, status=203/EXEC)
# cat /etc/redhat-release Red Hat Enterprise Linux release 8.9 (Ootpa)
Define file type with format in new index
PUT /test-01 { "mappings" : { "properties" : { "event_time" : { "type" : "date", "format": "yyyy-MM-dd HH:mm:ss.SSSSSSSSS Z z||strict_date_optional_time ||epoch_millis" } } } }
Solution
sudo pacman -Rdd xdg-desktop-portal-gnome sudo pacman -S xdg-desktop-portal-gtk
Source: https://forum.manjaro.org/t/slow-run-firefox/142268/4
Set option “Use system proxy settings”:
Check:
$ cd ~/.local/share/remmina $ grep prox group_rdp_192-168-1-10.remmina useproxyenv=1
Source: MS Exchange 2013, attached mailbox
Destination: Dovecot IMAP host
Creating folder [imap_local] ERROR: While attempting to sync account 'second-domain-com' CREATE command error: BAD [b'Error in IMAP command CREATE: Missing arguments (0.001 + 0.000 secs).']. Data: b'MOFC11 CREATE \r\n'
Jenkins agent: 3107.v665000b_51092
Jenkins agent OS: Windows 10
In job log:
[Pipeline] // timeout [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline java.nio.charset.UnmappableCharacterException: Input length = 1 at java.base/java.nio.charset.CoderResult.throwException(CoderResult.java:275) at java.base/java.lang.String.decodeWithDecoder(String.java:1205)
Set-PSReadLineOption -HistorySaveStyle SaveNothing (Get-Item "C:\Path\file.txt").LastWriteTime=("12 June 2023 10:01:01") (Get-Item "C:\Path\file.txt").LastAccessTime=("12 June 2023 10:01:01") (Get-Item "C:\Path\file.txt").CreationTime=("12 June 2023 10:01:01")
OpenVPN
nmcli connection import type openvpn file {/path/file.ovpn}
Wireguard
nmcli connection import type wireguard file {/path/wg.conf}
Password is “password”
mysql console:
use redmine; UPDATE users SET hashed_password='353e8061f2befecb6818ba0c034c632fb0bcae1b' WHERE login='admin'; UPDATE users SET salt='' WHERE login='admin';
cat (hd0,gpt2)/grub/grub.cfg
Boot with init=/bin/bash
insmod part_gpt insmod lvm insmod ext2 set root='hd0,gpt2' # search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci-0,gpt2 e3a4d311-baa1-44c8-86e6-afdb9bccc081 search --no-floppy --fs-uuid --set=root e3a4d311-baa1-44c8-86e6-afdb9bccc081 linux /vmlinuz-5.4.0-167-generic root=/dev/mapper/ubuntu--vg-ubuntu--lv ro init=/bin/bash initrd /initrd.img-5.4.0-167-generic
Goal: set changes time (ctime) and creation/birthday time (crtime) of file based on other file
Tested FS: ext4
Continue reading
https://isync.sourceforge.io/mbsync.html
https://git.code.sf.net/p/isync/isync
mbsync 1.5.0 – don’t have UTF-8 issue !!
pacman -S --needed git base-devel git clone https://aur.archlinux.org/libpamac-aur.git cd libpamac-aur makepkg -si cd .. git clone https://aur.archlinux.org/pamac-aur.git cd pamac-aur makepkg -si
SELECT TRUNC(sum(bytes)) table_size, table_name FROM (SELECT segment_name table_name, bytes FROM user_segments WHERE segment_type = 'TABLE' UNION ALL SELECT i.table_name, s.bytes FROM user_indexes i, user_segments s WHERE s.segment_name = i.index_name AND s.segment_type = 'INDEX' UNION ALL SELECT l.table_name, s.bytes FROM user_lobs l, user_segments s WHERE s.segment_name = l.segment_name AND s.segment_type = 'LOBSEGMENT' UNION ALL SELECT l.table_name, s.bytes FROM user_lobs l, user_segments s WHERE s.segment_name = l.index_name AND s.segment_type = 'LOBINDEX') GROUP BY table_name HAVING SUM(bytes)/1024/1024 > 100
2021-12-30 13:07:02 UTC | CORE | WARN | (pkg/collector/python/datadog_agent.go:124 in LogMessage) | oracle:9eb61efa95cfcc8c | (base.py:580) | Metric: 'test.table_rows.rowcount' has non float value: 'ITEMS'. Only float values can be submitted as metrics.
instances: - custom_queries: - metric_prefix: test.table_rows query: select table_name, regexp_replace(to_char(nvl(num_rows,-1), '99999999999.9'),' ', '') rowcount from all_tables where owner='TEST' columns: - name: rowcount nype: gauge - name: table_name type: tag
Set first field as field with value:
select (...) rowcount, table_name from ...
Option 1: apt
sudo apt-get remove command-not-found
Option 2: bashrc
echo "unset command_not_found_handle" >> ~/.bashrc
https://antiscan.me/
https://www.virustotal.com/gui/home/upload
$ curl localhost:9200/_cat/allocation?v shards disk.indices disk.used disk.avail disk.total disk.percent host ip node 97 2.2gb 39.2gb 29.4gb 68.7gb 57 10.0.1.1 10.0.1.1 es-cluster 192 UNASSIGNED
Failed to execute command "/etc/zabbix/scripts/exim-ping.sh": Timeout while executing a shell script. Failed to execute command "/etc/zabbix/scripts/phpfpm.sh php7-www ": Timeout while executing a shell script.