Skip to content

Instantly share code, notes, and snippets.

mathslinux mathslinux

Block or report user

Report or block mathslinux

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View site.pp
$fsid = '076a5970-b23b-4cad-91bb-fadccfb26a31'
$mon_secret = 'AQD7kyJQQGoOBhAAqrPAqSopSwPrrfMMomzVdw=='
Exec {
path => '/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin'
}
#
class role_ceph (
$fsid,
View engine-iptables
# Generated by ovirt-engine installer
#filtering rules
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -i lo -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type any -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
@mathslinux
mathslinux / app.py
Created Oct 15, 2014
paste deploy example
View app.py
#!/usr/bin/python
#encoding: utf-8
import os
import eventlet
from eventlet import wsgi, listen
from paste import deploy
from webob import Request
cfg_file = 'app.ini'
@mathslinux
mathslinux / app.ini
Created Oct 15, 2014
paste deploy example
View app.ini
[app:blog]
paste.app_factory = app:Blog.factory
# use = call:app:blog_app
[composite:wiki]
use = egg:Paste#urlmap
/: home
/v1: wikiv1
[filter-app:home]
View glib-android.patch
diff -Nur glib-2.34.3-orig/gio/android-dep.h glib-2.34.3/gio/android-dep.h
--- glib-2.34.3-orig/gio/android-dep.h 1970-01-01 08:00:00.000000000 +0800
+++ glib-2.34.3/gio/android-dep.h 2013-04-01 12:30:13.927975756 +0800
@@ -0,0 +1,169 @@
+#ifndef ANDROID-DEP_H
+#define ANDROID-DEP_H
+
+#ifdef __ANDROID__
+
+#define dn_skipname __dn_skipname
View keystone_data.sh
#!/bin/bash
#
# Initial data for Keystone using python-keystoneclient
#
# Tenant User Roles
# ------------------------------------------------------------------
# admin admin admin
# service glance admin
# service nova admin, [ResellerAdmin (swift only)]
# service quantum admin # if enabled
View endpoints.sh
#!/bin/bash
# Author: Martin Gerhard Loschwitz
# (c) 2012 hastexo Professional Services GmbH
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
View ip.c
#include <stdio.h>
#include <string.h>
#include <gio/gio.h>
#include "ip.h"
static gchar *get_addr()
{
g_type_init();
GSocketClient *client = g_socket_client_new();
GSocketConnection *c = g_socket_client_connect_to_uri(
View test
目前该架构需要的硬件支持如下:
| 资源 |数量 | 规格型号 | 功能 | 其它 |
| -- | -- | -- | -- | -- |
| 控制(网络)节点服务器 | >=3 | R720 | 控制和网络服务, 提供 ceph monitor 服务 |至少四块网卡 |
| 计算节点服务器 | >=2 | R720 | 计算服务 | 至少五块网卡, 节点数量可按需扩展 |
| 分布式存储服务器 | >=3 | R720 | 高性能, 可扩展的分布式存储ceph | 至少两块网卡 |
| 高性能存储服务器 | 1 | Dell eqlx ps6210 | 高性能的存储 | 至少两块网卡 |
| 千兆交换机 | >=2 || 整合eayunstack提供HA的网络||
| 万兆交换机 | >=2 || 整合eayunstack提供HA的存储网络||
You can’t perform that action at this time.