Skip to content

Instantly share code, notes, and snippets.

View balioune's full-sized avatar

Alioune BA balioune

View GitHub Profile
@balioune
balioune / iptnetflow.json
Created November 15, 2023 10:09 — forked from shurup/iptnetflow.json
Grafana dashboard for Kubernetes NetFlow
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
Step 1: Create Volume in OpenStack (Can be completed in GUI)
CLI:
cinder create SIZE_IN_GB --display-name NAME
cinder create 10 --display-name mystorage
cinder list
Step 2: Attach volume to Openstack instance (Can be completed in GUI)
CLI:
nova volume-attach INSTANCE_ID VOLUME_ID auto
nova volume-attach myhost f14e47ab-18f6-4f85-bd17-a3f63a38d609 auto
@balioune
balioune / MobileNetSSD_deploy.prototxt.txt
Created June 18, 2021 13:06
MobileNetSSD_deploy.prototxt.txt
name: "MobileNet-SSD"
input: "data"
input_shape {
dim: 1
dim: 3
dim: 300
dim: 300
}
layer {
name: "conv0"
''' 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
@balioune
balioune / it-ebooks.md
Last active February 9, 2021 15:51 — forked from baiwfg2/it-ebooks.md
Download ebooks as you want
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 / 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.
#!/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
#!/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