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:
| // ==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/ |
| #!/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 |
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 |
| <?php | |
| $response = $guzzleClient->get( | |
| // 'list.htm?tri=initial&idtypebien=2,1&div=2238&idtt=1&naturebien=1,2,4&LISTING-LISTpg=2' | |
| 'list.htm?tri=initial&idtypebien=2,1&div=2238&idtt=2,5&naturebien=1,2,4&LISTING-LISTpg=1' | |
| // 'list.htm?tri=initial&idtypebien=1,2&cp=75&idtt=1&naturebien=1,2,4&bd=DetailToList_SL' | |
| ); | |
| $html = (string)$response->getBody(); | |
| $internalErrors = libxml_use_internal_errors(true); | |
| $dom = new DOMDocument('1.0', 'UTF-8'); |
| <?php | |
| // Some Artisan stuff | |
| Artisan::command('do:shit', function () { | |
| $guzzleClient = new GuzzleHttp\Client([ | |
| 'base_uri' => 'https://www.seloger.com', | |
| 'headers' => [ | |
| 'Connection' => 'keep-alive', | |
| 'Pragma' => 'no-cache', |
I hereby claim:
To claim this, I am signing this object:
| -----BEGIN PGP PUBLIC KEY BLOCK----- | |
| mQINBF6d5RIBEADQIOSpva26fCOJ0DfbKInDKW6L8ym0Q9yKQ9RkXxB5u740Uv/N | |
| +UZFTOgjU7KQ+CX7VtPcqNJa03hiGxtHbLXIpYrrh6rTDM54nGBeEPC/IIQslXZt | |
| S0kEXQQJIOUT15jOmqBi/XodpUtlwGi3whC0SkYJipNC811/zcEhhXcj8DDIF9yO | |
| qT/m5ieuZWII43qQhdv/4zGJCH1+QdA2wEoMLJ1gP8Zz49qYjdPobXcJyQb3RLyt | |
| ajz+2kDLegjrUjh2d56vKdUGNYNs/9ceZLWjXSgh5B7MTneZ2KuskNkMUexWixEi | |
| KESbSVKxg1sY294J6VidkIUx+GXrqHiczOUnfUD3AlKGfjUUD14PTNRL5LNMYGP2 | |
| DgPpaErkU7GzLnZ4gxsRlE2Do65sKyK9GQ4FhMH/wI8MXmQ2Nn5YGfSk0go9pgdg | |
| Wg/lesd11yYhOTgY1gQXZtu7lv9I0c61+lKbFDd/B4Lk0+JW4XEz6GOU8OAYumps |
| ##crypto | |
| ##defocus | |
| ##javascript | |
| ##linux | |
| ##math | |
| ##networking | |
| ##php | |
| ##security | |
| #android | |
| #android-dev |