Install Multiple Python Versions for Specific Project
-
Home project: https://github.com/pyenv/pyenv
-
Reference to: https://www.tecmint.com/pyenv-install-and-manage-multiple-python-versions-in-linux/
Install Multiple Python Versions for Specific Project
Home project: https://github.com/pyenv/pyenv
Reference to: https://www.tecmint.com/pyenv-install-and-manage-multiple-python-versions-in-linux/
| #!/usr/bin/env python3 | |
| ''' | |
| always getting the most recent frame of a camera | |
| ================================================ | |
| Usage: | |
| ------ | |
| freshest_camera_frame.py |
| After install zsh | |
| - brew update | |
| - brew install nvm | |
| - mkdir ~/.nvm | |
| after in your ~/.zshrc or in .bash_profile if your use bash shell: | |
| export NVM_DIR=~/.nvm | |
| source $(brew --prefix nvm)/nvm.sh |
Located in alphabetical order (not prefer)
Cab), also designed as a more modern replacement, written in Cgolang)| const io = require('socket.io-client'); | |
| const socket = io('http://localhost:3000', { | |
| transportOptions: { | |
| polling: { | |
| extraHeaders: { | |
| 'Authorization': 'Bearer abc', | |
| }, | |
| }, | |
| }, |
| [Unit] | |
| Description=Jupyter Notebook | |
| [Service] | |
| Type=simple | |
| ExecStart=/home/roeyd/Notebook/.env/bin/jupyter lab --port 9090 | |
| WorkingDirectory=/home/roeyd/Notebook | |
| [Install] | |
| WantedBy=default.target |
| /** | |
| * IE 5.5+, Firefox, Opera, Chrome, Safari XHR object | |
| * | |
| * @param string url | |
| * @param object callback | |
| * @param mixed data | |
| * @param null x | |
| */ | |
| function ajax(url, callback, data, x) { | |
| try { |
| import json | |
| from pyspark.sql.types import * | |
| # Define the schema | |
| schema = StructType( | |
| [StructField("name", StringType(), True), StructField("age", IntegerType(), True)] | |
| ) | |
| # Write the schema | |
| with open("schema.json", "w") as f: |
| #! /usr/bin/env python | |
| import redis | |
| import random | |
| import pylibmc | |
| import sys | |
| r = redis.Redis(host = 'localhost', port = 6389) | |
| mc = pylibmc.Client(['localhost:11222']) |
The first thought is using source multiplex to distribute log to different destination. Flume distribute log events by event header. So we google to find out which field in header is referring to scribe header.
category in header will refer to scribe category. So we try to use multiplexing source: