This setup uses 3 machines:
- Centos7
- 100GB HDD
- 32 GB RAM
- 8 CPU
| git log --author="Linus Torvalds" --date=iso | perl -nalE 'if (/^Date:\s+[\d-]{10}\s(\d{2})/) { say $1+0 }' | sort | uniq -c|perl -MList::Util=max -nalE '$h{$F[1]} = $F[0]; }{ $m = max values %h; foreach (0..23) { $h{$_} = 0 if not exists $h{$_} } foreach (sort {$a <=> $b } keys %h) { say sprintf "%02d - %4d %s", $_, $h{$_}, "*"x ($h{$_} / $m * 50); }' | |
This guide has moved to a GitHub repository to enable collaboration and community input via pull-requests.
https://github.com/alexellis/k8s-on-raspbian
Alex
| # The Silly Echo Bot for WeChat - Python version | |
| # | |
| # The purpose of this code is to show the basics of creating chatbots for the WeChat platform. | |
| # It creates a simple backend that echoes back the messages it receives from users. | |
| # | |
| # See my article on Chatbots Magazine for details: | |
| # https://chatbotsmagazine.com/building-chatbots-for-wechat-part-1-dba8f160349 | |
| # | |
| # Tested with: | |
| # Python 3.5.2 |
In this article, I will share some of my experience on installing NVIDIA driver and CUDA on Linux OS. Here I mainly use Ubuntu as example. Comments for CentOS/Fedora are also provided as much as I can.
Currently, there is an explosion of tools that aim to manage secrets for automated, cloud native infrastructure management. Daniel Somerfield did some work classifying the various approaches, but (as far as I know) no one has made a recent effort to summarize the various tools.
This is an attempt to give a quick overview of what can be found out there. The list is alphabetical. There will be tools that are missing, and some of the facts might be wrong--I welcome your corrections. For the purpose, I can be reached via @maxvt on Twitter, or just leave me a comment here.
There is a companion feature matrix of various tools. Comments are welcome in the same manner.
| # -*- coding: utf-8 -*- | |
| # Export Result Set As Excel Xlsx File | |
| # | |
| # Usage: | |
| # 1. Install Python(2.7) Module "XlsxWriter", See http://xlsxwriter.readthedocs.org/getting_started.html | |
| # 2. In MySQL Workbench | |
| # Scripting => Install Plugin/Module... => <select this script> => <restart workbench> | |
| # | |
| # Author: zhwei | |
| # |
| # -*- coding: utf-8 -*- | |
| # | |
| # Export Result Set As Excel Xlsx File | |
| # | |
| # Installation: | |
| # 1. Install Python(2.7) Module "XlsxWriter", See http://xlsxwriter.readthedocs.org/getting_started.html | |
| # 2. In MySQL Workbench | |
| # Scripting => Install Plugin/Module... => <select this script> => <restart mysql workbench> | |
| # | |
| # Usage: |
| { | |
| "mappings": { | |
| "_default_": { | |
| "_all": { | |
| "enabled": true, | |
| "norms": { | |
| "enabled": false | |
| } | |
| }, | |
| "dynamic_templates": [ |
If you don't have homebrew installed - get homebrew here
Then run: brew install elasticsearch
Update the elasticsearch configuration file in /usr/local/etc/elasticsearch/elasticsearch.yml.