Skip to content

Instantly share code, notes, and snippets.

View jpadhye's full-sized avatar

Jaideep Padhye jpadhye

View GitHub Profile
@jpadhye
jpadhye / deleteOldTimeMachineBackups.sh
Created August 20, 2023 14:18
Script to delete time machine backups older than 1 year from all backup disks. Needs sudo permissions
#!/bin/bash
# Calculate the cutoff date (1 year ago)
cutoff_date=$(date -v-1y "+%Y-%m-%d-%H%M%S")
echo "cutoff_date => $cutoff_date"
# find mount points
output=$(sudo tmutil destinationinfo)
@jpadhye
jpadhye / setup.py
Created March 17, 2018 07:27 — forked from ndevenish/setup.py
Replacement setup.py for py3exiv2, that allows building on OSX
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import sys
import os
import glob
import subprocess
from setuptools import setup, find_packages, Extension
@jpadhye
jpadhye / updatePlexChannels.sh
Last active February 4, 2017 06:23
Update Plex channels on Ubuntu 14.04 LTS based PlexServer
# Execute as sudo ./updatePlexChannels.sh
set -e
set -x
#Stop PMS
service plexmediaserver stop
#This variable will work with standard installation of plex on Ubuntu 14 LTS.
#Set this correctly on other platforms and it should still work.
PLEX_HOME=/var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server
@jpadhye
jpadhye / install-eclipse.sh
Last active August 29, 2015 14:26 — forked from daisylb/install-eclipse.sh
Installing the Latest Eclipse in Ubuntu
#!/bin/bash
# If you're reading this on the GitHub gist, scroll down for instructions.
# If not, go to https://gist.github.com/1071034
eclipse_url="http://mirror.cc.columbia.edu/pub/software/eclipse/technology/epp/downloads/release/mars/R/eclipse-cpp-mars-R-linux-gtk-x86_64.tar.gz"
eclipse_bin="#!/bin/sh
export ECLIPSE_HOME='/opt/eclipse'
\$ECLIPSE_HOME/eclipse \$*"