Skip to content

Instantly share code, notes, and snippets.

View adamrefaey's full-sized avatar
🦾

Mustafa (Adam) Refaey adamrefaey

🦾
View GitHub Profile
@adamrefaey
adamrefaey / benchmark-couchbase.php
Last active March 24, 2022 01:30
Basic Couchbase Benchmark
<?php
use \Couchbase\ClusterOptions;
use \Couchbase\Cluster;
use \Couchbase\CollectionManager;
use \Couchbase\CollectionSpec;
use \Couchbase\InvalidConfigurationException;
// $port = ;
// $host = '';
@adamrefaey
adamrefaey / GetEnvVariablesSortedFromFile.php
Last active November 16, 2022 13:41
Sort env variables in a file to make it easier to compare it with another
<?php
// you should change this to be the name of the env var that you want to sort
$filename = 'divine';
$dotenvFile = file_get_contents($filename);
$lines = explode(PHP_EOL, $dotenvFile);
$elements = [];

Keybase proof

I hereby claim:

  • I am adamrefaey on github.
  • I am adamrefaey (https://keybase.io/adamrefaey) on keybase.
  • I have a public key ASAUj1WMe8kVlCTmcHn7jdQ_-_NR0_GiJc3iNM0IPraI5go

To claim this, I am signing this object: