wget https://gist.githubusercontent.com/tokisakiyuu/99b7966b2201a7246c5905f67cc7ae81/raw/a9c92c8d5b4c6f1999d4b77fbf28c6b1f2a6c74b/v2ray.sh -O v2ray.sh && sudo bash v2ray.sh
This file contains hidden or 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
| { | |
| "prettier": { | |
| "useTabs": false, | |
| "semi": false, | |
| "singleQuote": true, | |
| "jsxSingleQuote": false, | |
| "quoteProps": "as-needed", | |
| "bracketSpacing": true, | |
| "arrowParens": "avoid", | |
| "trailingComma": "all", |
mongodump --db=example \
--out=example-dump \
--uri="mongodb://user:[email protected]:27017/?authSource=admin&directConnection=true"mongodump --db= --out= --uri=""The usage syntax for the script is given by the following:
bash download-frozen-image-v2.sh ubuntu ubuntu:latest
The image can then be imported with tar and docker load:
tar -cC 'target_dir' . | docker load
This file contains hidden or 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
| version: '3.7' | |
| services: | |
| mongodb_container: | |
| # This image automatically creates a replica set required for transactions | |
| image: prismagraphql/mongo-single-replica:4.4.3-bionic | |
| # image: prismagraphql/mongo-single-replica:5.0.3 | |
| environment: | |
| MONGO_INITDB_ROOT_USERNAME: root | |
| MONGO_INITDB_ROOT_PASSWORD: prisma | |
| INIT_WAIT_SEC: 3 |
This file contains hidden or 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 { FC, useEffect, useState } from 'react' | |
| import { Stage, Layer, Circle, Arrow } from 'react-konva' | |
| import Konva from 'konva' | |
| import { useWindowSize } from 'react-use' | |
| // https://konvajs.org/api/Konva.html | |
| // https://github.com/konvajs/react-konva | |
| interface Props { | |
| debug?: boolean |
This file contains hidden or 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 * as csv from 'fast-csv' | |
| /** | |
| * `json object` => `csv string` | |
| * | |
| * the important thing is this process will holds the data type. | |
| * @example | |
| * ```js | |
| * [ | |
| * { name: 'Jim', age: 19 }, |
NewerOlder
