Skip to content

Instantly share code, notes, and snippets.

View niceindividual's full-sized avatar

Matt Heinrich niceindividual

View GitHub Profile
@nimatrueway
nimatrueway / subtitle-overlap-fixer.go
Last active March 16, 2025 14:47
Little tool to fix overlapping subtitles (especially the ones extracted from english auto-subtitles of youtube, vtt files that you would convert to srt with ffmpeg)
package main
import (
"time"
"regexp"
"bufio"
"strconv"
"fmt"
"os"
"errors"
@chadhutchins
chadhutchins / mailchimp-v3-batch-updates.php
Created December 4, 2015 17:35
This script shows how to use the MailChimp v3 API to re-subscribe a large group of mistakingly unsubscribed email addresses in a MailChimp List. There are a couple examples commented out that can be used. The first shows how to look up the status of a batch API call sent to MailChimp. And the second shows how to make a batch API call to re-subsc…
<?php
// replace this with your mailchimp api key
$mailchimp_apikey = "mailchimp-api-key-goes-here";
// create mailchimp api object that is used later to make api calls
$mcapi = new MailChimp_API($mailchimp_apikey);
/**
// Use the following code if you want to look up the status of a batch call