I hereby claim:
- I am hussainweb on github.
- I am hussainweb (https://keybase.io/hussainweb) on keybase.
- I have a public key whose fingerprint is 810B 0D86 29F3 A550 98AF 3015 E1CE 9844 7E2C 7887
To claim this, I am signing this object:
# Paste in ~/.bash_profile | |
# | |
# Load ssh-agent. Taken from | |
# http://blog.killtheradio.net/how-tos/ssh-agent-on-cygwin/ | |
SSHAGENT=/usr/bin/ssh-agent | |
SSHAGENTARGS="-s" | |
if [ -z "$SSH_AUTH_SOCK" -a -x "$SSHAGENT" ]; then | |
eval `$SSHAGENT $SSHAGENTARGS` | |
trap "kill $SSH_AGENT_PID" 0 | |
fi |
<?php | |
/** | |
* @file | |
* HTML parsing support. | |
*/ | |
class MigrateHtmlParser { | |
protected $html; |
<?php | |
namespace App\Http\Middleware; | |
use Closure; | |
use Illuminate\Http\Request; | |
use XHProfRuns_Default; | |
/** | |
* Class XhprofMiddleware. | |
* |
{ | |
"name": "hw/drupal-composer", | |
"description": "My awesome Drupal 7 site", | |
"type": "project", | |
"require": { | |
"php": ">=5.2.5", | |
"ext-gd": "*", | |
"ext-xml": "*", | |
"ext-json": "*", | |
"ext-openssl": "*", |
{ | |
"name": "hw/drupal-composer", | |
"type": "project", | |
"require": { | |
"cweagans/composer-patches": "^1.6.0", | |
"hussainweb/drupal-composer-helper": "^1.0", | |
"drupal/core": "^8.4", | |
"drupal/console": "^1.0.1", | |
"drush/drush": "~8.0|^9.0", | |
"drupal/redirect": "^1.0@beta", |
<?php | |
namespace Drupal\my_module\Plugin\Block; | |
use Drupal\Core\Access\AccessResult; | |
use Drupal\Core\Block\BlockBase; | |
use Drupal\Core\Cache\Cache; | |
use Drupal\Core\Plugin\ContainerFactoryPluginInterface; | |
use Drupal\Core\Routing\RouteMatchInterface; | |
use Drupal\Core\Session\AccountInterface; |
const fs = require('fs'); | |
const rssParser = require('rss-parser'); | |
const stats = require("stats-lite"); | |
(async () => { | |
const parser = new rssParser(); | |
const feed = await parser.parseURL('https://feed.syntax.fm/rss'); | |
// Or you can download the file manually with wget, like so: | |
// wget -O rss.rss https://feed.syntax.fm/rss |
I hereby claim:
To claim this, I am signing this object:
stages: | |
- build | |
- test | |
- deploy | |
platformsh: | |
image: axelerant/platformsh-cli:latest | |
before_script: | |
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' | |
- eval $(ssh-agent -s) |
#!/usr/bin/env php | |
<?php | |
$environments = explode("\n", `platform environments --columns=title,status --format=tsv --no-header | grep -v "\tInactive" | awk "{print \\$1}"`); | |
$remote_branches = explode("\n", `git ls-remote --heads | awk "{ print \\$2 }" | sed 's/refs\\/heads\\///'`); | |
$environments = \array_diff($environments, [ | |
"Master", | |
"develop", | |
"qa", |