Skip to content

Instantly share code, notes, and snippets.

View alessandroleite's full-sized avatar

Alessandro Leite alessandroleite

View GitHub Profile
# 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 = []
@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
@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 / 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 / mcc-simulators.md
Last active October 8, 2017 21:13
MCC Simulators

Mobile Cloud Computing (MCC) Simulators

  • Green Cloud Computing - GreenCloud can be used to develop novel solutions in monitoring, resource allocation, workload scheduling as well as optimization of communication protocols and network infrastructures. It is released under the General Public License Agreement and is an extension of the well-known NS2 network simulator.
  • ns-3 - it is a discrete-event network simulator for Internet systems, targeted primarily for research and educational use. It is released under the GNU GPLv2 license, and is publicly available for research, development, and use.
  • OMNEST - OMNEST simulation software has been chosen by R&D staff, researchers and engineers worldwide to investigate scenarios and design alternatives in various wired/wireless networks, interconnection networks, queueing-based performance models and other systems. OMNEST simulations can also be embedded into your own software prod
@alessandroleite
alessandroleite / reading_and_writing_papers.md
Last active August 29, 2015 14:21
Reading and writing scientific papers

Reading and Writing Scientific Papers

Reading

In general, the steps to read and to understand a scientific papers are [1]:

  1. Read the introduction, not the abstract
  2. Identify the big question
  3. Summarize the background in five sentences or less
  4. Identify the specific questions(s)
FROM ubuntu:14.04
# Install the prerequisites
run apt-get update
run apt-get install -yqq \
software-properties-common \
bzip2 \
curl \
phantomjs
@alessandroleite
alessandroleite / cert.java
Last active March 2, 2024 00:41
Generate a self signed X509 certificate with Bouncy Castle
//Generate a self signed X509 certificate with Bouncy Castle.
// StringBuilder sb = new StringBuilder();
//
// for (int i = 0; i < pub.length; ++i)
// {
// sb.append(Integer.toHexString(0x0100 + (pub[i] & 0x00FF)).substring(1));
// }
//
// System.out.println(sb);
// sb.setLength(0);
Personal Statements and Statements of Purpose
Personal statements (sometimes called statements of purpose) are essays required from students applying to undergraduate, graduate, or professional school. These statements are different from a job cover letter. In such statements, you are presenting yourself as a potential student. Usually universities or colleges ask you to address specific questions, but sometimes they give only general guidelines.
There are many approaches to doing these statements. It is especially important, however, to be original, sincere, honest, and to show your interest in the school to which you are applying. It is important that your essay represent who you are – resist the urge to copy models that you find on the Internet.
Here are several sites that will help you through the process of writing the statement of purpose, or college entrance essays:
http://www.wikihow.com/Write-a-Statement-of-Purpose