The interface was greatly inspired by Rails' low level caching implementation.
import { MemoryStore, Cache } from './cache'
const store = new MemoryStore({ ttl: 30 * 1000, max: 10 })
const cache = new Cache(store)The interface was greatly inspired by Rails' low level caching implementation.
import { MemoryStore, Cache } from './cache'
const store = new MemoryStore({ ttl: 30 * 1000, max: 10 })
const cache = new Cache(store)| -- adapted from https://dba.stackexchange.com/a/104866/247902 | |
| USE information_schema; | |
| SELECT CONCAT("SET foreign_key_checks = 0;") AS _sql UNION | |
| SELECT CONCAT("ALTER DATABASE `",table_schema,"` CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci;") AS _sql | |
| FROM `TABLES` WHERE table_schema LIKE "<YOUR_DATABASE>" AND TABLE_TYPE='BASE TABLE' GROUP BY table_schema UNION | |
| SELECT CONCAT("ALTER TABLE `",table_schema,"`.`",table_name,"` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci;") AS _sql | |
| FROM `TABLES` WHERE table_schema LIKE "<YOUR_DATABASE>" AND TABLE_TYPE='BASE TABLE' GROUP BY table_schema, table_name UNION | |
| SELECT CONCAT("ALTER TABLE `",`COLUMNS`.table_schema,"`.`",`COLUMNS`.table_name, "` CHANGE `",column_name,"` `",column_name,"` ",data_type,"(",character_maximum_length,") CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci",IF(column_default IS NOT NULL," DEFAULT \'",""),IF(column_default IS NOT NULL,column_default,""),IF(column_default IS NOT NULL,"\'",""),IF(is_nullable="YES"," NULL"," NOT NU |
| /* Multiline Clamp Mixin */ | |
| // Helper Function for Multiline Clamp Mixin | |
| @function multiline-block-height($lines, $font-size, $line-height) { | |
| @return $lines * floor($font-size * $line-height); | |
| } | |
| @mixin multiline-clamp($lines: 2, $font-size: 16px, $line-height: 1.4, $fill-space: false) { | |
| font-size: $font-size; | |
| display: block; |
Read more here: gatsbyjs/gatsby#19543 (comment)
These scripts should be paired with: https://www.gatsbyjs.org/packages/gatsby-plugin-remove-trailing-slashes/
| { | |
| "__inputs": [ | |
| { | |
| "name": "DS_PROMETHEUS", | |
| "label": "prom", | |
| "description": "", | |
| "type": "datasource", | |
| "pluginId": "prometheus", | |
| "pluginName": "Prometheus" | |
| } |
| framework: | |
| messenger: | |
| # ... | |
| # Read more to learn why there are two buses (TL;DR: different middleware on each side - producer and consumer) | |
| # https://github.com/symfony/symfony/issues/32436#issuecomment-530565499 | |
| default_bus: command.bus | |
| buses: | |
| command.bus: |
| <?php | |
| namespace App\Messenger\Middleware; | |
| use Symfony\Component\Messenger\Middleware\MiddlewareInterface; | |
| use Symfony\Component\Messenger\Middleware\StackInterface; | |
| use Symfony\Component\Messenger\Envelope; | |
| use Symfony\Component\Messenger\Stamp\BusNameStamp; | |
| # This is sort of a workaround, read more here: |
| tap "homebrew/cask-versions" | |
| tap "homebrew/services" | |
| # Unix | |
| brew "git" | |
| brew "git-lfs" | |
| brew "jq" | |
| brew "yq" | |
| brew "openssl" | |
| brew "thoughtbot/formulae/rcm" |