Overview:
- Redis supports PUB/SUB
- It supports pattern matching. Clients may subscribe to glob-style patterns in order to receive all the messages sent to channel names matching a given pattern.
Assuming Fedora 23.
Overview:
Assuming Fedora 23.
| After automatically updating Postgres to 10.0 via Homebrew, the pg_ctl start command didn't work. | |
| The error was "The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.0." | |
| Database files have to be updated before starting the server, here are the steps that had to be followed: | |
| # need to have both 9.6.x and latest 10.0 installed, and keep 10.0 as default | |
| brew unlink postgresql | |
| brew install postgresql@9.6 | |
| brew unlink postgresql@9.6 | |
| brew link postgresql |
If you would like to persist data from your ECS containers, i.e. hosting databases like MySQL or MongoDB with Docker, you need to ensure that you can mount the data directory of the database in the container to volume that's not going to dissappear when your container or worse yet, the EC2 instance that hosts your containers, is restarted or scaled up or down for any reason.
Don't know how to create your own AWS ECS Cluster? Go here!
Sadly the EC2 provisioning process doesn't allow you to configure EFS during the initial config. After your create your cluster, follow the guide below.
If you're using an Alpine-based Node server like duluca/minimal-node-web-server follow this guide:
If you would like to persist data from your ECS containers, i.e. hosting databases like MySQL or MongoDB with Docker, you need to ensure that you can mount the data directory of the database in the container to volume that's not going to dissappear when your container or worse yet, the EC2 instance that hosts your containers, is restarted or scaled up or down for any reason.
Don't know how to create your own AWS ECS Cluster? Go here!
Sadly the EC2 provisioning process doesn't allow you to configure EFS during the initial config. After your create your cluster, follow the guide below.
If you're using an Alpine-based Node server like duluca/minimal-node-web-server follow this guide:
| //Usage | |
| import React from 'react'; | |
| import { BrowserRouter as Router } from 'react-router-dom'; | |
| import Route from './AuthRoute'; | |
| import Login from './Login'; | |
| import Private from './Private'; | |
| export default () => | |
| <Router> |
| ;----------RED-SECTOR-INC.-proudly-presents-a-33-year-old-record-:---------- | |
| ; 468-byte footprint___ _ "...The original chess game in a bootsector" | |
| ; / / _____ _ _ _____ _ _ ___ _ | |
| ; .::. / / / / / / / / / / | |
| ; :::: / / ____ .-/ _ ___/-. .-/ _ ___/-. / /__ | |
| ; :: / \ | | . | | | . | / / | |
| ; :: __ _ \ l | | | l | | / ___/ | |
| ; .::. / / / / | l |_| l | |__/ / ____ | |
| ; .::::. / __/ `--' `--' / | | |
| ; :::::::: / / | |
| ## Sort Algorithms in Elixir | |
| # Selection Sort | |
| defmodule Selection do | |
| def sort(list) when is_list(list) do | |
| do_selection(list, []) | |
| end | |
| def do_selection([head|[]], acc) do |
| command-shift-P > Package > Package Generator: Generate Syntax Theme > mypackage | |
| cd ~/.atom/packages/mypackage | |
| apm login | |
| apm develop mypackage | |
| cd ~/github/mypackage | |
| sudo chown -R username:wheel . | |
| git commit -a -m 'checking everything in' | |
| apm publish --tag v2.5.0 minor |
| #!/usr/bin/env ruby | |
| # coding: utf-8 | |
| require 'thread' | |
| class CountDownLatch | |
| attr_reader :count | |
| def initialize(to) | |
| @count = to.to_i |
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |