Skip to content

Instantly share code, notes, and snippets.

lpetre /
Created Jan 7, 2022
Codemod for converting libcst.testing.utils.data_provider to parameterized.expand
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import argparse
import ast
from typing import Generator, List, Optional, Sequence, Set, Tuple
import libcst as cst
View check_cloudflare.rb
require 'fileutils'
require 'sqlite3'
require 'uri'
require 'net/http'
require 'set'
require 'thread'
domain_set =
cloudflare_set =
query_uris =
lpetre / newrelic.go
Created May 11, 2016
Script to cleanup ec2 instances from newrelic
View newrelic.go
package main
import (

Keybase proof

I hereby claim:

  • I am lpetre on github.
  • I am lpetre ( on keybase.
  • I have a public key whose fingerprint is E8F9 7A41 4EC3 BA77 7666 3454 5A89 4A3E E415 0246

To claim this, I am signing this object:

View Google Play Api - Apk

In Google Developer Console inside your app project, on the Credentials section, you must create a new "Service Account" "Client ID", if you have not already. And download the JSON file.

On Google Play Developer Console you have to give permissions to "" for uploading apks.


Download Google APIs Client Library for Python (google-api-python-client): or use pip:

  $ pip install google-api-python-client
View haxe.rb
require 'formula'
class Haxe < Formula
homepage ''
head '', :branch => 'master'
depends_on 'neko' => :recommended
depends_on 'objective-caml' => :build
depends_on 'camlp4' => :build
lpetre / unity-cache.rb
Last active Dec 29, 2015
homebrew recipe for the unity cache server
View unity-cache.rb
require 'formula'
class UnityCache < Formula
homepage ''
url ''
sha1 'e56e288550dc48cfeaebcf9bba5f07ae566e1747'
depends_on 'node'
def install