Skip to content

Instantly share code, notes, and snippets.

View mbonell's full-sized avatar

Marcela Bonell mbonell

View GitHub Profile
##########################
# Universidad Digital
# Apps Development in OpenStack
# Tarea: Dia 1
##########################
Video: Is OpenStack Ready for App Developers? The Journey of Application Developers in Public Clouds
URL: https://www.openstack.org/videos/video/is-openstack-ready-for-app-developers-the-journey-of-application-developers-in-public-clouds
1. Ver el video.
2. Identificar los retos que tiene OpenStack como plataforma en comparacion a otras opciones comerciales
@mbonell
mbonell / shade-swift-getting-started.py
Last active May 10, 2017 15:08
First steps using Shade to interact with OpenStack Swift API
from shade import *
simple_logging(debug=True)
conn = openstack_cloud(cloud='ovh-boston-summit-cloud')
# Create a swift container
container_name = 'my-pets'
container = conn.create_container(container_name)
# List containers
@mbonell
mbonell / gophercloud-swift-getting-started.go
Last active April 26, 2017 04:24
First steps using Gophercloud to interact with OpenStack Swift API
package main
import (
"bufio"
"log"
"os"
"github.com/gophercloud/gophercloud"
"github.com/gophercloud/gophercloud/openstack"
"github.com/gophercloud/gophercloud/openstack/objectstorage/v1/containers"
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="theme-color" content="#6D506E" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Hello Cloud App Devs</title>
<link href="https://fonts.googleapis.com/css?family=Pacifico" rel="stylesheet">
#!/bin/sh
sudo apt-get update
sudo apt-get install apache2 apache2-doc apache2-utils libexpat1 ssl-cert -y
wget https://gist.githubusercontent.com/MBonell/d1ac6700859db234b3d00151733997fe/raw/97addf5576725a67922e04e2f3b8c82854e9d8ad/example.html
sudo cp example.html /var/www/html/index.html
package main
import (
"fmt"
"log"
"os"
"time"
"github.com/gophercloud/gophercloud"
"github.com/gophercloud/gophercloud/openstack"
package main
import (
"log"
"net/http"
"net/rpc"
"github.com/mbonell/simple-rpc-server/models"
)
package service
// Request represents the data args for the service.
type Request struct {
A, B float64
}
// Response represents the data results from the service.
type Response struct {
Result float64
package service
// Operations stands for all the remote fuctions definition in the service.
type Operations interface {
Addition(*Request, *Response) error
Subtraction(*Request, *Response) error
}
package service
import (
"errors"
"log"
)
// Calculator represents the service available over the network.
type Calculator int