Skip to content

Instantly share code, notes, and snippets.

View benarent's full-sized avatar
💼

Ben Arent benarent

💼
View GitHub Profile
#cloud-config
# created MOTD
# setup pam-exec
# setup teleport.yaml
write_files:
- path: /etc/motd
content: |
hello teleport user.
- path: /etc/pam.d/teleport

Hello World

#
# Example resource for a trusted cluster with RBAC
#
# IMPORTANT: only one field (enabled) can be changed after a cluster is created.
#
kind: trusted_cluster
version: v2
metadata:
# the name used for quick identification of this leaf cluster
name: CAN-WE-AUTOPOPULATE-this. ( e.g. hostname of the leaf cluster )
https://www.reddit.com/r/pop_os/comments/cju5ym/installing_pop_os_alongside_windows_10_on/
#
# Example resource for a role
#
kind: role
version: v3
metadata:
# insert the name of your role here:
name: role_name
spec:
# SSH options used for user sessions
> teleport start \
--roles=node \
--token=secret-value \
--ca-pin=sha256:d88fb278a51769f59f15402f242b50c98eaec4e4e467d28ecc743e754228751a \
--auth-server=10.1.2.92:3025
teleport start \
--roles=node \
--token=484a9ddb96b1e8899bb165c8237d90a7 \
--ca-pin=sha256:d88fb278a51769f59f15402f242b50c98eaec4e4e467d28ecc743e754228751a \
--auth-server=10.1.2.92:3025
-----BEGIN CERTIFICATE-----
MIIDgjCCAmqgAwIBAgIRAO7w9r77qQCHITTp229Z6gowDQYJKoZIhvcNAQELBQAw
ajEaMBgGA1UEChMRTWFjQm9vay1Qcm8ubG9jYWwxGjAYBgNVBAMTEU1hY0Jvb2st
UHJvLmxvY2FsMTAwLgYDVQQFEyczMTc2MDc0MTg4NDY4NTY3NjA4MjQ0Nzc1NjIy
MjQ4NTI0NjIwOTAwHhcNMTkwNDI1MTgwMDU3WhcNMjkwNDIyMTgwMDU3WjBqMRow
GAYDVQQKExFNYWNCb29rLVByby5sb2NhbDEaMBgGA1UEAxMRTWFjQm9vay1Qcm8u
bG9jYWwxMDAuBgNVBAUTJzMxNzYwNzQxODg0Njg1Njc2MDgyNDQ3NzU2MjIyNDg1
MjQ2MjA5MDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOJcM2r+xNlq
Rm12eQu6mAUqca9xgTUTW7DtsrGQeb4u6sop030EOK7uvdVBC2XjQRbkwwi5NbPF
Cat/p5flhxk2KZqpXNzRPjWy2br4kQxgn+jikxOAtOx4Yc7DsctAegmw5ynE9Ezj
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