Skip to content

Instantly share code, notes, and snippets.

@ttscoff
ttscoff / changelog.rb
Created August 13, 2017 22:28
Generate release notes from git commit messages
#!/usr/bin/ruby
# A script to automate changelog generation from Git commit messages
#
# For use with a git-flow workflow, it will take changes from the last tagged release
# where commit messages contain NEW, FIXED, and IMPROVED keywords and sort and fromat
# them into a Markdown release note list.
#
# The script takes version information from the macOS command agvtool and bases
# the product name on the first matching Xcode Info.plist found
@stefanfoulis
stefanfoulis / docker_for_mac_disk_default_size.md
Last active June 29, 2023 12:02
How to resize Docker for Mac Disk image and set the default size for new images

Set the default size for new Docker for Mac disk images

UPDATE: The instructions here are no longer necessary! Resizing the disk image is now possible right from the UI since Docker for Mac Version 17.12.0-ce-mac49 (21995).

If you are getting the error: No space left on device

Configuring the qcow2 size cap is possible in the current versions:

# my disk is currently 64GiB
@AlexIoannides
AlexIoannides / aws_utils.R
Created August 23, 2016 21:40
R function for generating URLs to S3 resources with query string request authentication.
#' Function for generating URLs to S3 resources with query string request authentication.
#'
#' @param path_to_file from the bucket and excluding leading '/'.
#' @param bucket the name of the S3 bucket containing the rescource.
#' @param region AWS region the bucket is located in.
#' @param aws_access_key_id access key ID for an IAM user with access to the S3 bucket.
#' @param aws_secret_access_key secret access key for an IAM user with access to the S3 bucket.
#' @param lifetime_minutes the duration in minutes after which the URL will expire.
#'
#' @return A URL to an S3 resource with query string request authentication.