Skip to content

Instantly share code, notes, and snippets.

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@tylerneylon
tylerneylon / learn.lua
Last active April 2, 2024 15:09
Learn Lua quickly with this short yet comprehensive and friendly script. It's written as both an introduction and a quick reference. It's also a valid Lua script so you can verify that the code does what it says, and learn more by modifying and running this script in your Lua interpreter.
-- Two dashes start a one-line comment.
--[[
Adding two ['s and ]'s makes it a
multi-line comment.
--]]
----------------------------------------------------
-- 1. Variables and flow control.
----------------------------------------------------
@protrolium
protrolium / ffmpeg.md
Last active April 8, 2024 11:49
ffmpeg guide

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

You can get the list of installed codecs with:

@reallyfancy
reallyfancy / delete_specific_tweet.py
Created October 16, 2017 12:03
Script for deleting a specific tweet by ID. This is useful when you want to un-retweet something that you retweeted from a user who has subsequently become private or blocked you.
# Pre-requisites: Python and tweepy. You will also need to register a Twitter app here: https://apps.twitter.com/
# To use: replace XXXXXX with the appropriate info and run the script.
# Tip: To find the ID of a retweet, view the page source in your browser and look for data-retweet-id.
import tweepy
# auth and api
consumer_key = 'XXXXXX'
consumer_secret = 'XXXXXX'
access_token = 'XXXXXX'