Dear all Github friends,
I moved this gist to the Github repository.
Following this repository https://github.com/nijicha/install_nodejs_and_yarn_homebrew
| /* | |
| ____ _ _ _ _ _ _ _ | |
| / ___|| |_ _ __(_)_ __ ___ | | | | |_(_) |___ | |
| \___ \| __| '__| | '_ \ / _ \ | | | | __| | / __| | |
| ___) | |_| | | | |_) | __/ | |_| | |_| | \__ \ | |
| |____/ \__|_| |_| .__/ \___| \___/ \__|_|_|___/ | |
| |_| | |
| Purpose: |
| export const chaosTestStrings = (): void => { | |
| const textNodes = getAllTextNodes(document.body); | |
| for (const node of textNodes) { | |
| const textNodeLength = node.textContent ? node.textContent.length : 0; | |
| if (node.textContent === null) { | |
| return; | |
| } | |
| if (node.parentElement instanceof Element) { | |
| if (node.parentElement.dataset.originalText === undefined) { |
| import * as admin from "firebase-admin" | |
| import express from "express" | |
| import sharp, { ResizeOptions, OutputOptions } from "sharp" | |
| import fetch from "cross-fetch" | |
| import FileType from "file-type" | |
| import { parseQueryNumber, parseQueryString } from "../some/extra/util/functions" | |
| import { Photo } from "../some/custom/types" | |
| const router = express.Router() |
| import * as path from "path"; | |
| import * as zlib from "zlib"; | |
| import { PassThrough } from "stream"; | |
| import * as functions from "firebase-functions"; | |
| import * as admin from "firebase-admin"; | |
| import * as log from "firebase-functions/lib/logger"; | |
| import * as sharp from "sharp"; | |
| import { empty } from "ramda"; |
Dear all Github friends,
I moved this gist to the Github repository.
Following this repository https://github.com/nijicha/install_nodejs_and_yarn_homebrew
| #!/bin/bash | |
| youtube_url="$1" | |
| echo "Downloading video..." | |
| video_info=$(yt-dlp -e -o "%(title)s" -- "$youtube_url") | |
| sanitized_title=$(echo "$video_info" | sed 's/[^a-zA-Z0-9_.-]/_/g') | |
| output_file="${sanitized_title}.mp4" | |
| yt-dlp -o "temp.mp4" -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best' -- "$youtube_url" |
| # --------------------------------------------------------------------------- | |
| # | |
| # Description: This file holds all my BASH configurations and aliases | |
| # | |
| # Sections: | |
| # 1. Environment Configuration | |
| # 2. Make Terminal Better (remapping defaults and adding functionality) | |
| # 3. File and Folder Management | |
| # 4. Searching | |
| # 5. Process Management |