docker run --net=host --name mongodb -v ${PWD}/.mongodb/data/db:/data/db -p 27017:27017 -d mongo:3.0 --smallfiles
docker create --net=host --name mongodb -v ${PWD}/.mongodb/data/db:/data/db -p 27017:27017 mongo:3.0 --smallfiles
comm -13 <(docker ps -a --format '{{.Names}}'|egrep "^\w+\-\w+\-.*$"|sed -e s/-[0-9]*$//g|sort|uniq) <(docker exec ezmaster_db mongo --quiet --eval 'db.adminCommand( { listDatabases: 1 } )'|jq -r '.databases[] | .name'|awk '{ print $1}'|sort|uniq)|awk '{print "docker exec ezmaster_db mongo",$1,"--eval \x27 db.dropDatabase(); \x27"}' |
<VirtualHost *:443> | |
ServerName exemple.fr | |
ServerAlias *.exemple.fr | |
SSLEngine on | |
SSLProxyEngine on |
#!/bin/sh | |
# "DATABASES": [ | |
# { | |
# "MYSQL_DATABASE": "database1", | |
# "MYSQL_USER": "user", | |
# "MYSQL_PASSWORD": "toto" | |
# }, | |
# { | |
# "MYSQL_DATABASE": "database2", |
VBoxManage list vms | |
VBoxManage list webcams | |
VBoxManage controlvm "vthouveni" webcam attach .1 |
dconf-editor | |
and open dconf-editor -> system -> proxy |
{ | |
"get" : "doi", | |
"first" : true, | |
"resolveDOI" : true, | |
"$title" : { | |
"get" : "doi-publication-title", | |
"first" : true | |
}, | |
"$issn" : { | |
"get" : "doi-ISSN", |
cat /sys/class/net/eth0/operstate |
rsync -avz /source /target | |
#!/bin/bash | |
sudo fallocate -l 4G /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile | |
sudo swapon -s | |
# SWAP ENCRYPTION | |
# sudo ecryptfs-setup-swap |