In this document I describe the steps to setup OpenStack cloud on Fedora 19
First, install OpenStack on Fedora 19
RDO Quick Start -
# http://hong.im/2013/04/20/linux-tcp-tuning/ | |
net.ipv4.tcp_syncookies = 1 | |
# 表示开启 SYN Cookies。当出现 SYN 等待队列溢出时,启用 cookies 来处理,可防范少量 SYN 攻击,默认为 0,表示关闭; | |
net.ipv4.tcp_tw_reuse = 1 | |
# 表示开启重用。允许将 TIME-WAIT sockets 重新用于新的 TCP 连接,默认为 0,表示关闭; | |
net.ipv4.tcp_tw_recycle = 1 | |
# 表示开启 TCP 连接中 TIME-WAIT sockets 的快速回收,默认为 0,表示关闭; | |
net.ipv4.tcp_fin_timeout = 15 | |
# 修改系統默认的 TIMEOUT 时间。 |
<?php | |
// Set timezone | |
// date_default_timezone_set("UTC"); | |
// Directory that contains error pages | |
define("ERRORS", dirname(__FILE__) . "/flarum/error"); | |
// Default index files | |
define("WEB_INDEX", "index.php"); | |
define("API_INDEX", "api.php"); |
composer.lock | |
vendor/ | |
*.bak | |
*.swp | |
*.swap | |
*.old | |
*.back | |
.DS_Store |
<?php | |
/******************************************************************************* | |
* Copyright 2013 Kevin Mark * | |
* * | |
* 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 * | |
* * |
use std::iter::FromIterator; | |
fn main() { | |
let columns_number: i64 = 356; | |
println!("Number of columns_number: {}", columns_number); | |
let mut columns_array: Vec<String> = Vec::new(); | |
let mut last_column: Vec<char> = Vec::new(); | |
web_db: | |
image: mariadb:latest | |
restart: always | |
volumes: | |
- ./var/mysql:/var/lib/mysql | |
environment: | |
MYSQL_ROOT_PASSWORD: @Str0NgP@Ssw0rd | |
web_front: | |
image: nginx |
Setting up Sendy with Laravel | |
(there might be bugs, I striped out some parts of my code because what I have is more complicated then that, so, sorry if it's broken!) | |
-- | |
I would recommand creating a database for Sendy only. | |
Add Sendy's database into your database.php (1) | |
Create the Campaign model (2), and specify that you want to use Sendy's database (Campaigns are the only thing we really need to create, other things like creating lists can be done through Sendy interface, and there is a PHP library to add subscribers) | |
Now, it's time to install Sendy, usually somewhere like yourapp.com/sendy or yourapp.com/newsletter |
<?php | |
class DefaultController extends Controller | |
{ | |
/** | |
* Dashboard page. | |
* @Permissions(perm="dashboard_view") | |
* @Route("/", name="ITEDashboardBundle_index") | |
* @Template() | |
* @return array |