Skip to content

Instantly share code, notes, and snippets.

@mwilliammyers
mwilliammyers / giratchive.sh
Last active December 31, 2015 08:05 — forked from markrickert/giratchive.sh
Git Archive Bash Script
#!/bin/bash
# Takes one parameter: a remote git repository URL.
#
# This is the stuff this script does:
#
# 1. Clones the repository
# 2. Fetches all remote branches
# 3. Compresses the folder
# 4. Deletes the cloned folder.
@mwilliammyers
mwilliammyers / transmission.sh
Created November 26, 2015 20:37 — forked from jyunderwood/transmission.sh
Set Transmission.app preferences on OS X
#!/usr/bin/env bash
# Use `~/Downloads` to store incomplete downloads
defaults write org.m0k.transmission UseIncompleteDownloadFolder -bool true
defaults write org.m0k.transmission IncompleteDownloadFolder -string "${HOME}/Downloads"
# Do not prompt for confirmation before downloading
defaults write org.m0k.transmission DownloadAsk -bool false
# Trash original torrent files