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
| open -a "Google Chrome" --args --user-data-dir="/tmp/chrome_dev_test" --disable-web-security |
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
| console.log(JSON.stringify(data ?? null, null, 2)) | |
| [...Array(10).keys()] | |
| const sleep = ms => new Promise(res => setTimeout(res, ms)); | |
| const sum = arr => arr.reduce((sum, n) => sum + n, 0) | |
| const avg = arr => sum(arr) / arr.length |
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 { writeFile } from "fs/promises"; | |
| import axios from "axios"; | |
| const main = async () => { | |
| try { | |
| const response = await axios.get(`${FILE_URL}`, { responseType: "arraybuffer" }); | |
| try { | |
| await writeFile(`./${FILE_NAME}.jpg`, response.data); | |
| } catch(err) { | |
| console.log(err); |
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
| const formatDate = (date) => | |
| `${date.getFullYear()}/${String(date.getMonth() + 1).padStart(2, "0")}/${String(date.getDate()).padStart(2, "0")} ${String(date.getHours()).padStart(2, "0")}:${String(date.getMinutes()).padStart(2, "0")}:${String(date.getSeconds()).padStart(2, "0")}`; |
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
| ffmpeg -sseof -3 -i input.mp4 -update 1 -q:v 1 last.jpg |
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
| ffmpeg -i input.mp4 -ss 00:00:00 -frames:v 1 first.jpg |
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
| {{ if .Inner }}<details {{ if eq (.Get "open") "true" }}open{{ end }}> | |
| {{ with .Get "title" }}<summary>{{.}}</summary>{{ end }} | |
| {{ .Inner | markdownify }} | |
| </details>{{ end }} |
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
Show hidden characters
| // Documentation at https://www.sublimetext.com/docs/color_schemes.html | |
| { | |
| "variables": {}, | |
| "globals": { | |
| "background": "#19171a", | |
| "selection": "#333", | |
| "selection_border": "#333", | |
| "stack_guide": "var(grey)", | |
| "active_guide": "var(purple)", | |
| "line_highlight": "var(black3)", |
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": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Sid": "AllowViewAccountInfo", | |
| "Effect": "Allow", | |
| "Action": [ | |
| "iam:GetAccountPasswordPolicy", | |
| "iam:GetAccountSummary", | |
| "iam:ListVirtualMFADevices" |
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
| ffmpeg -i in.mov -vcodec h264 -acodec mp2 out.mp4 |