aly / aws-cloudformation-lamp-test.yml
0 likes
0 forks
1 files
Last active
generated by AWS cloudformation
| 1 | AWSTemplateFormatVersion: 2010-09-09 |
| 2 | Description: >- |
| 3 | AWS CloudFormation Sample Template LAMP_Single_Instance: Create a LAMP stack |
| 4 | using a single EC2 instance and a local MySQL database for storage. This |
| 5 | template demonstrates using the AWS CloudFormation bootstrap scripts to |
| 6 | install the packages and files necessary to deploy the Apache web server, PHP |
| 7 | and MySQL at instance launch time. **WARNING** This template creates an Amazon |
| 8 | EC2 instance. You will be billed for the AWS resources used if you create a |
| 9 | stack from this template. |
| 10 | Parameters: |
aly / discord_presence_pbx.py
0 likes
0 forks
1 files
Last active
connects to an asterisk manager and picks up ExtensionStatus messages. ties into https://gist.github.com/blha303/37e83f320b009de19e7a6c140f51e8d5
| 1 | import socket |
| 2 | from requests import get |
| 3 | |
| 4 | EXTEN = "1" |
| 5 | presence_api = "http://127.0.0.1:8081" |
| 6 | auth = ("me", "aa") |
| 7 | pbx_ip = "127.0.0.2" |
| 8 | |
| 9 | def process_event(resp): |
| 10 | d = {} |
aly / discord_presence_working.py
0 likes
0 forks
1 files
Last active
A webpage for updating my presence while I'm at work showing what I'm up to
| 1 | from pypresence import Presence # https://github.com/qwertyquerty/pypresence |
| 2 | from flask import * |
| 3 | from requests import get |
| 4 | from time import sleep |
| 5 | |
| 6 | client_id = "556918123421368329" |
| 7 | |
| 8 | RPC = Presence(client_id) |
| 9 | RPC.connect() |
| 10 | app = Flask(__name__) |
aly / discord_presence_plex.py
0 likes
0 forks
1 files
Last active
uses Tautulli as an easy way to get plex session data. has to be run on the same machine as your discord desktop client for access to RPC
| 1 | from pypresence import Presence # https://github.com/qwertyquerty/pypresence |
| 2 | from requests import get |
| 3 | from time import sleep |
| 4 | from sys import exit |
| 5 | |
| 6 | client_id = "556909532417228919" |
| 7 | user = "blha303" |
| 8 | tautulli_instance = "https://tau.home.b303.me" # https://github.com/Tautulli/Tautulli |
| 9 | |
| 10 | RPC = Presence(client_id) |
aly / ipxe-isodir.php
0 likes
0 forks
1 files
Last active
Loads a directory of isos and returns an ipxe-compatible boot list
| 1 | <?php |
| 2 | header("Content-Type: text/plain"); |
| 3 | $server = "http://192.168.1.1"; |
| 4 | ?> |
| 5 | #!ipxe |
| 6 | |
| 7 | menu ISO Directory |
| 8 | <?php |
| 9 | $arr = array(); |
| 10 | $urls = array(); |