This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fix no main manifest attribute, in jar Error in Spring Boot | |
Add spring-boot-maven-plugin in build section of your pom.xml. If it is not added then add the below lines | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-maven-plugin</artifactId> | |
<version>2.1.5.RELEASE</version> | |
<executions> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$expr": { | |
"$not": { | |
"$cmp": [{ | |
"$let": { | |
"vars": { | |
"updated": { | |
"$objectToArray": "$updateDescription.updatedFields" | |
} | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defaults write com.3tsoftwarelabs.robo3t NSRequiresAquaSystemAppearance -bool yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.getCollection('places').distinct("address.complete").forEach(fieldValue => { | |
var count = db.getCollection('places').find({"address.complete": fieldValue }).count(); | |
if (count > 1) { | |
db.getCollection('places').find({"address.complete": fieldValue }).forEach(doc => { | |
if (count > 1) { | |
db.getCollection('places').remove({ _id: doc._id }); | |
count--; | |
} | |
});} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You could use the -o switch to specify your output format: | |
$ ps -eo args | |
From the man page: | |
Command with all its arguments as a string. Modifications to the arguments may be shown. [...] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.places.createIndex({name: "text" , description: "text", "address.complete" : "text"}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git filter-branch --tree-filter 'rm -rf path/to/your/file' HEAD | |
git push | |
Or You can use the git suggested tool | |
git filter-repo --invert-paths --path-match target --force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lsblk | |
df -hT /dev/xvdf | |
df -hT /dev/xvda1 | |
xfs_growfs /dev/xvdf | |
sudo xfs_growfs /dev/xvdf | |
sudo resize2fs /dev/xvdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tr ";" "\t" < /Users/admin/Desktop/NCM.csv | mongoimport --uri mongodb+srv://sigaProdServices:12SjJoTmpCxhuqMb@sigacluster0-9ifpv.mongodb.net/sigaProd --collection ncm --type tsv --headerline --drop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export JAVA_HOME=`/usr/libexec/java_home -v 1.8.0_221` |
NewerOlder