Information used:
So, thanks to authors for ideas and detailed tutorials how to get it working.
| #!/usr/bin/env python | |
| """Basic Python Cheat Sheet by Filip Kral on 2015/02/16""" | |
| """ | |
| Python is a cross-platform, interpreted, object-oriented programming language. | |
| That means you can run it on Linux, Windows, Mac, and other platforms, | |
| you don't need to compile your code to execute it because it is compiled on | |
| the fly, and you can use classes and objects. |
| #!/bin/bash | |
| # Install dockviz: | |
| # https://github.com/justone/dockviz | |
| # You can import it from .bashrc with the following commands (assuming you saved this script in '~/bin': | |
| # echo ". ~/bin/dockviz-containers-images.sh" >>~/.bashrc | |
| # source ~/.bashrc | |
| function dockviz_containers() { |
| #!/usr/bin/python | |
| import requests | |
| rates = requests.get("https://bank.gov.ua/NBUStatService/v1/statdirectory/exchange?json").json() | |
| for i in range(len(rates)): | |
| print ((rates[i]["rate"] ,rates[i]["txt"])) | |
| from bs4 import BeautifulSoup | |
| import re, requests,sys | |
| import time | |
| headers = {'Accept': '*/*', | |
| 'Accept-Encoding': 'gzip, deflate', | |
| 'Accept-Language': 'es-ES,es;q=0.8,en;q=0.6', | |
| 'Connection': 'keep-alive', | |
| 'Content-Type': 'text/html', | |
| 'Origin': 'http://olx.com.co', |
| --- | |
| apiVersion: v1 | |
| kind: ReplicationController | |
| metadata: | |
| labels: | |
| k8s-app: kube-dns | |
| kubernetes.io/cluster-service: "true" | |
| version: v5 | |
| name: kube-dns-v5 | |
| namespace: kube-system |
| #!/bin/bash | |
| clear | |
| echo "*************************************************************************" | |
| echo "*************************************************************************" | |
| echo | |
| echo " You are about to *permanently* delete a core!" | |
| echo " There is no going back" | |
| echo | |
| echo "*************************************************************************" |
Information used:
So, thanks to authors for ideas and detailed tutorials how to get it working.
| openssl req -newkey rsa:2048 -days 1000 -nodes -keyout client-key.pem -out client-req.pem | |
| openssl genrsa 2048 > ca-key.pem | |
| openssl req -new -x509 -nodes -days 1000 -key ca-key.pem -out ca-cert.pem | |
| openssl req -newkey rsa:2048 -days 1000 -nodes -keyout server-key.pem -out server-req.pem | |
| openssl rsa -in server-key.pem -out server-key.pem | |
| openssl x509 -req -in server-req.pem -days 1000 -CA ca-cert.pem -CAkey ca-key.pem -set_serial 01 -out server-cert.pem |
| CREATE USER 'ssluser'@'%' IDENTIFIED BY 'mypass'; | |
| GRANT ALL PRIVILEGES ON *.* TO 'ssluser'@'%' IDENTIFIED BY 'mypass' REQUIRE SSL; | |
| sudo mysqld --ssl-ca=/etc/mysql/ca-cert.pem --ssl-cert=/etc/mysql/server-cert.pem --ssl-key=/etc/mysql/server-key.pem | |
| # Setup SSL http://askubuntu.com/questions/194074/enabling-ssl-in-mysql | |
| # Generate a CA key and certificate with SHA1 digest | |
| openssl genrsa 2048 > ca-key.pem | |
| openssl req -sha1 -new -x509 -nodes -days 3650 -key ca-key.pem > ca-cert.pem |
Original guide with a standard build is here.
With this guide, I'm adding more instructions to enable support for NVIDIA CUVID and NVIDIA NPP for enhanced encode and decode performance.
First, prepare for the build and create the work space directory:
cd ~/