Skip to content

Instantly share code, notes, and snippets.

View jeanfrancis's full-sized avatar
🏠
Working from home

Jean-Francis AHANDA jeanfrancis

🏠
Working from home
View GitHub Profile
import zillabyte
from twilio.rest import TwilioRestClient
def send_text(controller, tup):
# Register twilio client
twilio_client = TwilioRestClient(tup["twilio_sid"], tup["twilio_auth"])
try:
# Send message to recipient and wait 1 second (twilio SMS rate limit)
import zillabyte
twilio_sid = "SID_HERE"
twilio_auth = "AUTH_HERE"
class TwilioEach:
def prepare(self, controller):
# Dictionary of phone numbers subscribed to cities (just for show with small sample, please use a
# REAL source when using a significant number of phone numbers)
  1. General Background and Overview

Simple Uptime Robot Dashing widget

Description

Dashing widget to display a short list of Uptime Robot monitors.

##Usage

Add this to your Gemfile and run bundle install:

<html>
<head>
<title>Parse Cloud Code</title>
</head>
<body>
<!-- redonkulously simple UI -->
<input type="text" placeholder="enter phone number"/>
<button>Call This Number</button>
<!-- jQuery, because jQuery -->
@jeanfrancis
jeanfrancis / main.js
Last active August 29, 2015 14:16 — forked from kwhinnery/main.js
// Use Parse's RPC functionality to make an outbound call
Parse.Cloud.define('makeCall', function(request, response) {
// Create a Twilio REST API client - get your account SID and
// auth token at https://www.twilio.com/user/account
var client = new twilio.RestClient(
'YOUR_ACCOUNT_SID', // Account SID
'YOUR_AUTH_TOKEN' // auth token
);
// Place an outbound call
@jeanfrancis
jeanfrancis / main.js
Last active August 29, 2015 14:16 — forked from kwhinnery/main.js
// Include Cloud Code module dependencies
var express = require('express'),
twilio = require('twilio');
// Create an Express web app (more info: http://expressjs.com/)
var app = express();
// Create a route that will respond to am HTTP GET request with some
// simple TwiML instructions
app.get('/hello', function(request, response) {
import zillabyte
twilio_sid = "SID_HERE"
twilio_auth = "AUTH_HERE"
class TwilioEach:
def prepare(self, controller):
# Dictionary of phone numbers subscribed to cities (just for show with small sample, please use a
# REAL source when using a significant number of phone numbers)

Installing Openstack VPNaaS, LBaaS, and FWaaS

This brief overview assumes that Openstack Havana has been installed and setup with Neutron Networking. If you have not already done this, you could use "https://github.com/cloudnull/rcbops_allinone_inone" or devstack to setup a dev box and then perform the following actions.


  • install "openswan":

    # (apt-get install openswan neutron-plugin-vpn-agent) || (yum install openswan openstack-neutron-vpn-agent && chkconfig neutron-vpn-agent on)
    

Description

Dashing widget to show the status of builds from CircleCI. Also shows the avatar of the person who is running/breaking/passing the current build.

Usage

  • Get a Circle API Token from your Account Dashboard and set it in your environment as CIRCLE_CI_AUTH_TOKEN
  • Add the httparty to your Gemfile and run bundle install

Then: