sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
| version: "3" | |
| services: | |
| vpn: | |
| image: qmcgaw/gluetun | |
| container_name: vpn | |
| cap_add: | |
| - NET_ADMIN | |
| ports: | |
| - 8888:8888/tcp # HTTP proxy | |
| - 8388:8388/tcp # Shadowsocks |
| 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 |
Tiny wrapper component for React-Datepicker to stylistically fit with Chakra-UI 1.x.
<DatePicker selectedDate={myDate} onChange={(d) => console.log(d)} />
Clearable version:
<DatePicker selectedDate={myDate} onChange={(d) => console.log(d)} isClearable={true} />
| // Demo https://guste.design/gallery/ | |
| // Install https://www.npmjs.com/package/react-medium-image-zoom | |
| // ImageZoom.jsx | |
| import React from 'react' | |
| import Image from 'gatsby-image' | |
| import Zoom from 'react-medium-image-zoom' |
| cl_crosshair_drawoutline "1" | |
| cl_crosshair_dynamic_maxdist_splitratio "0.35" | |
| cl_crosshair_dynamic_splitalpha_innermod "1" | |
| cl_crosshair_dynamic_splitalpha_outermod "0.5" | |
| cl_crosshair_dynamic_splitdist "7" | |
| cl_crosshair_outlinethickness "1" | |
| cl_crosshair_sniper_show_normal_inaccuracy "0" | |
| cl_crosshair_sniper_width "1" | |
| cl_crosshair_t "0" | |
| cl_crosshairalpha "999" |
| MOVED HERE: | |
| https://gist.github.com/naveenkrdy/26760ac5135deed6d0bb8902f6ceb6bd |
UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.
Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/
sudo amazon-linux-extras install docker
sudo service docker start