Skip to content

Instantly share code, notes, and snippets.

View ackledotdev's full-sized avatar
💭
I may be slow to respond.

Akhil Pillai ackledotdev

💭
I may be slow to respond.
View GitHub Profile
@SherifFathey
SherifFathey / ffmpeg.md
Created July 11, 2025 07:24
Useful FFmpeg command examples for everyday media tasks like converting, compressing, and creating GIFs

🎬 FFmpeg Command Guide — Practical Workflow

📥 0. Install FFmpeg

On Ubuntu :

sudo apt update
sudo apt install ffmpeg
@ackledotdev
ackledotdev / princess-bride-quotes.md
Last active January 12, 2025 03:40
Princess Bride Quotes

Westley: As you wish.

Inigo: Hello. My name is Inigo Montoya. You killed my father. Prepare to die.

Buttercup: We'll never survive. Westley: Nonsense. You're only saying that because no one ever has.

Inigo: Fezzik, tear his arms off.

Vizzini: He didn't fall? INCONCEIVABLE.

@bahadiraraz
bahadiraraz / Git_Commit_Freeze_Solution.md
Last active June 1, 2026 14:03
Git Commit Freeze Due to GPG Lock Issues (Solution)

Git Commit Freeze Due to GPG Lock Issues

If you encounter a problem where you cannot commit changes in Git – neither through the terminal nor via the GitHub Desktop application – the issue might be a freeze during the Git commit process. This is often caused by GPG lock issues. Below is a concise and step-by-step guide to resolve this problem.

Solution Steps

1. Check for GPG Lock Messages

Open your terminal and try to perform a GPG operation (like signing a test message). If you see repeated messages like gpg: waiting for lock (held by [process_id]) ..., it indicates a lock issue.

@MaFeLP
MaFeLP / ArchLinux-Installation-Speedrun.md
Last active June 2, 2026 00:23
A Guide to install ArchLinux very fast (speedrun) with or without a desktop environment (KDE Plasma).

Arch Linux Installation commands

Principles

You install archlinux from their latest ISO-Image with or without a graphical user interface. If you choose to install it with a GUI, you should go on a browser of your choise and open the archlinux.org website and run a neofetch. If you chose to go with a non-gui installation I'm fine with a login prompt on the actual machine.

This gist is a help to go through this speedrun, pretty fast.


Table of contents

  1. Install without GUI
@triangletodd
triangletodd / update_discord.sh
Created December 5, 2020 04:29
Update Discord on Debian
#!/usr/bin/env bash
set -e
trap "{ rm -f $tmpfile; }" EXIT
tmpfile="$(mktemp)"
main() {
curl -Lo "$tmpfile" 'https://discord.com/api/download?platform=linux'
sudo dpkg -i "$tmpfile"
@bambooom
bambooom / puppeteer-gif.js
Last active March 3, 2025 23:33
use puppeteer to generate gif
const fs = require('fs');
const puppeteer = require('puppeteer');
const GIFEncoder = require('gifencoder');
const PNG = require('png-js');
function decode(png) {
return new Promise(r => {png.decode(pixels => r(pixels))});
}
@sebmarkbage
sebmarkbage / The Rules.md
Last active April 25, 2026 12:58
The Rules of React

The Rules of React

All libraries have subtle rules that you have to follow for them to work well. Often these are implied and undocumented rules that you have to learn as you go. This is an attempt to document the rules of React renders. Ideally a type system could enforce it.

What Functions Are "Pure"?

A number of methods in React are assumed to be "pure".

On classes that's the constructor, getDerivedStateFromProps, shouldComponentUpdate and render.

@JBlond
JBlond / bash-colors.md
Last active June 1, 2026 15:31 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@jagrosh
jagrosh / Github Webhook Tutorial.md
Last active May 26, 2026 15:45
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings
bind-key C-b send-prefix
bind-key C-o rotate-window
bind-key C-z suspend-client
bind-key Space next-layout
bind-key ! break-pane
bind-key " split-window
bind-key # list-buffers
bind-key $ command-prompt -I #S "rename-session '%%'"
bind-key % split-window -h
bind-key & confirm-before -p "kill-window #W? (y/n)" kill-window