Skip to content

Instantly share code, notes, and snippets.

View balioune's full-sized avatar

Alioune BA balioune

View GitHub Profile
@balioune
balioune / gist:740864359941cb2a16b3d5560435d450
Created June 6, 2017 09:53 — forked from paulmaunders/gist:3e2cbe02c07b6393f7ef0781eed9f97b
Installing VirtualBox and Vagrant on CentOS 7
# Some notes from installing VirtualBox on CentOS 7.
# These exact steps haven't been tested, as I ran them in a different order when manually installing.
# Install dependencies
yum -y install gcc make patch dkms qt libgomp
yum -y install kernel-headers kernel-devel fontforge binutils glibc-headers glibc-devel
# Install VirtualBox
cd /etc/yum.repos.d
wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
@balioune
balioune / install-ovs-source
Created June 7, 2017 10:06
Install openvSwitch for source code
#!/bin/bash
echo "Removing old ovs configuration."
sudo /etc/init.d/openvswitch-switch stop
sudo kill `cd /usr/local/var/run/openvswitch && cat ovsdb-server.pid ovs-vswitchd.pid`
sudo rm -rf /usr/local/var/run/openvswitch
sudo mkdir -p /usr/local/var/run/openvswitch
sudo rm -rf /usr/local/etc/openvswitch
sudo mkdir -p /usr/local/etc/openvswitch
sudo rm -rf /var/run/openvswitch
This document shows main packages to install in order to allow disk size configuration in Vagrantfile.
Virtualbox version = 5.1.X
vagrant version = 1.8.5
## Install packages
sudo apt-get update
sudo apt-get install ruby -y
sudo apt-get install ruby-dev -y
sudo apt-get install g++ -y
@balioune
balioune / install_hybrid_nfvi.sh
Created August 18, 2017 11:36
Install hybrid NFVI
#!/bin/bash
sudo apt-get update
sudo apt-get install qemu-kvm libvirt-bin virtinst virt-manager virt-viewer -y
sudo adduser `$USER` kvm
sudo adduser `$USER` libvirtd
/etc/init.d/libvirt-bin restart
## Install docker on Ubuntu
#!/bin/bash
# source https://software.intel.com/en-us/articles/set-up-open-vswitch-with-dpdk-on-ubuntu-server
# https://www.kernel.org/doc/Documentation/
sudo apt-get install gcc g++ make -y
sudo apt-get install -y gcc-multilib
sudo apt-get install -y libc6-dev
## DPDK INSTALL
#!/bin/bash
function install_packages {
#install java8
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections
sudo add-apt-repository ppa:webupd8team/java -y
sudo apt-get update -y
sudo apt-get install oracle-java8-installer -y
sudo update-java-alternatives -s java-8-oracle
sudo apt-get install oracle-java8-set-default -y
@balioune
balioune / user_variables.yml
Created March 19, 2018 22:18 — forked from logan2211/user_variables.yml
multi-region OSA POC
service_region: regionTwo
master_region_keystone_address: "10.53.3.2"
keystone_service_region: regionOne
keystone_service_adminuri: "{{ keystone_service_adminuri_proto }}://{{ master_region_keystone_address }}:{{ keystone_admin_port }}"
keystone_service_internaluri: "{{ keystone_service_internaluri_proto }}://{{ master_region_keystone_address }}:{{ keystone_service_port }}"
# Make sure your keystone_auth_admin_password in user_secrets for the second region matches the password from regionOne
# These settings avoid username collisions when using the same keystone
# deployment across multiple regions.
cat /etc/nginx/conf.d/school.conf
server {
listen *:80;
server_name *****;
access_log /var/log/nginx/access_school.log ;
error_log /var/log/nginx/error_school.log ;
client_body_buffer_size 8000M;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@balioune
balioune / it-ebooks.md
Last active February 9, 2021 15:51 — forked from baiwfg2/it-ebooks.md
Download ebooks as you want
''' Code Inspired by http://github.com/tito 's NFC gist
This is a complete implementation allowing for NFC tag or p2p detection
Allows you to create any type of NdefRecord using functions like
`create_RTDURI(uri)`
This is the Android implementatoin of NFC Scanning using the
built in NFC adapter of some android phones.
'''
from kivy.app import App
from kivy.clock import Clock