Friendly (ionice/nice) rsync on remote server
Add --rsync-path="ionice -c 3 nice rsync" to your rsync command (on sending side)
Add --rsync-path="ionice -c 3 nice rsync" to your rsync command (on sending side)
Getting this? bash: pvchange: command not found bash: pvck: command not found bash: pvcreate: command not found bash: pvdisplay: command not found bash: pvmove: command not found bash: pvs: command…
# apt update # apt upgrade # apt full-upgrade # apt --purge autoremove deb http://mirrors.linode.com/debian bullseye main deb-src http://mirrors.linode.com/debian bullseye main deb http://mirrors.linode.com/debian-security bullseye-security/updates main deb-src http://mirrors.linode.com/debian-security bullseye-security/updates main #…
Prerequisites: A linux host within your network SSH enabled on your router FW routes from host to router Howto: 1. Create ssh keys (without passphrase) on the linux host: ssh-keygen…
| todateiso8601
#!/usr/bin/env bash set -o errexit set -o nounset set -o pipefail if [[ "${TRACE-0}" == "1" ]]; then set -o xtrace fi if [[ "${1-}" =~ ^-*h(elp)?$ ]]; then echo…
You probably upgraded go. You need to remove /usr/local/go . Then reinstall go
rpm -qa --qf "%{NAME}\n"
find . -depth -name '* *' \ | while IFS= read -r f ; do mv -i "$f" "$(dirname "$f")/$(basename "$f"|tr ' ' _)" ; done
python -c 'import pty; pty.spawn("/bin/bash")' yay python
sort -t . -k 3,3n -k 4,4n IPs
Add to .bashrc: export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND ;} ip=\$( echo \$PWD | grep -oE '{1,3}\.{1,3}\.{1,3}\.{1,3}' ) " Now if you browse to/in a directory which has an ipv4 ip, the IP will…
echo "===SUMMARY===";grep . */report/notes.txt| while read line; do IP=$( echo -ne $line|cut -d'/' -f1| tr -d '\n' ); ] && echo; echo -n $IP ; echo -n $line | cut…
Clone the repo: https://github.com/rofl0r/proxychains-ng ./configure && make && sudo make install cp src/proxychains.conf /etc/proxychains.conf && vi /etc/proxychains.conf echo "alias p='/usr/local/bin/proxychains4'" >> ~/.bashrc && . .bashrc p ssh xx@ip
while read line <&3; do echo "==== $line ===="; yes y | sqlmap -u http://$line/ --crawl=1; read -p press\ enter; done 3< webservers.ip Using input 3 to read your list,…
yum install https://download1.rpmfusion.org/{free/fedora/rpmfusion-free,nonfree/fedora/rpmfusion-nonfree}-release-$(rpm -E %fedora).noarch.rpm yum install install compat-ffmpeg28 ffmpeg-libs
Split to array: while IFS=';' read -ra ADDR; do for i in "${ADDR}"; do # process "$i" done done <<< "$IN" Define: distro=("redhat" "debian" "gentoo") Element: ${ArrayName} Length: echo "${#distro}"…
# Reset Color_Off='\033[0m' # Text Reset # Regular Colors Black='\033[0;30m' # Black Red='\033[0;31m' # Red Green='\033[0;32m' # Green Yellow='\033[0;33m' # Yellow Blue='\033[0;34m' # Blue Purple='\033[0;35m' # Purple Cyan='\033[0;36m' # Cyan…
sed -i '1s/^\(\xef\xbb\xbf\)\?/\xef\xbb\xbf/' foo-*
pip uninstall requests yum reinstall python-requests pip uninstall six yum reinstall python-six pip uninstall urllib3 yum reinstall python-urllib3 ; yum install http://cbs.centos.org/kojifiles/packages/pyOpenSSL/16.2.0/3.el7/noarch/python2-pyOpenSSL-16.2.0-3.el7.noarch.rpm ; yum install certbot certbot-apache
cd /opt/arcsight/connectors/; tail -f *_con1_rsyslog_paloalto_2500*/current/logs/agent.out.wrapper.log | awk '/^==> / {a=substr($0, 5, length-8); next} {print a":"$0}'
This might help someone else, too. These are the things I do for an internal VM (on my hypervisor at home). This document will/might evolve over time. Default OS is…
exec 1>/dev/null 2>/dev/null at the top of your script
Old version below NEW ADDED NOTES (Thanks Charles Orbello) The new version of domoticz requires a new version of cmake and the old version of domotics need a different version…
root@host:~# yum update Loaded plugins: product-id, search-disabled-repos, security, subscription-manager Setting up Update Process Error: database disk image is malformed root@host:~# yum clean all Loaded plugins: product-id, search-disabled-repos, security, subscription-manager Cleaning…
Compound Commands A compound command is one of the following. In most cases a list in a command's description may be separated from the rest of the command by one…
i=0 (( ++i )) echo $i Will give 1
# dnf -y install dnf-automatic Last metadata expiration check: 2:07:13 ago on Tue Sep 27 06:13:59 2016. Dependencies resolved. =============================================================================================================================================================================================================================================================================================================================== Package Arch Version Repository Size =============================================================================================================================================================================================================================================================================================================================== Installing: dnf-automatic noarch 1.1.10-1.fc24…
/bin/bash script.sh /lib64/ld-linux-x86-64.so.2 binary.bin /usr/bin/php file.php
error: rpmdb: BDB0113 Thread/process 633/140720390891328 failed: BDB1507 Thread died in Berkeley DB library error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages index…