Skip to content

Instantly share code, notes, and snippets.

View tigefa4u's full-sized avatar
πŸ“‰
πŸš€ 😧 β˜• 🚬

Sugeng Tigefa tigefa4u

πŸ“‰
πŸš€ 😧 β˜• 🚬
View GitHub Profile
@yunooooo
yunooooo / ffmpeg.md
Last active March 30, 2025 12:56 — forked from steven2358/ffmpeg.md
FFmpeg cheat sheet

FFmpeg Cheat Sheet

A list of useful commands for the ffmpeg command line tool.

Full documentation: https://www.ffmpeg.org/ffmpeg.html

Basic conversion

ffmpeg -i input.mp4 output.mkv
@geerlingguy
geerlingguy / stable-diffusion-ubuntu-2004-amd.sh
Last active March 15, 2024 06:52
Install Stable Diffusion on an AMD GPU PC running Ubuntu 20.04
# 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
@tt2468
tt2468 / counting-privacy-policy.md
Created March 25, 2022 09:43
Privacy Policy for counting#5250

Privacy Policy

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

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.

Storage of Data

@pwm
pwm / giffer.sh
Created February 4, 2022 10:23
Gif gen
#!/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
@jpillora
jpillora / useAsync.ts
Created January 6, 2022 05:55
useAsync.ts
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
@sgarciav
sgarciav / pass.md
Last active February 23, 2025 18:17
Initialize your password store

About

Summarizing the instructions of the pass tool (as seen on its website).

Getting Started

Installation

Execute: $ sudo apt install pass

@robertohuertasm
robertohuertasm / .licrc
Last active December 29, 2024 02:59
Simple .licrc config file for Licensebat
# 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.
@agtbaskara
agtbaskara / tilix_ubuntu_guide.md
Last active May 1, 2025 08:28
Installation Guide for Tilix on Ubuntu

Install Tilix on Ubuntu 20.04

Install Tilix

sudo apt-get install tilix

Fix Tilix VTE

sudo ln -s /etc/profile.d/vte-2.91.sh /etc/profile.d/vte.sh
sudo chmod +x /etc/profile.d/vte.sh
@MineBartekSA
MineBartekSA / catbox
Last active May 10, 2025 18:29
CatBox - An implementation of catbox.moe API in Bash
#!/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
#
@steven2358
steven2358 / ffmpeg.md
Last active May 15, 2025 12:51
FFmpeg cheat sheet