Skip to content

Instantly share code, notes, and snippets.

View alphex's full-sized avatar

Duran Goodyear alphex

View GitHub Profile
@alphex
alphex / deploy-main-to-pantheon.yml
Last active March 20, 2024 23:11
Drupal in github push main to master on Pantheon
name: Deploy Master to Pantheon
on:
push:
branches:
- 'main'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
@alphex
alphex / deploy-branch-to-pantheon-multidev.yml
Last active March 20, 2024 23:12
Drupal Github Push to Multidev
name: Deploy Branch to Pantheon Multidev
on:
push:
branches:
- '*'
- '!main'
jobs:
build:
runs-on: ubuntu-latest
steps:
@alphex
alphex / trey_gowdy_is_an_idiot.md
Created May 3, 2020 23:30
Trey Gowdy is an idiot.

From Trey Gowdy:

""I'm not saying Covid-19 isn't real... But Pay attention folks, there's much more going on here than what meets the eye.”

Oh, I love mysteries, lets see what proof Trey Gowdy has to substantiate such a wild and tin foil hat provoking claim!

"Is it a coincidence that just when the economy is booming…"

I mean, by some measurements, yes, it is. But its super subjective. How do you measure the economy? In quarterly statements? Yearly statements? How about, per capita wealth over the last 40 years?

<div style="padding-left:10px;">
Your block of text goes here, with any other line breaks or what ever...
</div>
@alphex
alphex / event_date_formatting.md
Created September 9, 2019 14:59
Handing date formatting in D8 twig

Prepare variable for your node templates

function THEMENAME_preprocess_node__NODETYPE(&$variables) {
  if (isset($variables['content']['FIELDNAME'])) {
    $date = $variables['node']->get('FIELDNAME')->first()->getValue()['value'];
    $date = new DateTime($date);
    $date = $date->getTimestamp();
    $variables['VARIABLE'] = $date;
 }
@alphex
alphex / gist:b785250f031b11b7b1a965fc5092d6d4
Last active September 27, 2016 00:41
destiny roi ARG sept 26 8:37 pm EST
X5jl/z/+8ClIZloqCr9ABtV6AtcdVNUxqlqbfRw/FrChhrRQSKedl4pPidwCKes4LB56+jqJnnNMK1/nEBDVIsFDte4543Cr8LnvfBv5oKCSCEUSHjfDTNzV8/9eCjJSQ3iWHqInFYYpYF6iSNKd33hshxO96lGNnG24TsIRtYlK30KTQkTphBg+uZ3Gn/6oOhfN2Wh3rEgWjRQW3jG9J4JSC/9x0Obx0oO5dq6x+X1zMwLvs4XKa7DIxVgFJogCnBl0H2a72EuwdzMwdNUCjtcBP7mBEaCK7ewvDguKIBceOhEaYPmNQQALoqm5C+UYF1PpoEiUUt2fxVyCIPI7DbfbTrHDSy1yo+hdqx2vz356WU60rVz1FGC76OAd/KSuLXMQe7qxABGqwRpAKxZt6ZDfTSLlClZ3bomyKp+1MzuGWtaMtFe/rUMb2FdWGLCnXvS/M3jX2ZSRA9hOel6RUwR/NVLHea55JBV05sYoYUlGMYFw6vw2wOJdhey9tGVXBEziGkLfSUAyeZ3Wc/HYSvIprSNf+w5gfN8Lrg3VGNTAwSSR9Y5xxXCjrteoWauim4YoEZqkr3OnI/ZRAixH7KzjXbqq9/slVgYvj6JuqpjZFEREXMtY1EAJcGBe6RzhnV/AngjW0vHP6MPDrWk2wlXbM3StoUaWewyuJ93YC/VxBrbQ6H+NEZv8h0VcaViZw/0++OhHBMu8Kf+R1n3tfO5KR6orsgi9A/7Xb/58uqUvyndfGTynJh/+/UL0ZG2BndpXgf6jmwZI9vuyyJAR4yvMAqVOxLZiZtyiQ8X/o6hbJr8Ol1VIjpy0S4+hEyJux5z25pQheL+ViReFcUk4JMWjaNAcoIsdbTQXxqep4KWnacy8dC55GLwiBl3vc8JiT0/QLBpZIle23Su8MjSGvDg8Af+QpKsdv8L3mtWMUY4ivkkYmqpDnK6ZxWLzw38eZBY2yWJsfX84poyV1zWbBjlRCBPKmTywmIGnxhEnh4ipBlUryddmt/j7eswg0sAq

Keybase proof

I hereby claim:

  • I am alphex on github.
  • I am alphex (https://keybase.io/alphex) on keybase.
  • I have a public key whose fingerprint is 257F 71E5 CD5D AC32 5E58 9790 255A 24DD B657 46C6

To claim this, I am signing this object:

@alphex
alphex / gist:3549547
Created August 31, 2012 06:08
example httperf results
////
$ httperf --server www.yourwebsite.com --port 80 --uri /majors-programs --rate 500 --num-conn 5000 --num-call 1 --timeout 10
httperf --timeout=10 --client=0/1 --server=www.yourwebsite.com --port=80 --uri=/majors-programs --rate=500 --send-buffer=4096 --recv-buffer=16384 --num-conns=5000 --num-calls=1
httperf: warning: open file limit > FD_SETSIZE; limiting max. # of open files to FD_SETSIZE
Maximum connect burst length: 2
Total: connections 5000 requests 5000 replies 5000 test-duration 10.244 s
Connection rate: 488.1 conn/s (2.0 ms/conn, <=143 concurrent connections)
Connection time [ms]: min 240.0 avg 251.1 max 305.8 median 248.5 stddev 8.5