Skip to content

Instantly share code, notes, and snippets.

@brouberol
brouberol / srtoffset.py
Last active December 2, 2019 13:33
Apply a time offset to each subtitle in an srt file
#!/usr/bin/env python3
"""
Script mutating a subtitles (.srt) file by applying a time offset to each subtitle.
Examples:
% srtoffset movie.srt '00:00:31,500'
% srtoffset movie.srt '00:00:03,125' --rewind
"""
@addyosmani
addyosmani / README.md
Last active July 13, 2024 21:26 — forked from 140bytes/LICENSE.txt
108 byte CSS Layout Debugger

CSS Layout Debugger

A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.

One-line version to paste in your DevTools

Use $$ if your browser aliases it:

~ 108 byte version

@ei-grad
ei-grad / haproxy.cfg
Last active April 3, 2018 08:29
Trivial haproxy config for tcp port forwarding
listen l1
bind 0.0.0.0:80
mode tcp
timeout connect 4000
timeout client 180000
timeout server 180000
server srv1 192.168.1.1:80
global
user "nobody"