Skip to content

Instantly share code, notes, and snippets.

View benarent's full-sized avatar
💼

Ben Arent benarent

💼
View GitHub Profile
teleport start \
--roles=node \
--token=647f8821923da38098c7761f056f9ae2 \
--ca-pin=sha256:d88fb278a51769f59f15402f242b50c98eaec4e4e467d28ecc743e754228751a \
--auth-server=10.1.2.92:3025
@benarent
benarent / api.md
Created November 27, 2018 20:03
Philip air purifier API?

I've been recently looking for an API for Philip Air Purifier 2000i. I've noticed that I can ping the IP at http://10.0.1.51 which returns {"error":"Badly formed (DI Comm) request "}

After setting up the mobile app and inspecting the traffic I've noticed a few endpoints but I'm currently getting a strange base64 application/octet-stream out of the device.

I've put this here to help others.

GET: User Info

http://10.0.1.51/di/v1/products/0/userinfo

@benarent
benarent / Librato.json
Last active March 22, 2017 16:53
StatsD Instructions
{
"event": "librato_",
"url": "https://metrics-api.librato.com/v1/measurements",
"requestType": "POST",
"auth": {
"username": "YOUR_LIBRATO_USERNAME",
"password": "YOUR_LIBRATO_API_TOKEN"
},
"json": {
"tags": {
@benarent
benarent / gist:ebef3e79752044a4480c9e72bb9a3aaa
Created February 23, 2017 23:43
All Rainforest IPs for Google Anayltics
107\.170\.58\.26|136\.243\.34\.202|136\.243\.61\.144|144\.76\.106\.134|144\.76\.184\.203|144\.76\.222\.134|144\.76\.39\.177|144\.76\.45\.197|144\.76\.79\.99|144\.76\.84\.173|144\.76\.93\.110|148\.251\.0\.38|148\.251\.13\.134|148\.251\.151\.9|148\.251\.81\.139|159\.203\.36\.96|176\.9\.104\.78|176\.9\.111\.175|176\.9\.120\.98|176\.9\.122\.86|176\.9\.126\.173|176\.9\.142\.197|176\.9\.144\.139|176\.9\.148\.174|176\.9\.150\.147|176\.9\.151\.195|176\.9\.156\.166|176\.9\.18\.90|176\.9\.19\.67|176\.9\.2\.102|176\.9\.2\.45|176\.9\.26\.108|176\.9\.26\.118|176\.9\.28\.167|176\.9\.30\.239|176\.9\.32\.6|176\.9\.36\.105|176\.9\.37\.10|176\.9\.6\.149|176\.9\.66\.71|176\.9\.80\.103|176\.9\.91\.135|178\.63\.100\.16|178\.63\.101\.7|178\.63\.14\.136|178\.63\.22\.133|178\.63\.70\.204|178\.63\.83\.83|178\.63\.9\.77|188\.40\.127\.2|188\.40\.134\.143|188\.40\.32\.78|188\.40\.76\.201|188\.40\.88\.202||188\.40\.89\.135|188\.40\.98\.213|213\.239\.199\.226|213\.239\.204\.102|213\.239\.204\.92|46\.4\.100\.243|46\.4\.103\.15|46\.4\.104\.
@benarent
benarent / adc.js
Last active February 14, 2017 22:29
Librato Conversion ADC Script.js
<script type="text/javascript">
// code via https://github.com/librato/unbounce
var AdStorage, MarketingTracking, Tracking, initTracking, initValidations,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
AdStorage = (function() {
function AdStorage() {
var params;
if (this.getUriParams() != null) {
https://www.clearslide.com/product/freetrial?utm_source=google&utm_medium=cpc&utm_campaign=Brand&utm_group=ClearSlide&utm_content=sales+platform&_bk=clearside&_bt=137653423871&_bm=e&gclid=CMCS_JWqxM8CFQaDfgodqwkOug
Delivered-To: [email protected]
Received: by 10.31.82.5 with SMTP id g5csp2289095vkb;
Tue, 20 Oct 2015 15:59:03 -0700 (PDT)
X-Received: by 10.50.122.106 with SMTP id lr10mr6711097igb.86.1445381943373;
Tue, 20 Oct 2015 15:59:03 -0700 (PDT)
Return-Path: <[email protected]>
Received: from o1.mail6.shared.hubspot.com (o1.mail6.shared.hubspot.com. [198.37.146.111])
by mx.google.com with ESMTPS id w8si20583913igb.83.2015.10.20.15.59.02
for <[email protected]>

Keybase proof

I hereby claim:

  • I am benarent on github.
  • I am benarent (https://keybase.io/benarent) on keybase.
  • I have a public key whose fingerprint is F761 316B 1106 0F14 6B17 17EB 6857 1B9E DB02 FD49

To claim this, I am signing this object:

window._pa = window._pa || {};
_pa.segments = [{
"name": "All visitors",
"id": 932517,
"regex": ".*"
}, {
"name": "Blog Visitors",
"id": 962428,
"regex": "blog.airbrake.io"
}, {
Airbrake.configure do |config|
config.api_key = 'myapikey'
config.environment_name = `hostname` # or whatever else
end