Skip to content

Instantly share code, notes, and snippets.

View mattjegan's full-sized avatar

Matt Egan mattjegan

View GitHub Profile
@jimbojsb
jimbojsb / gist:1630790
Created January 18, 2012 03:52
Code highlighting for Keynote presentations

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2:

@KeithP
KeithP / .ebextensions\01-increase-timeout.config
Created October 23, 2014 20:38
Increase Elastic beanstalk timeout to 30 minutes
option_settings:
- namespace: aws:elasticbeanstalk:command
option_name: Timeout
value: 1800
@halilim
halilim / move_heroku_pg_to_aws_rds.md
Last active February 22, 2021 14:13
Move Heroku Postgres to Amazon AWS RDS
  1. Prepare your RDS instance and [authorize access to it][1] (basically make it public).

  2. Put your app in maintenance mode:

    heroku maintenance:on
  3. Save the latest SQL dump of the DB:

@MrTrustor
MrTrustor / clean-docker-for-mac.sh
Last active November 21, 2023 11:38
This script cleans the Docker.qcow2 file that takes a lot of disk space with Docker For Mac. You can specify some Docker images that you would like to keep.
#!/bin/bash
# Copyright 2017 Théo Chamley
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in the Software
# without restriction, including without limitation the rights to use, copy, modify, merge,
# publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
# to whom the Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aljp
aljp / django-ssh-shell_plus.sh
Last active August 27, 2018 06:15
A bash script to start a local python shell connected to remote resources through ssh tunnels
#!/usr/bin/env bash
# THE SHELL ACTIVATOR
# Provide an "environment" name as the first argument to this script and it will open a python shell to the environment's web tier.
if [ -z $1 ]; then
echo "First argument must be the environment"
exit 1
fi
ENV_FILE=$1