Skip to content

Instantly share code, notes, and snippets.

<!-- Insert this code at the bottom of your Drupal PHP template -->
<script type='text/javascript'>
(function() {
function loadConfig (config) {
var el = document.createElement('script');
el.type = 'application/json';
el.id = 'laterpay-connector';
el.innerHTML = JSON.stringify(config);
document.head.appendChild(el);
}
POTOMAC LOCAL
curl -D - "https://potomaclocal.com/2010/06/28/effort-launched-to-combat-premature-births/?lptoken=t%7CpXC%2BFMypuiXnjEqNNyTNKIY9PGv6qquaZ6LNy5dyZ562qBXnTRK0gK4rFyMyxUTxBjiYrGBkbpLJi1%2BKWP5y6A%3D%3D%7C1585354220%7Ca9b5c1cf36a94ca098b2f0cfd6b924303b599eb1d22a9d48f4371996&ts=1585354220&hmac=1deb7c4b58ba1aab98c349fcc461c7c216db22aa93f45c1274ffe8c2"
HTTP/2 302
server: nginx
date: Sat, 28 Mar 2020 00:36:28 GMT
content-type: text/html; charset=UTF-8
content-length: 0
location: https://potomaclocal.com/2010/06/28/effort-launched-to-combat-premature-births/
x-vc-enabled: false
Blakes-MBP:Downloads bcrosby$ curl -I 'https://connector.sandbox.uselaterpaytest.com/api/v2/fetch/?article_title=Demo+Page&article_url=http%3A%2F%2Fwww.blakecrosby4.com%2Flaterpay%2Fpaid%2F' -H "Origin: http://www.blakecrosby4.com"
HTTP/1.1 204 No Content
Allow: GET, HEAD, OPTIONS
Content-Language: en
Content-Length: 0
Date: Fri, 13 Mar 2020 19:36:06 GMT
Server: nginx/1.16.1
Strict-Transport-Security: max-age=31536000; includeSubDomains
Vary: Cookie, Accept-Language
X-Content-Type-Options: nosniff
Blakes-MBP:Downloads bcrosby$ curl -I 'https://connector.sandbox.uselaterpaytest.com/api/v2/fetch/?article_title=Demo+Page&article_url=http%3A%2F%2Fwww.blakecrosby4.com%2Flaterpay%2Fpaid%2F' -H "Origin: http://www.blakecrosby4.com"
HTTP/1.1 204 No Content
Allow: GET, HEAD, OPTIONS
Content-Language: en
Content-Length: 0
Date: Fri, 13 Mar 2020 19:36:06 GMT
Server: nginx/1.16.1
Strict-Transport-Security: max-age=31536000; includeSubDomains
Vary: Cookie, Accept-Language
X-Content-Type-Options: nosniff
if (req.url ~ "^/blog2(.*)") {
set req.url = "/" + re.group.1;
}
list_type | list_country | list_name | list_brewer | list_price | list_abv | list_size
-----------+----------------+-----------------------------+--------------------------------+------------+----------+--------------------
Ale | Belgium | Affligem Blonde | Affligem Brewery | 170.25 | 6.5 | 1 × Keg 20000 ml
Ale | Belgium | De Koninck | Duvel Moortgat N.V. | 267.15 | 5.0 | 1 × Keg 30000 ml
Ale | Belgium | Delirium Tremens | Brewery Huyghe | 295.35 | 8.5 | 1 × Keg 30000 ml
Ale | Belgium | Fruli | Brewery Huyghe | 270.15 | 4.1 | 1 × Keg 30000 ml
Ale | Belgium | Hoegaarden | Ab Inbev | 352.80 | 5.0 | 1 × Keg 50000 ml
Ale | Belgium | Houblon Chouffe | Duvel Moor
Command:
printf "live version 1.0 user dbrobert password xxxxx events "position"\n\n" | openssl s_client -host firehose.flightaware.com -port 1501 -quiet -tls1 | php test.php
test.php:
<?php
xxxxx:~# ssh ADMIN@10.142.0.130
ADMIN@10.142.0.130's password:
ATEN SMASH-CLP System Management Shell, version 1.04
Copyright (c) 2008-2009 by ATEN International CO., Ltd.
All Rights Reserved
-> help
/
@blakecrosby
blakecrosby / gist:1731bcddec0897e1c23d
Created December 24, 2014 16:18
Best Traceroute Ever!
[bcrosby@infiniteloop ~]$ traceroute -m255 xmas.futile.net
traceroute to xmas.futile.net (77.75.106.106), 255 hops max, 60 byte packets
1 router2-nac.linode.com (207.99.1.14) 0.460 ms 0.569 ms 0.693 ms
2 207.99.53.45 (207.99.53.45) 0.243 ms 0.254 ms 0.286 ms
3 0.e1-1.tbr2.tl9.nac.net (209.123.10.78) 1.278 ms 1.260 ms 1.351 ms
4 0.e2-2.pr2.tl9.nac.net (209.123.11.146) 1.252 ms 1.331 ms 1.384 ms
5 xe-0-0-0-0.edge00.thn.uk.hso-group.net (195.66.224.226) 79.858 ms 79.847 ms 79.827 ms
6 xe-8-3.core00.thn.uk.hso-group.net (93.89.91.15) 83.115 ms 80.668 ms 80.683 ms
7 xe-4-4.core00.gs1.uk.hso-group.net (77.75.108.160) 88.337 ms 88.427 ms 86.697 ms
8 ae0-1203.edge00.sov.uk.hso-group.net (46.17.60.117) 82.199 ms 82.166 ms 82.122 ms
bcrosby@oob-fra1208:~$ sudo ipmitool -U ADMIN -P ADMIN -H 172.16.11.146 -I lanplus bmc info
Device ID : 32
Device Revision : 1
Firmware Revision : 3.17
IPMI Version : 2.0
Manufacturer ID : 10876
Manufacturer Name : Supermicro
Product ID : 1574 (0x0626)
Product Name : Unknown (0x626)
Device Available : yes