Skip to content

Instantly share code, notes, and snippets.

View alessandroleite's full-sized avatar

Alessandro Leite alessandroleite

View GitHub Profile
@alessandroleite
alessandroleite / Vagrantfile
Created July 28, 2015 15:03
Vagrantfile to create a Fedora Atomic host (VM)
# Vagrantfile for Fedora 22 Atomic Host
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.ssh.insert_key = true
config.vm.define "dkvm" do |h|
h.vm.box = "fedora-cloud-atomic-22"
h.vm.box_url = "https://download.fedoraproject.org/pub/fedora/linux/releases/22/Cloud/x86_64/Images/Fedora-Cloud-Atomic-Vagrant-22-20150521.x86_64.vagrant-virtualbox.box"
@alessandroleite
alessandroleite / vagrant-virtualbox-fedora-host.md
Last active August 23, 2019 11:23
Provisioning VirtualBox machines on Fedora host with Vagrant

sudo dnf install libvirt-devel -y sudo dnf install vagrant vagrant-libvirt vagrant-libvirt-doc -y

vagrant plugin install vagrant-libvirt vagrant plugin install vagrant-mutate

Recompile VirtualBox Kernel modules

sudo /sbin/rcvboxdrv setup

Running Vagrant on Fedora 22

@alessandroleite
alessandroleite / Predix.md
Last active August 23, 2016 21:26
Minimal Configuration to develop for Predix on Linux

Predix Linux Config

  • Oracle Java 8
  sudo apt-add-repository ppa:webupd8team/java
  sudo apt-get update
  sudo apt-get install -y oracle-java8-installer
# It must install the library PrettyTable through the command:
# sudo -H pip install PrettyTable
# (for more information, please check: https://pypi.python.org/pypi/PrettyTable)
from prettytable import PrettyTable
import os
import platform
DEFAULT_LIMIT_VALUE = 1000.0
contas = []