Skip to content

Instantly share code, notes, and snippets.

View pborreli's full-sized avatar

Pascal Borreli pborreli

  • Oujda, Morocco
  • Twitter @pborreli
View GitHub Profile
pborreli / Gmail password reset
Created March 10, 2017 01:43 — forked from bjarki/Gmail password reset
Reset gmail password 100 times
View Gmail password reset
' Versions
' Version: 1.5
' source:
' Change Log
' v1.0
' Original
pborreli / default.vcl
Last active September 8, 2016 16:05
If you are using Varnish and ESI with a Symfony application and need to profile not only the master request but with ESI requests included, don't announce your ESI support, Symfony will fallback to internal sub requests.
View default.vcl
sub vcl_recv {
if (req.http.X-Blackfire-Query && client.ip ~ profile) {
//set req.backend_hint = backend1; // if you want to disable loadbalancer to profile (aka only 1 backend needs blackfire extension
return (pass);
} else {
// Add a Surrogate-Capability header to announce ESI support.
set req.http.Surrogate-Capability = "abc=ESI/1.0";
pborreli / .gitlab-ci.yml
Last active March 15, 2016 21:05
Validate your Varnish VCL file using GitLab-CI
View .gitlab-ci.yml
image: newsdev/varnish:4.1.0
- /usr/local/sbin/varnishd -C -f default1.vcl
View typos.txt
lingustique -> linguistique
vraiement -> vraiment
suffisament -> suffisamment
video -> vidéo
s'accomoder -> s'accommoder
connnu -> connu
le client envoit une requête -> le client envoie une requête
négoicer -> négocier
la lui envoit -> la lui envoie
fontionne -> fonctionne
View gist:47d3b3abf3a78251ea14
### Keybase proof
I hereby claim:
* I am pborreli on github.
* I am pborreli ( on keybase.
* I have a public key whose fingerprint is E171 699B D7D7 E75C 9784 4930 7DB5 FAEA 91EE 3C75
To claim this, I am signing this object:
pborreli / bigquery
Last active August 29, 2015 13:59
Anyone know how I can run some analytics on GitHub repos? Looking to count # of PR’s merged/closed by me this month
View bigquery
COUNT(payload_pull_request_number) as counter, payload_pull_request_merged as merged
FROM [githubarchive:github.timeline]
WHERE type="PullRequestEvent"
AND actor = 'parkr'
AND payload_action = 'closed'
AND repository_name = 'jekyll'
AND PARSE_UTC_USEC(created_at) >= PARSE_UTC_USEC('2014-04-01 00:00:00')
GROUP BY merged;
View gist:5934461

Header 1

Header 2

Header 3 ### (Hashes on right are optional)

Header 4

Header 5

Markdown plus h2 with a custom ID ## {#id-goes-here}

Link back to H2

This is a paragraph, which is text surrounded by whitespace. Paragraphs can be on one

pborreli /
Last active December 19, 2015 09:29
How to retrieve your GitHub Pull Request count using Google bigquery

Go to Google bigquery and execute the following query replacing XXX with your GitHub login

pborreli / YourCommand.php
Last active August 23, 2020 09:48
Show progress of a file download inside Symfony 2.3 console #howto
View YourCommand.php
protected function execute(InputInterface $input, OutputInterface $output)
$progress = $this->getHelperSet()->get('progress');
$ctx = stream_context_create(array(), array('notification' => function ($notification_code, $severity, $message, $message_code, $bytes_transferred, $bytes_max) use ($output, $progress) {
switch ($notification_code) {
$progress->start($output, $bytes_max);