This gist will contain all the exercises from the book
Tuning Intel Skylake and beyond for optimal performance and feature level support on Linux:
Note that on Skylake, Kabylake (and the now cancelled "Broxton") SKUs, functionality such as power saving, GPU scheduling and HDMI audio have been moved onto binary-only firmware, and as such, the GuC and the HuC blobs must be loaded at run-time to access this functionality.
Enabling GuC and HuC on Skylake and above requires a few extra parameters be passed to the kernel before boot.
Instructions provided for both Fedora and Ubuntu (including Debian):
Note that the firmware for these GPUs is often packaged by your distributor, and as such, you can confirm the firmware blob's availability by running:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| import pandas as pd | |
| from flask import Flask, render_template, request, jsonify | |
| app = Flask(__name__) | |
| MY_DATA = pd.DataFrame(np.random.random((10000, 3)), columns=["a", "b", "c"]) | |
| @app.route('/index') | |
| @app.route('/') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| #author: Panagiotis Mavrogiorgos | |
| #email: gmail, pmav99 | |
| """ | |
| A wrapper around ``rsync``. | |
| If the ``source`` or the ``destination`` directories are on a remote host | |
| then you must specify the user and ip. E.g. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| iatest=$(expr index "$-" i) | |
| ####################################################### | |
| # SOURCED ALIAS'S AND SCRIPTS BY zachbrowne.me | |
| ####################################################### | |
| # Source global definitions | |
| if [ -f /etc/bashrc ]; then | |
| . /etc/bashrc |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import os | |
| import logging | |
| import psycopg2 as pg | |
| from decimal import Decimal | |
| from functools import wraps | |
| from psycopg2.pool import ThreadedConnectionPool |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| """Convert UnstructuredGrid in .vtk files to STL files.""" | |
| import sys | |
| import vtk | |
| if len(sys.argv) < 2 or sys.argv[1] == '-h' or sys.argv[1] == '--help': | |
| print('Usage: vtk-unstructuredgrid-to-stl.py <input.vtk> <output.stl>') | |
| sys.exit(1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/env python | |
| """ | |
| Simple VTK example in Python to load an STL mesh and display with a manipulator. | |
| Chris Hodapp, 2014-01-28, (c) 2014 | |
| """ | |
| import vtk | |
| def render(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #coding: utf-8 | |
| from cStringIO import StringIO | |
| from email.mime.multipart import MIMEMultipart | |
| from email.mime.text import MIMEText | |
| from email.header import Header | |
| from email import Charset | |
| from email.generator import Generator | |
| import smtplib | |
| # Example address data |