RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix [email protected])" mise use [email protected]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# References: | |
https://mac.install.guide/mac-setup/ | |
https://medium.com/@laclementine/dotfile-for-mac-efe082ad0d6a | |
https://github.com/mathiasbynens/dotfiles/blob/main/.macos | |
# Close any open System Preferences panes, to prevent them from overriding | |
# settings we’re about to change | |
osascript -e 'tell application "System Preferences" to quit' |
The dokku-push action requires an SSH key with push access to the Dokku instance. Here's how to do that.
Replace APPNAME
with the name of the app (e.g. this is a good idea to use the same name used on Dokku's).
We want each repo to have its own SSH key, so it's easier to rotate/invalidate them if required, without affecting all the repos. Let's generate a new key on your computer (see GitHub help):
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.warp/themes/ | |
accent: '#81A1C1' | |
background: '#111111' | |
details: darker | |
foreground: '#D8DEE9' | |
terminal_colors: | |
bright: | |
black: '#4C566A' | |
blue: '#81A1C1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// calc values divided by 100, ex: | |
// defaultValue={item.price / 100} | |
// values.item.price / 100 | |
import { forwardRef } from 'react' | |
import { CurrencyInput, ICurrencyMaskProps } from 'react-currency-mask' | |
import { MantineSize, TextInput, TextInputProps } from '@mantine/core' | |
type MoneyInputComponentProps = ICurrencyMaskProps & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createContext, useContext } from 'react' | |
import { createStore, StoreApi } from 'zustand' | |
import { immer } from 'zustand/middleware/immer' | |
import { useStoreWithEqualityFn } from 'zustand/traditional' | |
type State = { | |
total: number | |
increase: () => void | |
decrease: () => void |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ActionCable from 'actioncable'; | |
import { ActionCableLink } from 'graphql-ruby-client'; | |
import { ApolloClient } from "apollo-client"; | |
import { ApolloLink, Operation } from "apollo-link"; | |
import { DefinitionNode, OperationDefinitionNode } from 'graphql'; | |
import { RetryLink } from "apollo-link-retry"; | |
import { createHttpLink } from "apollo-link-http"; | |
import { InMemoryCache } from "apollo-cache-inmemory"; | |
import { onError } from "apollo-link-error"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ReactNode, useRef } from 'react' | |
import { Button, FormControl, FormErrorMessage, FormLabel, Icon, InputGroup } from '@chakra-ui/react' | |
import { useForm, UseFormRegisterReturn } from 'react-hook-form' | |
import { FiFile } from 'react-icons/fi' | |
type FileUploadProps = { | |
register: UseFormRegisterReturn | |
accept?: string | |
multiple?: boolean | |
children?: ReactNode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ApolloClient, { FetchPolicy } from "apollo-client" | |
import { HttpLink } from "apollo-link-http" | |
import { InMemoryCache, NormalizedCacheObject } from "apollo-cache-inmemory" | |
// import { setContext } from "apollo-link-context" | |
import ActionCable from "action-cable-react-jwt" | |
import ActionCableLink from "graphql-ruby-client/dist/subscriptions/ActionCableLink" | |
import { ApolloLink } from "apollo-link" | |
import { handleAuthentication, refreshToken } from "utils/oauth" | |
import { Observable } from "apollo-link" | |
import { onError } from "apollo-link-error" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dream Theater ██████▌░░░░░░░░░░ 25 plays | |
Cradle of Filth ███▉░░░░░░░░░░░░░ 15 plays | |
Blind Guardian ██▎░░░░░░░░░░░░░░ 9 plays | |
Madder Mortem ▊░░░░░░░░░░░░░░░░ 3 plays | |
Redemption ▊░░░░░░░░░░░░░░░░ 3 plays | |
Ayreon ▌░░░░░░░░░░░░░░░░ 2 plays | |
Caligula's Horse ▌░░░░░░░░░░░░░░░░ 2 plays | |
Firewind ▌░░░░░░░░░░░░░░░░ 2 plays | |
Haken ▌░░░░░░░░░░░░░░░░ 2 plays | |
Porcupine Tree ▌░░░░░░░░░░░░░░░░ 2 plays |
NewerOlder