Skip to content

Instantly share code, notes, and snippets.

Avatar

Alessandro Leite alessandroleite

View GitHub Profile
View banco.py
# 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 Aug 23, 2016
Minimal Configuration to develop for Predix on Linux
View Predix.md

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 Aug 23, 2019
Provisioning VirtualBox machines on Fedora host with Vagrant
View vagrant-virtualbox-fedora-host.md

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 Jul 28, 2015
Vagrantfile to create a Fedora Atomic host (VM)
View Vagrantfile
# 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"
View mcc-simulators.md

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 Aug 29, 2015
Reading and writing scientific papers
View reading_and_writing_papers.md

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)
View Dockerfile
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 Aug 3, 2020
Generate a self signed X509 certificate with Bouncy Castle
View cert.java
//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);
View personal-statements
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
You can’t perform that action at this time.