pcs resource create nc_sid_ASCS azure-lb port=62001 --group sid_ascs01_group
Uncategorized
Change a parameter in a pacemaker resoruce
For a NFS filesystem, if we want to change the NFS server ip:
pcs resource update my_fs_resource device=192.168.1.8:/SID_cluster/usr/sap/SID/AAS02
For an IPaddr2 resource, to change the ip address:
pcs resource update SID_vip_aas ip=192.168.1.18
change order of resource inside pacemaker resource group
pcs resource group add my_resource_group my_resource_to_move --before another_resource
add ip blocklist to ufw
reconfigure db2 pacemaker cluster with different ip and ethernet dev
[root@clusternode1 ~]# crm configure edit db2_clusternode1_ens33
[root@clusternode1 ~]# crm configure edit db2_uclusternode2_ens33
[root@clusternode1 ~]# crm configure edit db2_db2bwt_db2bwt_BWT-primary-VIP
enable timestamps in history
echo 'export HISTTIMEFORMAT="%F %T "' >> /etc/bashrc
copy permissions and owners from another unix
this script will generate 2 scripts “chown_cmds.bash” and “chmod_cmds.bash” from a find -ls output, those 2 scripts can be used to set permissions and ownership to files copied to another server
!/bin/sh
>/root/chown_cmds.bash
>/root/chmod_cmds.bash
echo "set -x " >> /root/chown_cmds.bash
echo "set -x" >> /root/chmod_cmds.bash
find /interfacestst -ls | grep -i '/' > /tmp/lsf
cat /tmp/lsf | awk '{ print "chown "$5":"$6" \""$NF "\"" }' > /root/chown_cmds.bash
(
cat /tmp/lsf | while read l;do
perms=echo $l | awk '{ print $3 }'
f=echo $l | awk '{ print $NF }'
OWNER=$(echo $perms | sed -e "s/.(…)./\1/" | sed -e "s/[-]//g" ) GROUP=$(echo $perms | sed -e "s/….(…)./\1/" | sed -e "s/[-]//g" )
OTHER=$(echo $perms | sed -e "s/…….(…).*/\1/" | sed -e "s/[-]//g" )
echo "chmod u=${OWNER},g=${GROUP},o=${OTHER} ${f}"
done
) |tee /root/chmod_cmds.bash
ffmpeg with aexciter, with the least delay possible, to serve an mp3 to stdout
ffmpeg -flags +low_delay -fflags +nobuffer -max_delay 0 -analyzeduration 0 -max_probe_packets 1 -loglevel panic -i “/media/HDS$SONG” -af aexciter=amount=4:drive=1:freq=7500 -af “treble=g=1” -f mp3 -map_metadata -1 pipe:1 2>/dev/null
my best sox mcompand shot
for a crispy treble this is a good one, it may overdrive a bit but it’s sweet enough, sounds crispy enough, ready to satisfy your asmr crave
bass +3 200 300k mcompand “.025,.025 -40,-35,-30,-25” 100 “1,1 -40,-30,-35,-28” 7900 “1,1 -40,-30,-25,-15”
sox –effects-file /var/www/html/music/soxopts.txt “/media/HDS$SONG” -t mp3 -r 44100 -c 2 –
limit passive ftpd port range in vsftpd
pasv_min_port=50000
pasv_max_port=50999
pasv_enable=YES