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 <[email protected]> | |
// @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----- | |
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 |
##crypto | |
##defocus | |
##javascript | |
##linux | |
##math | |
##networking | |
##php | |
##security | |
#android | |
#android-dev |