A list of useful commands for the ffmpeg command line tool.
Full documentation: https://www.ffmpeg.org/ffmpeg.html
ffmpeg -i input.mp4 output.mkv
A list of useful commands for the ffmpeg command line tool.
Full documentation: https://www.ffmpeg.org/ffmpeg.html
ffmpeg -i input.mp4 output.mkv
# Note: This will only work on Navi21 GPUs (6800/6900+). | |
# See: https://github.com/RadeonOpenCompute/ROCm/issues/1668#issuecomment-1043994570 | |
# Install Conda (latest from https://docs.conda.io/en/latest/miniconda.html#linux-installers) | |
wget https://repo.anaconda.com/miniconda/Miniconda3-py39_4.12.0-Linux-x86_64.sh | |
bash Miniconda3-py39_4.12.0-Linux-x86_64.sh | |
# follow the prompts to install it, and run `conda` to make sure it's working. | |
# Install git and curl, and clone the stable-diffusion repo | |
sudo apt install -y git curl |
The use of this application ("Bot") in a server requires the collection of some specific user data ("Data"). The Data collected includes, but is not limited to Discord user ID values. Use of the Bot is considered an agreement to the terms of this Policy.
Access to Data is only permitted to Bot's developers, and only in the scope required for the development, testing, and implementation of features for Bot. Data is not sold, provided to, or shared with any third party, except where required by law or a Terms of Service agreement. You may view the data we store about you by asking in our #support
channel in the counting
guild.
#!/usr/bin/env nix-shell | |
#!nix-shell -i bash -p ffmpeg pngquant gifski gifsicle | |
# shellcheck shell=bash | |
set -euo pipefail | |
if [[ "$#" -ne 3 ]]; then | |
echo "Usage: gif.sh <name> <scale> <fps>" | |
exit 1 | |
fi |
import { useCallback, useEffect, useState } from 'react' | |
// borrowed from https://usehooks.com/useAsync/ | |
export function useAsync<T>(asyncFunction: () => Promise<T>, immediate = true) { | |
const [loading, setLoading] = useState(true) | |
const [value, setValue] = useState<T | null>(null) | |
const [error, setError] = useState<any>(null) | |
// The execute function wraps asyncFunction and | |
// handles setting state for pending, value, and error. | |
// useCallback ensures the below useEffect is not called |
Summarizing the instructions of the pass
tool (as seen on its website).
Execute: $ sudo apt install pass
# IMPORTANT!: ALL SECTIONS ARE MANDATORY | |
[licenses] | |
# This indicates which are the only licenses that Licensebat will accept. | |
# The rest will be flagged as not allowed. | |
accepted = ["MIT", "MSC", "BSD"] | |
# This will indicate which licenses are not accepted. | |
# The rest will be accepted, except for the unknown licenses or dependencies without licenses. | |
# unaccepted = ["LGPL"] | |
# Note that only one of the previous options can be enabled at once. | |
# If both of them are informed, only accepted will be considered. |
#!/bin/bash | |
# | |
# CatBox v2.0 | |
# An implementation of catbox.moe API in Bash | |
# Author: MineBartekSA | |
# Gist: https://gist.github.com/MineBartekSA/1d42d6973ddafb82793fd49b4fb06591 | |
# Change log: https://gist.github.com/MineBartekSA/1d42d6973ddafb82793fd49b4fb06591?permalink_comment_id=4596132#gistcomment-4596132 | |
# | |
# MIT License | |
# |
A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html