Skip to content

Instantly share code, notes, and snippets.

View hikvision-snapshot-downloader.py
#!/usr/bin/python
import xml.etree.ElementTree as ET
import requests
import re
import sys
from datetime import date
from dateutil.parser import parse
from dateutil.rrule import rrule, DAILY
# suppresses SSL warning
@knzconnor
knzconnor / lsof.bash
Created Oct 9, 2012
lsof command to find all things listening on ports
View lsof.bash
lsof -Pnl +M -i4 | grep LISTEN
@colinux
colinux / subtitles-renamer.sh
Created Jan 27, 2011
Rename subtitles files according to tv shows names found in a directory
View subtitles-renamer.sh
#!/bin/bash
# Renames subtitles files according to tv shows names found in a directory
# Acceped syntaxes for season/episode are: 304, s3e04, s03e04, 3x04 (case insensitive)
#
# Usage:
# Put this gist somewhere in your $PATH, like /usr/local/bin/subtitles-renamer
# Chmod +x it
# cd ~/YourHolidaysTvShowsWithSubtitles
# subtitles-renamer
You can’t perform that action at this time.