Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.
# Import required packages | |
from dotenv import load_dotenv # For managing environment variables | |
from html2text import html2text # For HTML to markdown conversion | |
from readability import Document # For summarizing HTML content | |
from typing import List # For type hinting | |
import json # For JSON parsing | |
import logging # For logging errors | |
import openai # OpenAI GPT API | |
import os # For OS-level operations | |
import requests # For HTTP requests |
""" | |
Usage example: | |
from logger import get_logger | |
log = get_logger() | |
log.info('my_event', my_key1='val 1', my_key2=5, my_key3=[1, 2, 3], my_key4={'a': 1, 'b': 2}) | |
List of metadata keys in each log message: | |
event | |
_func |
init.vim and settings.vim go under ~/.config/nvim Follow the installation instructions for https://github.com/junegunn/vim-plug and place plug.vim in ~/.config/nvim/autoload
A quick note on how I'm currently handling Blue/Green or A/B deployments with Terraform and AWS EC2 Auto Scaling.
In my particular use case, I want to be able to inspect an AMI deployment manually before disabling the previous deployment.
Hopefully someone finds this useful, and if you have and feedback please leave a comment or email me.
I build my AMI's using Packer and Ansible.
//await connection.OpenWithRetryAsync(retryPolicy).ConfigureAwait(false); | |
//var reader = await command.ExecuteReaderWithRetryAsync(retryPolicy).ConfigureAwait(false); | |
public static Task OpenWithRetryAsync(this SqlConnection connection, | |
RetryPolicy retryPolicy) | |
{ | |
return retryPolicy.ExecuteAsync(connection.OpenAsync); | |
} | |
2015-01-29 Unofficial Relay FAQ
Compilation of questions and answers about Relay from React.js Conf.
Disclaimer: I work on Relay at Facebook. Relay is a complex system on which we're iterating aggressively. I'll do my best here to provide accurate, useful answers, but the details are subject to change. I may also be wrong. Feedback and additional questions are welcome.
Relay is a new framework from Facebook that provides data-fetching functionality for React applications. It was announced at React.js Conf (January 2015).
Source: http://www.opsreportcard.com/.
- Are user requests tracked via a ticket system?
- Are "the 3 empowering policies" defined and published?
- Does the team record monthly metrics?
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.