I hereby claim:
- I am kidager on github.
- I am kidager (https://keybase.io/kidager) on keybase.
- I have a public key ASDxWcbyjzUH2jRpYh8L0QjAbfJF0305kj6OFK4SS7uYBwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<?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', |
<?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'); |
# 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/ |