Skip to content

Instantly share code, notes, and snippets.

View tokisakiyuu's full-sized avatar
🏠
Working from home

Yuu tokisakiyuu

🏠
Working from home
View GitHub Profile
@tokisakiyuu
tokisakiyuu / README.md
Last active August 16, 2024 15:59
Downloading Docker Images from Docker Hub without using Docker

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
@tokisakiyuu
tokisakiyuu / README.md
Created September 28, 2024 12:39
Merge multiple repos into one monorepo (keep commits history)

Steps

Create Root

mkdir scribo-monorepo
cd scribo-monorepo

Define the workspace

@tokisakiyuu
tokisakiyuu / README.md
Last active November 14, 2024 15:23
Inserting, deleting and updating elements on an array of infinite length

IMG_B1D0F6413CDB-1

@tokisakiyuu
tokisakiyuu / README.md
Last active December 4, 2024 08:56
Transfer all data to another host with Mongodb (mongodump + mongorestore)

Dump (export data)

mongodump --db=example \                                                                                      
  --out=example-dump \                                                                                        
  --uri="mongodb://user:[email protected]:27017/?authSource=admin&directConnection=true"
mongodump --db= --out= --uri=""
@tokisakiyuu
tokisakiyuu / package.json
Last active July 15, 2025 07:51
My Prettier Configurtion
{
"prettier": {
"useTabs": false,
"semi": false,
"singleQuote": true,
"jsxSingleQuote": false,
"quoteProps": "as-needed",
"bracketSpacing": true,
"arrowParens": "avoid",
"trailingComma": "all",