Skip to content

Instantly share code, notes, and snippets.

View dnoliver's full-sized avatar

Nicolas Oliver dnoliver

  • Intel Corporation
  • Hillsboro, Oregon
View GitHub Profile
@dnoliver
dnoliver / run-coverxygen.sh
Created August 11, 2017 17:19
Script to install and run coverxygen command on Ubuntu 16.04
#!/usr/bin/env bash
set -e
# install dependencies
apt-get install -y --no-install-recommends \
python3 python3-pip doxygen lcov && \
pip3 install setuptools && \
pip3 install coverxygen
@dnoliver
dnoliver / run-jsonlint.sh
Created August 11, 2017 17:23
Script to install and run jsonlint command on Ubuntu 16.04
#!/usr/bin/env bash
set -e
npm install -g jsonlint
FILES="$(find examples src -iname '*.json')"
for FILE in $FILES; do
echo "${FILE}"

Deploy Kubernetes Single Node in Fedora 30 Server

More or less a modification of Kubernetes on CentOS 7 with Firewalld post.

The original install script needs modification:

#!/bin/bash

dnf -y update
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib
import sys
import time
## Pre-procesar datos
ConfirmedCases_raw = pd.read_csv('https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv')
Deaths_raw = pd.read_csv('https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_deaths_global.csv')
@dnoliver
dnoliver / tpm2-pkcs11-csr.sh
Last active May 28, 2020 17:05
Certificate Signing Request generation with tpm2-pkcs11
#!/bin/bash
set -euxo pipefail
export TPM2TOOLS_TCTI="device:/dev/tpmrm0"
export TPM2_PKCS11_TCTI="device:/dev/tpmrm0"
#export TPM2_PKCS11_LOG_LEVEL=2
tpm2_print_handles () {
for i in transient saved-session loaded-session;
@dnoliver
dnoliver / disk-encryption.sh
Created January 13, 2020 22:01
Disk encryption with Clevis example
GNU nano 4.3 disk-encryption.sh
#!/bin/bash
set -euxo pipefail
rpm -qa clevis* cryptsetup* luks* tpm2* e*fspr* | sort
# Creation
# dd if=/dev/zero of=/dev/sda1 bs=1M status=progress
@dnoliver
dnoliver / advantech.md
Last active June 24, 2020 00:06
Advantech

Firmware and BIOS

Firmware Update Manager version

[root@localhost-live liveuser]# fwupdmgr --version
client version:	1.5.0
compile-time dependency versions
	gusb:	0.3.4
	efivar:	37
@dnoliver
dnoliver / openvpn-pkcs11-test.sh
Last active July 27, 2020 22:58
Test OpenVPN PKCS11 Support
#!/bin/bash
set -euxo pipefail
# This script reproduces https://github.com/tpm2-software/tpm2-pkcs11/issues/67
# WARNING: Clear the TPM and deletes the PKCS11 DB
# REQUIRES:
# dnf install -y tpm2-pkcs11 tpm2-pkcs11-tools tpm2-tools gnutls-utils openvpn
echo "OpenVPN Server Setup"
@dnoliver
dnoliver / Dockerfile
Last active October 12, 2020 12:47
Custom Application Using TPM PKCS11
FROM fedora:latest
RUN dnf install -y tpm2-pkcs11 tpm2-pkcs11-tools tpm2-tools gnutls-utils openssl-pkcs11 nodejs
VOLUME /etc/tpm2_pkcs11
VOLUME /root/test
WORKDIR /root/test
CMD bash
@dnoliver
dnoliver / README.md
Created November 3, 2020 03:00
Qt Download Sample

Qt Download URL Sample

This sample have the code to download an image using http and https.