Install ffmpeg
brew install ffmpeg
Download file through url, like this:
ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -i "http://url-file.domain.m3u8" -c copy video.mp4
Install ffmpeg
brew install ffmpeg
Download file through url, like this:
ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -i "http://url-file.domain.m3u8" -c copy video.mp4
# ~/.warp/themes/ | |
accent: '#81A1C1' | |
background: '#111111' | |
details: darker | |
foreground: '#D8DEE9' | |
terminal_colors: | |
bright: | |
black: '#4C566A' | |
blue: '#81A1C1' |
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 |
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 |
// 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 & |
# /etc/nginx/mime.types | |
types { | |
font/ttf ttf; | |
font/opentype otf; | |
text/html html htm shtml; | |
text/css css; | |
text/xml xml; | |
image/gif gif; | |
image/jpeg jpeg jpg; | |
application/javascript js; |
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"; |
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 |
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" |