Skip to content

Instantly share code, notes, and snippets.

View fernandocarletti's full-sized avatar

Fernando Carletti fernandocarletti

View GitHub Profile

Keybase proof

I hereby claim:

  • I am fernandocarletti on github.
  • I am fernandocarletti (https://keybase.io/fernandocarletti) on keybase.
  • I have a public key whose fingerprint is A1F3 A948 8487 FD6E F14F 9A8C 54B5 CFDF C332 746D

To claim this, I am signing this object:

function pulumi-edit
set -l environment $argv[1]
pulumi -s org/$environment stack export > /tmp/pulumi.json && subl -w /tmp/pulumi.json && pulumi -s org/$environment stack import < /tmp/pulumi.json
end
@fernandocarletti
fernandocarletti / dns_test.sh
Created June 20, 2018 17:25
Check the DNS resolution time across many DNS servers.
#!/usr/bin/env bash
DEFAULT_HOSTNAME="pudim.com.br"
function help() {
echo "DNS Test"
echo
echo "Check the DNS resolution time across many DNS servers."
echo
echo "Usage:"

Keybase proof

I hereby claim:

  • I am fernandocarletti on github.
  • I am fernandocarletti (https://keybase.io/fernandocarletti) on keybase.
  • I have a public key whose fingerprint is 4E97 1C21 D273 430A B6E1 E470 723E EB4D 7300 D6C8

To claim this, I am signing this object:

diff --git a/Abstract/abstract-php-version.rb b/Abstract/abstract-php-version.rb
index d3dc9a1..48ce484 100644
--- a/Abstract/abstract-php-version.rb
+++ b/Abstract/abstract-php-version.rb
@@ -1,10 +1,10 @@
class AbstractPhpVersion < Formula
module PhpdbgDefs
- PHPDBG_SRC_TARBAL = 'https://github.com/krakjoe/phpdbg/archive/v0.3.2.tar.gz'
+ PHPDBG_SRC_TARBAL = 'https://github.com/krakjoe/phpdbg/archive/v0.4.0.tar.gz'
PHPDBG_CHECKSUM = {
@fernandocarletti
fernandocarletti / gist:da081a7e09ee9e4c486e
Created March 1, 2015 03:01
Homebrew phpdbg inreplace error workaround
diff --git a/Abstract/abstract-php.rb b/Abstract/abstract-php.rb
index 4eb8bc6..d46b5f8 100644
--- a/Abstract/abstract-php.rb
+++ b/Abstract/abstract-php.rb
@@ -309,7 +309,7 @@ INFO
if build.with? 'phpdbg'
args << "--enable-phpdbg"
end
-
+
@fernandocarletti
fernandocarletti / gist:8527567
Created January 20, 2014 19:40
PHP json_decode array vs. object benchmark
<?php
$iterations = 1000000;
$initialTime = microtime(true);
$jsonString = <<<JSON
{
"Response":
{
"MetaInfo":
{
@fernandocarletti
fernandocarletti / bench_gs.php
Created October 18, 2013 11:05
Benchmarking php classes using public methods and getters/setters, as read on https://developers.google.com/speed/articles/optimizing-php
<?php
#################################################
# My machine results (1.000.000 iterations) #
#################################################
# Run | Getters/Setters | Public #
#-----------------------------------------------#
# First | 0.31555795669556 | 0.079293012619019 #
# Second | 0.30993223190308 | 0.072643995285034 #
# Third | 0.32820105552673 | 0.073053121566772 #
#################################################
@fernandocarletti
fernandocarletti / hack.sh
Last active December 15, 2015 10:49 — forked from erikh/hack.sh
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#