Skip to content

Instantly share code, notes, and snippets.

@shihokambara
shihokambara / django-s3-imagekit-celery.rst
Created September 21, 2017 07:49 — forked from voluntas/django-s3-imagekit-celery.rst
S3 と非同期サムネイル作成 コトハジメ

S3 と非同期サムネイル作成 コトハジメ

更新

2013-12-08

バージョン

0.1.8

作者

@voluntas

URL

http://voluntas.github.io/

概要

@shihokambara
shihokambara / connect-heroku-app-to-postgres-rds-with-ssl.md
Created September 12, 2017 07:57 — forked from glarrain/connect-heroku-app-to-postgres-rds-with-ssl.md
How to connect a Heroku application to an Amazon RDS PostgreSQL instance, forcing SSL and certificate chain verification

1 - Download the RDS certificates (root plus region-specific intermediate ones) bundle:

wget -O config/rds-combined-ca-bundle.pem https://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem

2 - Add config/rds-combined-ca-bundle.pem to the repository and redeploy to Heroku.

3 - Update the DATABASE_URL env var:

@shihokambara
shihokambara / background.js
Created September 5, 2017 14:55 — forked from danharper/background.js
Bare minimum Chrome extension to inject a JS file into the given page when you click on the browser action icon. The script then inserts a new div into the DOM.
// this is the background code...
// listen for our browerAction to be clicked
chrome.browserAction.onClicked.addListener(function (tab) {
// for the current tab, inject the "inject.js" file & execute it
chrome.tabs.executeScript(tab.ib, {
file: 'inject.js'
});
});