Purpose
Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.
Avoid being a link dump. Try to provide only valuable well tuned information.
Prelude
Neural network links before starting with transformers.
Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.
Avoid being a link dump. Try to provide only valuable well tuned information.
Neural network links before starting with transformers.
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam' | |
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes' | |
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no' |
require 'minitest/mock' | |
require 'minitest/unit' | |
require 'date' | |
MiniTest::Unit.autorun | |
class TestMailPurge < MiniTest::Unit::TestCase | |
class MailPurge | |
def initialize(imap) | |
@imap = imap |
Git Actions: CI System Actions: | |
+-------------------------+ +-----------------+ | |
+--► Create a Feature Branch | +---► Build Container | | |
| +------------+------------+ | +--------+--------+ | |
| | | | | |
| | | | | |
| +--------▼--------+ | +-------▼--------+ | |
| +---► Push the Branch +-------+ | Push Container | | |
| | +--------+--------+ +-------+--------+ |
go-kit
LibraryThere is a trending 'microservice' library called go-kit. I've been using the go-kit library for a while now. The library provide a lot of convenience integrations that you might need in your service: with service discovery with Consul, distributed tracing with Zipkin, for example, and nice logic utilities such as round robin client side load balancing, and circuit breaking. It is also providing a way to implement communication layer, with support of RPC and REST.
# Stop PostgreSQL from auto starting | |
sudo launchctl unload -w /Library/LaunchDaemons/com.edb.launchd.postgresql-9.3.plist | |
# Enable PostgreSQL to auto start | |
sudo launchctl load -w /Library/LaunchDaemons/com.edb.launchd.postgresql-9.3.plist | |
# Start postgres | |
$ sudo su postgres | |
Password: | |
bash-3.2$ pg_ctl -D /Library/PostgreSQL/9.3/data/ start |
rescue_from StandardError do |exception| | |
# Handle only JSON requests | |
raise unless request.format.json? | |
err = {error: exception.message} | |
err[:backtrace] = exception.backtrace.select do |line| | |
# filter out non-significant lines: | |
%w(/gems/ /rubygems/ /lib/ruby/).all? do |litter| | |
not line.include?(litter) |
RUBY_IMAGE:=$(shell grep FROM Dockerfile | cut -f2 -d' ') | |
DYNAMODB_IMAGE:=dynamodb:latest # original value ommitted | |
APP_IMAGE:=inventory_service/app | |
TAG:=$(shell git rev-parse --short HEAD) | |
REGISTRY:=example.registry.com # original value omitted | |
.DEFAULT_GOAL:= build |
Method lookup is a simple affair in most languages without multiple inheritance. You start from the receiver and move up the ancestors chain until you locate the method. Because Ruby allows you to mix in modules and extend singleton classes at runtime, this is an entirely different affair.
I will not build contrived code to exemplify the more complicated aspects of Ruby method lookup, as this will only serve to confuse the matter. If you are having trouble following method lookup in your own programs, it is not because Ruby has strange rules (it does), it is because your code is too tangled.
When you pass a message to an object, here is how Ruby finds what method to call:
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000