C:\Windows\system32\config\systemprofile\.erlang.cookie
If there are any authentication issues when running rabbitmqctl, copy cookie from above to %USERPROFILE%.
C:\Windows\system32\config\systemprofile\.erlang.cookie
If there are any authentication issues when running rabbitmqctl, copy cookie from above to %USERPROFILE%.
| # Enable remoting on server where RPC will run in | |
| Enable-PSRemoting -Force | |
| # Check if WinRM is running on remote server | |
| Test-WsMan QUERY_NODE1_HOSTNAME | |
| $username = "corp\myuser" | |
| $password = ConvertTo-SecureString -String "mypswd" -AsPlainText -Force | |
| $cred = [pscredential]::new($username,$password) |
| nslookup HOSTNAME |
| node gulp.js --tasks |
| # give executable permissions to script | |
| chmod u+x run_monitoring | |
| # run script in background and get pid for killing to stdout | |
| nohup ./run_monitoring.sh > monitor_metrics.txt 2>&1 & | |
| # save PID to kill | |
| echo $! > save_pid.txt | |
| # to kill process |
| ssh -i /path/to/pem.pem user@IP 'df -h' |
| echo "12341234444344412354444" | grep -P "4{2,4}?" -o | |
| 44 | |
| 44 | |
| 44 | |
| 44 | |
| 44 |
| (?<=<).*?(?=>) |
| # Vowels | |
| echo abcdefghijk | grep -e "[aeiou]" | |
| # will find a,e,i | |
| # Range | |
| echo abcdefghijkAC04 | grep -e "[a-zA-D0-9]" | |
| # Negation character ^ - don't match |