Skip to content

Instantly share code, notes, and snippets.

reallyfancy /
Created Oct 16, 2017
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:
# 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'


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:

tylerneylon / learn.lua
Last active Nov 8, 2022
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.
View learn.lua
-- Two dashes start a one-line comment.
Adding two ['s and ]'s makes it a
multi-line comment.
-- 1. Variables and flow control.
View tmux_cheatsheet.markdown

tmux cheatsheet

As configured in my dotfiles.

start new:


start new with session name: