Skip to content

Instantly share code, notes, and snippets.

View jimmiehansson's full-sized avatar
🇸🇪
Breaking things to improve them

Jimmie Hansson jimmiehansson

🇸🇪
Breaking things to improve them
View GitHub Profile
Ultimate OpenStack Havana Guide
# Guide to deploy OpenStack Havana on top of Ubuntu 12.04.3
#
# It covers: Ubuntu (hostnames, LVM), Open vSwitch, MySQL, Keystone, Glance,
# Neutron, Nova, Cinder and Dashboard.
# Preliminary IPv6 support!

Ultimate OpenStack IceHouse Guide

This is a Quick Guide to deploy OpenStack IceHouse on top of Ubuntu 14.04, it is IPv6-Ready!

It is compliant with OpenStack's official documentation (docs.openstack.org).

The tenant's subnets are based on Neutron, with ML2 plugin and Single Flat Network topology, dual-stacked.

The Single Flat Network is the simplest network topology supported by OpenStack (I think). So, it is easier to understand and follow.

fs.file-max = 65535
fs.inode-max = 32768
fs.suid_dumpable = 0
kernel.core_uses_pid = 1
kernel.exec-shield = 1
kernel.maps_protect = 1
kernel.msgmax = 65536
kernel.msgmnb = 65536
kernel.panic = 30
kernel.panic_on_oops = 30
@jimmiehansson
jimmiehansson / 0_reuse_code.js
Created May 20, 2014 04:23
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@jimmiehansson
jimmiehansson / gist:6235613
Created August 14, 2013 21:04
This is a gist made for Stackoverflow question: Returning values between different scopes in javascript
/**
* Generates restful API
* @desc Library handles all directory/file streams and IO
* for the APIEngine structure. Asynchronous folder iteration
* with proper cleanup.
* @Deps: fs, async, underscore
* @Formalia: Free to use for whatever you like, do anything you want to it.
* @param null
* @return func
*/
/**
* Generates restful API
* @param null
* @return func
*/
var fs = require('fs')
, async = require('async')
, _ = require('underscore')
, ApiFS = require('./api-fs')
, db = require('mongoose');
let x;
if(typeof x === "string"){
console.log("This is a string");
}
else if(typeof x === "number"){
console.log("This is a number");
}
else if(typeof x === "object"){
console.log("This is a object");
var webpack = require('webpack');
module.exports = {
entry: {
app: ['webpack/hot/dev-server', './javascripts/entry.js'],
},
output: {
path: '/public/built',
filename: 'bundle.js',
publicPath: 'http://localhost:8080/built/'
},
@jimmiehansson
jimmiehansson / package.json
Created March 1, 2017 20:55
package.json
{
"name": "Connectiontool",
"version": "0.0.1",
"main": "main.js",
"scripts": {
"start": "./node_modules/electron-prebuilt/dist/Electron.app/Contents/MacOS/Electron .",
"watch": "./node_modules/.bin/webpack-dev-server",
"electron-rebuild": "./node_modules/.bin/electron-rebuild"
},
"dependencies": {
import "../less/main.less";
import React, { Component } from "react";
import { render } from "react-dom";
import { Router, Route, IndexRoute, browserHistory } from 'react-router';
/**
* Import custom components to react
*/
import Main from '../javascripts/lib/main.component.jsx'
import Home from '../javascripts/lib/home.component.jsx'