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' |
// 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 & |
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 |
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" |
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 |
import React, { | |
useState, | |
useCallback, | |
forwardRef, | |
DetailedHTMLProps, | |
InputHTMLAttributes, | |
Ref, | |
useRef | |
} from 'react' |
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
#!/usr/bin/env bash | |
echo "BACKUPING..." | |
docker run -i -e PGPASSWORD=<password> --rm postgres /usr/bin/pg_dump -p <port> -h <ip> -U <user> <db> | gzip -9 > backup.sql.gz | |
echo "BACKUPING...[END]" | |
if [ -n "$1" ] ; then | |
where="where pg_stat_activity.datname = '<db>' AND pid <> pg_backend_pid();" | |
fi | |
cat <<-EOF | docker exec -i <container_db_local> psql -h 127.0.0.1 -U <user_db> -d postgres |