- Change directory.
cd /Library/LaunchDaemons- Create Apache file for startup.
| [email protected] | |
| [email protected] | |
| [email protected] | |
| [email protected] | |
| [email protected] | |
| [email protected] | |
| [email protected] | |
| [email protected] | |
| [email protected] | |
| [email protected] |
| // SendPulse's Node.JS Library: https://github.com/sendpulse/sendpulse-rest-api-node.js | |
| var sendpulse = require("./api/sendpulse.js"); | |
| sendpulse.init(API_USER_ID,API_SECRET,TOKEN_STORAGE); | |
| var email = { | |
| "html" : "<p>Your email content goes here</p>", | |
| "text" : "Your email text version goes here", | |
| "subject" : "Testing SendPulse API", | |
| "from" : { | |
| "name" : "Your Sender Name", |
| # SendPulse's Python Library: https://github.com/sendpulse/sendpulse-rest-api-python | |
| from pysendpulse import PySendPulse | |
| if __name__ == "__main__": | |
| TOKEN_STORAGE = 'memcached' | |
| SPApiProxy = PySendPulse(REST_API_ID, REST_API_SECRET, TOKEN_STORAGE) | |
| email = { | |
| 'subject': 'This is the test task from REST API', | |
| 'html': '<p>This is a test task from https://sendpulse.com/api REST API!</p>', | |
| 'text': 'This is a test task from https://sendpulse.com/api REST API!', | |
| 'from': {'name': 'John Doe', 'email': '[email protected]'}, |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Basic Student Query</title> | |
| </head> | |
| <body> | |
| <table> | |
| <thead><th>Name</th></thead> | |
| <tbody> | |
| ~[tlist_sql; |
| # If you come from bash you might have to change your $PATH. | |
| # export PATH=$HOME/bin:/usr/local/bin:$PATH | |
| #Python Settings | |
| alias python="/usr/local/bin/python3" | |
| alias pip=pip3 | |
| #PHP Settings | |
| export PATH="/usr/local/opt/[email protected]/bin:$PATH" | |
| export PATH="/usr/local/opt/[email protected]/sbin:$PATH" |
| # graphr | |
| 1. Make sure you have Mysql up and running. | |
| 2. Create a folder "graphr" go inside. | |
| 3. Install pipenv Run: pip install pipenv. | |
| 4. From "graphr folder" Run: pipenv shell (to activate the python environment). |