Skip to content

Instantly share code, notes, and snippets.

View danielpclark's full-sized avatar
✍️
Working from home on open source

Daniel P. Clark danielpclark

✍️
Working from home on open source
View GitHub Profile

gif-from-tweet

There are so many great GIFs out there and I want to have copies of them. Twitter makes that harder than it should be by converting them to MP4 and not providing access to the source material. To make it easier, I made a bash pipeline that takes a tweet URL and a filename, extracts the MP4 from that tweet and uses ffmpeg to convert back to GIF.

Dependencies

  • ffmpeg
    • macOS: brew install ffmpeg
    • Ubuntu/Debian: apt install ffmpeg

Someone said, "...the purpose of this RFC is to rank crates against each other...". I think this puts the cart before the horse. The purpose should be to help visitors to crates.io fund what they need. Ranking crates is one potential way to help, but it isn't the purpose.

Who visits crates.io and why?

Personas

Dee Veloper

@shiroyasha
shiroyasha / dog.rb
Created February 16, 2016 22:20
Method tracer for Ruby classes
class Dog
attr_writer :name
def initialize(name)
@name = name
end
def bark
puts "patrick"
end
@macu
macu / vslice.py
Created March 13, 2014 02:29
Simplifies using avconv to slice out part of a video
#!/usr/bin/env python
import sys
from operator import sub
from subprocess import call
def parseTime(s):
parts = s.split(':')
if len(parts) == 2:
parts.insert(0, 0)
@bergie
bergie / .gitignore
Created September 19, 2011 15:50
Node.js email handling examples
config.json
reading-image.png