This file contains hidden or 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
docker exec -i filipo_elperfecto sh -c 'cat > /opt/file.txt' < file.txt |
This file contains hidden or 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
docker inspect --format {{.NetworkSettings.IPAddress}} fancy_dockname |
This file contains hidden or 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
#!/bin/bash | |
awk -v pwd=$PWD '{print" "pwd}' .DS_Store |
This file contains hidden or 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
#!/bin/bash | |
for i in $( ls *.utf8.csv ); do grep -v ',,,,,,,,,,,,,,,,,,,,,,' $i | tail -n +2 | perl -pe 'chomp if eof' > ${i:0:$((${#i}-8))}san.utf8.csv; done; |
This file contains hidden or 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
pg_dump --schema $SCHEMA_NAME -a --column-inserts > backup-ee.sql |
This file contains hidden or 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
pg_dump --schema $SCHEMA_NAME -a > backup-ee.min.sql |
This file contains hidden or 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
wget --header="Content-type:application/json" --post-data="{'replace-field':{ 'name':'fieldname', 'type':'int', 'stored': true, 'indexed':true, 'multiValued':false}}" http://localhost:8983/solr/corename/schema |
This file contains hidden or 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
#!/bin/bash | |
for i in $( ls *.csv ); do iconv -f ISO-8859-1 -t UTF-8 $i > ${i:0:$((${#i}-3))}utf8.csv; done |
This file contains hidden or 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
$ cd $GLASSFISH_HOME/domains/$YOUR_DOMAIN/lib | |
$ wget https://jdbc.postgresql.org/download/postgresql-9.4-1201.jdbc41.jar | |
$ $GLASSFISH_HOME/bin/asadmin stop-domain | |
$ $GLASSFISH_HOME/bin/asadmin start-domain |
This file contains hidden or 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
$ mvn archetype:generate -DarchetypeArtifactId=jersey-quickstart-webapp -DarchetypeGroupId=org.glassfish.jersey.archetypes -DarchetypeVersion=2.19 |