sudo vim /etc/default/locale
Set below entries in above file.
LC_CTYPE=en_US.UTF-8 LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
sudo dpkg-reconfigure locales sudo shutdown -r now
sudo vim /etc/default/locale
Set below entries in above file.
LC_CTYPE=en_US.UTF-8 LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
sudo dpkg-reconfigure locales sudo shutdown -r now
// To display utc timestamp in logs
journalctl --utc
// Displaying Logs from the Current Boot
journalctl -b
// Listing boots
journalctl --list-boots
#!/bin/bash | |
(curl -s -XGET 'http://10.160.0.37:9200/_cat/indices/?pretty' ) | awk '{print $3}' | egrep 'stage*|.kibana'| while read -r line; do curl -XDELETE http://10.160.0.37:9200/"${line}";done |
#!/bin/bash | |
(curl -s -XGET 'http://10.160.0.37:9200/_cat/indices/?pretty' ) | awk '{print $3}' | egrep 'stage*|.kibana'| while read -r line; do curl -XDELETE http://10.160.0.37:9200/"${line}";done |
Check the current disks and what exists on them.
lsblk
sudo lshw -class disk
Create partition on disk
fdisk /dev/sdb
https://stackoverflow.com/questions/13048954/how-to-login-to-a-spring-security-login-form-using-curl
curl --cookie-jar cookie -d username=<> -d password=<> -L https://<yoursite>/login
curl -sL -b cookies.txt "http://localhost:8080/authorized/url"
mvn -B release:prepare -Dtag=relv2.0.6
mvn release:perform -Darguments="-Dmaven.javadoc.skip=true"
In above, last step : recently faced the issue that peform was getting stuck on checkout in target/checkout directory. So I followed this advise here
Setting the version:
import my.personal.package.LiquibaseRunner; | |
import org.apache.commons.dbcp.BasicDataSource; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.testcontainers.containers.Container.ExecResult; | |
import org.testcontainers.containers.MySQLContainer; | |
import org.testcontainers.containers.output.Slf4jLogConsumer; | |
import org.testcontainers.junit.jupiter.Container; | |
import org.testcontainers.junit.jupiter.Testcontainers; |
LIQUIBASE_HOME
driver=com.mysql.cj.jdbc.Driver
url=jdbc:mysql://localhost:3320/test
username=<user>
password=<pass>
changeLogFile=changelog-test.xml
#!/bin/bash | |
set -x | |
mvn_cmd_to_get_version() { | |
mvn help:evaluate -Dexpression=project.version | |
} | |
get_current_version() { | |
output=$(mvn_cmd_to_get_version); | |
result=$(echo "$output" | grep -v '\[.*'); | |
echo $result |