Skip to content

Instantly share code, notes, and snippets.

View seanr's full-sized avatar

Sean Robertson seanr

View GitHub Profile
@seanr
seanr / AttributeGenerator.php
Created December 16, 2020 20:23
Attribute Generator
<?php
use Drush\Drush;
use Drupal\commerce_product\Entity\ProductAttributeValue;
use Symfony\Component\Yaml\Yaml;
$yml = file_get_contents('/app/config/templates/commerce-attributes/attributes.yml');
$attributes = Yaml::parse($yml);
// For each attribute
foreach ($attributes as $attribute) {
@seanr
seanr / traceroute.usgs.txt
Created May 18, 2021 02:57
traceroute astrogeology.usgs.gov
$ traceroute astrogeology.usgs.gov 10:40:40 PM
traceroute to astrogeology.resolve-esas.usgs.gov (137.227.242.5), 64 hops max, 52 byte packets
1 192.168.0.1 (192.168.0.1) 6.067 ms 10.287 ms 11.210 ms
2 cpe-24-90-88-1.nyc.res.rr.com (24.90.88.1) 15.474 ms 26.904 ms 20.660 ms
3 be63.nydbny7002h.nyc.rr.com (68.173.202.118) 13.036 ms 15.314 ms 16.343 ms
4 agg111.nyquny9101r.nyc.rr.com (68.173.198.106) 24.757 ms 15.294 ms 20.422 ms
5 bu-ether25.nycmny837aw-bcr00.tbone.rr.com (107.14.19.22) 17.327 ms
bu-ether15.nycmny837aw-bcr00.tbone.rr.com (66.109.6.76) 21.812 ms
bu-ether25.nycmny837aw-bcr00.tbone.rr.com (107.14.19.22) 20.048 ms
6 ae-15-210.pr0.lax10.tbone.rr.com (66.109.9.5) 63.459 ms 29.359 ms