ctop
lazydocker
docker image prune -f
docker system prune --all --force
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
version: '3.7' | |
# Services | |
services: | |
# Nginx Service | |
web: | |
container_name: ${PROJECT_NAME}_webngx_${VERSION_ID} | |
image: nginx:1.17-alpine | |
ports: |
In order to give our non-root user access to the Docker management commands, we need to create a docker group (it may already be created for you), and then add your primary user to that group.
$ sudo groupadd docker
$ sudo usermod -aG docker $USER
By running this command, we ask Docker Compose to execute Bash on the PHP container:
docker-compose exec php bash
Settare il valore ID dell'entità passata come parametro chiamando una dao.insert
doAnswer(invocation -> {
Object[] args = invocation.getArguments();
((Masterbook) args[0]).setId(1L);
return 1L;
}).when(masterbookDAO).insert(any(), any());
ng serve --configuration=local-dev
# sostituisco alcuni caratteri non correttamente visualizzati leggendo dal primo file e genrandone uno nuovo di output | |
sed -e 's/è/è/g' -e 's/“/\"/g' -e 's/â€<9d>/\"/g' -e 's/ì/ì/g' -e 's/°/°/g' -e 's/ò/ò/g' testcharset.txt > testcharset_utf8.txt | |
# directly replace on file | |
sed -i -e 's/è/è/g' -e 's/“/\"/g' -e 's/â€/\"/g' -e 's/’/\'/g' -e 's/â€<9d>/\"/g' -e 's/ì/ì/g' -e 's/°/°/g' -e 's/ò/ò/g' -e 's/È/E\'/g' -e 's/à /à/g' -e 's/–/-/g' gabri_nueter-20201107.sql | |
# for SQL import with escaping | |
sed -e 's/è/è/g' -e 's/é/è/g' -e 's/â€/\"/g' -e 's/“/\"/g' -e 's/’/\\\\\'/g' -e 's/Õ/\\\\\'/g' -e 's/â€<9d>/\"/g' -e 's/ì/ì/g' -e 's/°/°/g' -e 's/ò/ò/g' -e 's/È/É/g' -e 's/á/à/g' -e 's/à /à/g' -e 's/à /à/g' -e 's/ù/ù/g' -e 's/–/-/g' gabri_nueter-20201107.sql > gabri_nueter-20201107_UPD.sql |
-- importing (large) file on db | |
mysql -h 127.0.0.1 -u gabri_deiverbum -p gabri_deiverbum < gabri_deiverbum-20201107.sql |
var jsonData = JSON.parse(responseBody); | |
if (jsonData.ticket) { | |
postman.setEnvironmentVariable("alf_ticket", jsonData.ticket); | |
} |