Skip to content

Instantly share code, notes, and snippets.

View erwinagpasa's full-sized avatar
:octocat:

Erwin Agpasa erwinagpasa

:octocat:
View GitHub Profile
// 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': 'john.doe@example.com'},
@erwinagpasa
erwinagpasa / Powerschool SIS - Basic Student Query
Last active October 3, 2022 10:14
Powerschool SIS - Basic Student Query
<!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/php@8.0/bin:$PATH"
export PATH="/usr/local/opt/php@8.0/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).
@erwinagpasa
erwinagpasa / xampp-automatically-start-on-macos-startup.md
Created November 28, 2020 16:17 — forked from ozgrozer/xampp-automatically-start-on-macos-startup.md
XAMPP automatically start Apache and MySQL on MacOS startup

XAMPP automatically start Apache and MySQL on MacOS startup

  1. Change directory.
cd /Library/LaunchDaemons
  1. Create Apache file for startup.