$ rails g model User
belongs_to
has_one
#config/initializers/redis.rb | |
require 'redis' | |
require 'redis/objects' | |
REDIS_CONFIG = YAML.load( File.open( Rails.root.join("config/redis.yml") ) ).symbolize_keys | |
dflt = REDIS_CONFIG[:default].symbolize_keys | |
cnfg = dflt.merge(REDIS_CONFIG[Rails.env.to_sym].symbolize_keys) if REDIS_CONFIG[Rails.env.to_sym] | |
$redis = Redis.new(cnfg) | |
Redis::Objects.redis = $redis |
Requirements:
~> 1.20.0
Two files are required: ~/.aws/config
and a file containing instances ids, one per line, eg:
~/.aws/config
## | |
# Reverting a range of commits | |
# | |
# git --pretty=oneline --abbrev-commit older_commit..newer_commit # not includes the oldest commit | |
# git --pretty=oneline --abbrev-commit older_commit^..newer_commit # includes the oldest commit | |
## | |
# just to be sure about the commits, list them | |
git log --pretty=oneline --abbrev-commit 1f80548^..4b293d5 |
import { ComponentType, useEffect } from "react" | |
import { createStore } from "https://framer.com/m/framer/store.js@^1.0.0" | |
import { randomColor } from "https://framer.com/m/framer/utils.js@^0.9.0" | |
import { createClient } from "https://cdn.skypack.dev/@supabase/supabase-js" | |
import { md5 } from "https://cdn.skypack.dev/pure-md5" | |
import { browser, checkUsername, checkPassword, useStore } from "./globals.ts" | |
// Learn more: https://www.framer.com/docs/guides/overrides/ | |
export function initDB(Component): ComponentType { |