Skip to content

Instantly share code, notes, and snippets.

View jun-uen0's full-sized avatar
๐Ÿ 
Working from home

Jumpei Ueno jun-uen0

๐Ÿ 
Working from home
View GitHub Profile

ๆ”พ้€ใง็ดนไป‹ใ™ใ‚‹็”จใ€‚ๆ›ธใใ‹ใ‘ใงใ™ใ€‚

ใกใ‚‡ใฃใจไผธใณใŸใฎใงใ•ใ‚‰ใซ่ฟฝ่จ˜ใ€‚ใ“ใ‚Œใฏๅ…ƒใ€…่‡ชๅˆ†ใฎๅ‹‰ๅผทใŒใฆใ‚‰ๆ›ธใ„ใฆใ„ใŸใ‚‚ใฎใงใ€ใ“ใ‚Œใ‚’ๆ›ธใ้Ž็จ‹ใงใฉใ†ใ—ใฆใ‚‚่‡ชๅˆ†ใฎ็†่งฃใงใฏ่ชฌๆ˜Žใงใใชใ„ใจใ“ใ‚ใŒใ‚ใ‚Š koba789 ใซไพ้ ผใ—ใฆใƒšใ‚ขใƒ—ใƒญใ‚’ใ—ใฆใ‚‚ใ‚‰ใฃใŸใ€ใจใ„ใ†ๆตใ‚ŒใŒใ‚ใ‚Šใพใ™ใ€‚ใใฎ็ตๆžœใŒๆฌกใฎๅ‹•็”ปใงใ™ใ€‚

https://t.co/FIBmVrR83U

็”Ÿๆ”พ้€ใฎๆตใ‚Œใ‚’ๅ††ๆป‘ใซใ™ใ‚‹ใŸใ‚ใซ่ณ‡ๆ–™ใ‚’ๅ…ฌ้–‹ใ—ใพใ—ใŸใŒใ€ใ“ใฎ่จ˜ไบ‹ใฏๆœชๅฎŒๆˆใงใ€ใ‚ใจใงใ•ใ‚‰ใซๆ•ด็†ใ—ใฆๅˆฅ้€”่จ˜ไบ‹ใซใพใจใ‚ใ‚‹ใคใ‚‚ใ‚Šใงใ™


@tanaikech
tanaikech / submit.md
Created May 20, 2018 04:44
Create Folder Tree of Google Drive using Node.js

Create Folder Tree of Google Drive using Node.js

This is a sample script for retrieving a folder tree using Node.js. In this sample, you can set the top of folder for the folder tree. In generally, the folder tree is created by retrieving folders from the top folder in order. For example, when Google Apps Script is used, the script becomes like this. But when Drive API is used for this situation, if there are a lot of folders in the top folder, a lot of APIs are required to be called. So in this sample, I have tried to create the folder tree by a small number of API calls as possible.

In this sample, in order to be easy to understand the flow, I used Quickstart for Node.js. When you use this sample script, at first, please check the document of Quickstart. And I confirmed that this sample worked at googleapis v30.0.0.

Flow :

  1. Retrieve all folders in Google Drive.
@jamesmacwhite
jamesmacwhite / ffmpeg_mkv_mp4_conversion.md
Last active March 18, 2025 03:08
Easy way to convert MKV to MP4 with ffmpeg

Converting mkv to mp4 with ffmpeg

Essentially just copy the existing video and audio stream as is into a new container, no funny business!

The easiest way to "convert" MKV to MP4, is to copy the existing video and audio streams and place them into a new container. This avoids any encoding task and hence no quality will be lost, it is also a fairly quick process and requires very little CPU power. The main factor is disk read/write speed.

With ffmpeg this can be achieved with -c copy. Older examples may use -vcodec copy -acodec copy which does the same thing.

These examples assume ffmpeg is in your PATH. If not just substitute with the full path to your ffmpeg binary.

Single file conversion example