I have a helper function to nuke everything so that our Continuous blah, cycle can be tested, erm... continuously. Basically it boils down to the following:
To clear containers:
docker rm -f $(docker ps -a -q)
To clear images:
# Create a container from the mongo image, | |
# run is as a daemon (-d), expose the port 27017 (-p), | |
# set it to auto start (--restart) | |
# and with mongo authentication (--auth) | |
# Image used is https://hub.docker.com/_/mongo/ | |
docker pull mongo | |
docker run --name YOURCONTAINERNAME --restart=always -d -p 27017:27017 mongo mongod --auth | |
# Using the mongo "localhost exception" (https://docs.mongodb.org/v3.0/core/security-users/#localhost-exception) | |
# add a root user |
I have a helper function to nuke everything so that our Continuous blah, cycle can be tested, erm... continuously. Basically it boils down to the following:
To clear containers:
docker rm -f $(docker ps -a -q)
To clear images:
#!/bin/bash | |
# Install | |
# >>> sudo apt-get install jq procps xdg-utils | |
# Run | |
# >>> watch -d --color --interval 5 --exec ./look-for-rdv.sh | |
# Logs | |
# >>> tail -f requests.log |
// ==UserScript== | |
// @name Doctolib RDV finder | |
// @namespace https://jacem.chaieb.me | |
// @version 1.0.2 | |
// @downloadURL https://gist.githubusercontent.com/kidager/c39fa858c6aa090e700522b02ec2b6a5/raw/look-for-rdv.user.js | |
// @updateURL https://gist.githubusercontent.com/kidager/c39fa858c6aa090e700522b02ec2b6a5/raw/look-for-rdv.user.js | |
// @description Try to find a covid vaccination slot on doctolib | |
// @author Jacem Chaieb <jacem@chaieb.me> | |
// @match https://www.doctolib.fr/ | |
// @match https://www.doctolib.com/ |
I hereby claim:
To claim this, I am signing this object:
# Path to your oh-my-zsh installation. | |
export ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="agnoster" | |
# Uncomment the following line to use case-sensitive completion. |
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQINBGEnX7oBEACYjUsjraxzpq8876ZEZz2zMJEEIp1oVXi9/cTPJ4fvMLrW8bTz | |
za/rHcnfG7WwMgG1COACUTS1uZqwI8N+KsLNjVWU4dXUctzlGrqsfNC6Boj0g8Cd | |
NTzMlfvZuzRE2lWEbbfDt6ie+IbgNNNNyk7sSEJ40qYI3hYAale0NmGIkeFMXkY/ | |
8U/XMCm1CMGgo4QN7BtmBU9n50Qc7s5yOzd1htxjif2e1P5T8c/YVzBEZM/XwoeS | |
PhZlf82tG7T8dY/tujfjfHaerJXCB1j93z8PjciEZ/obT7sNPbF7UEr0PMzpjhRu | |
aA/97ELOjTQ0Gc7+Gyd76F1XpLI0gcQbY0ddvVWINx9EgDPUJ9zCAaTdwOve/nuf | |
IAxTzrzNwUCgZaOB6UieNgtozj/zB5aSroq8maTs3QCuz+9xFoUqYYHgnmb1/a6u | |
EmlrIYhWgKqoq8eQv/MP+FPEnpB6NIol19TURGETJ2qdD/PQH8C+ML+KgurKt4BZ |