This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chrome.scripting.registerContentScripts([ | |
{ | |
id: 'XMLOverride', | |
// js: [leboncoin_mainWorld], | |
js: ["build-iife/leboncoinfr_content_worldmain.js"], | |
matches: ["https://www.leboncoin.fr/*"], //also in host_permissions | |
persistAcrossSessions: true, | |
runAt: 'document_start', | |
world: 'MAIN', | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Extract north west of image / top left. Lifecast output jpgs must be in 0_out | |
# sudo apt install imagemagick | |
mkdir -p 1_nw | |
for f in 0_out/*.jpg | |
do | |
echo $f | |
convert $f -crop 1920x1920+0+0 1_nw/$(basename ${f}) | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace AppBundle; | |
use Doctrine\DBAL\Types\Type; | |
use Symfony\Component\HttpKernel\Bundle\Bundle; | |
class AppBundle extends Bundle | |
{ | |
public function boot() { | |
Type::addType('yaml', 'AppBundle\Extension\YamlType'); | |
$em = $this->container->get('doctrine.orm.default_entity_manager'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// parameters | |
$hubVerifyToken = 'TOKEN123456abcd'; | |
$accessToken = "xxx"; | |
// check token at setup | |
if ($_REQUEST['hub_verify_token'] === $hubVerifyToken) { | |
echo $_REQUEST['hub_challenge']; | |
exit; | |
} |