- Эпизод 0: Зачем нам нужен Kubernetes https://www.youtube.com/watch?v=Qmac8MNlhmg
- A simple CLI that provides an overview of the resource requests, limits, and utilization in a Kubernetes cluster https://github.com/robscott/kube-capacity
/* | |
* Copyright (c) 2017 rxi | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to | |
* deal in the Software without restriction, including without limitation the | |
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | |
* sell copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: | |
* |
<!-- Main Header --> | |
<header class="main-header"> | |
<!-- Logo --> | |
<a href="/" class="logo"> | |
<span class="logo-mini"><b>A</b></span> | |
<span class="logo-lg"><b>ADMIN</b></span> | |
</a> | |
<nav class="navbar navbar-static-top" role="navigation"> | |
<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button"> |
#!/usr/bin/bash | |
mkdir node_exporter | |
cd node_exporter/ | |
wget https://github.com/prometheus/node_exporter/releases/download/v1.0.1/node_exporter-1.0.1.linux-amd64.tar.gz | |
tar xf node_exporter-1.0.1.linux-amd64.tar.gz | |
cd node_exporter-1.0.1.linux-amd64 | |
mv node_exporter /usr/bin |
import sys | |
ETC_SYSCONFIG_NE = 'OPTIONS="--web.listen-address=:{port} --collector.textfile.directory ' \ | |
'/var/lib/node_exporter/textfile_collector --collector.systemd --collector.processes"' | |
ETC_SYSTEMD_NE = '''[Unit] | |
Description=Node Exporter | |
After=network.target | |
[Service] |
from datetime import datetime | |
from typing import List | |
def solve(date_items: List[datetime]): | |
""" | |
Get the longest date interval from the date_items list. | |
:param date_items: | |
:return: |
""" | |
Generator of words forms for LinguisticAndInformationSystems/mphdict | |
Source code: https://github.com/LinguisticAndInformationSystems/mphdict/blob/master/src/mphdict/mphDb.cs#L214 | |
License: https://github.com/LinguisticAndInformationSystems/mphdict/blob/master/LICENSE.txt | |
Copyright: uSofTrod | |
Output is like the following: |
apt update
apt install cmake gcc-7 liblzma-dev libbz2-dev
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-repo-ubuntu1804_10.0.130-1_amd64.deb
dpkg -i cuda-repo-ubuntu1804_10.0.130-1_amd64.deb
""" | |
Python implementation of Viterbi algorithm for word segmentation | |
A clean-up of this: http://norvig.com/ngrams/ch14.pdf | |
- | |
You also need 'unigrams.txt' and 'bigrams.txt' to run the segmentation. The ngrams | |
used in this implementation is from the 'count_1w.txt' and 'count_2w.txt' provided | |
here: http://norvig.com/ngrams/ | |
- | |
Usage: | |
>>> from segment import viterbi |