Skip to content

Instantly share code, notes, and snippets.

View Drosty's full-sized avatar

Ryan Drost Drosty

View GitHub Profile
@Drosty
Drosty / Controller
Created June 6, 2013 18:37
Basic AJAX Test. Controller (which has the Models), the Layout File and the View for the Index action.
using System;
using System.Web.Mvc;
namespace AjaxTest.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
return View();
@Drosty
Drosty / gist:9014925b37d014cfa4839d9882117b8c
Created July 23, 2016 02:29 — forked from sebboh/gist:f1dfe4f096746c45f3e9ea06a09743a0
Installing a Gem on Heroku from a Private GitHub Repo

Installing a Gem on Heroku from a Private GitHub Repo

Sometimes you want to use a gem on Heroku that is in a private repository on GitHub.

Using git over http you can authenticate to GitHub using basic authentication. However, we don't want to embed usernames and passwords in Gemfiles. Instead, we can use authentication tokens.

This method does not add your OAuth token to Gemfile.lock. It uses bundle config to store your credentials, and allows you to configure Heroku to use environment variables when deploying.

  1. Generate an OAuth token from GitHub
To circle.yml:
dependencies:
post:
- bin/cisetup
checkout:
post:
- git fetch origin --depth=1000000