Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
| /* | |
| * Copyright (c) 2017 Emil Davtyan | |
| * | |
| * 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: |
| #!/bin/bash | |
| sudo apt-get update | |
| # Now let's install all the required ubuntu packages | |
| sudo apt-get install build-essential uwsgi nginx uwsgi-plugin-python python-pip | |
| # PS! If you are doing this stuff for fun I do recommend to install nginx from PPA repository | |
| # that you can find here https://launchpad.net/~nginx/+archive/development |
| # Builder file for sentry | |
| # | |
| FROM ubuntu | |
| MAINTAINER Michael Crosby | |
| RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list | |
| RUN apt-get update | |
| RUN apt-get upgrade |
| require 'fiddle' | |
| module Python | |
| def __class__= k | |
| value = _wrap self | |
| [k.object_id<<1].pack('Q').unpack('C8').each_with_index {|n,i|value[i+8]=n} | |
| end | |
| def _wrap klass; Fiddle::Pointer.new Fiddle.dlwrap klass; end | |
| end |
| # config/environments/production.rb: | |
| config.action_controller.asset_host = "http://cdn%d.example.com" | |
| # config/initializers/refinery/images.rb: | |
| config.dragonfly_url_format = "/images/:job/:basename.:ext" | |
| if Rails.env.production? | |
| config.dragonfly_url_host = "http://cdn4.example.com" | |
| end | |
| # config/initializers/refinery/resources.rb: |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
| #!/usr/bin/perl | |
| use Mysql; | |
| use strict; | |
| use vars qw($school_name); | |
| use vars qw($pass); | |
| require "./cgi-lib.pl"; |
I want to be extremely clear about three things. First, this is my personal opinion – insert full standard disclaimer. Second, this is not a condemnation of everyone at RSA, present and past. I assume most of them are pretty okay, and that the problem is confined to a few specific points in the company. However, “unknown problem people making major decisions at RSA” is a bit unwieldy, so I will just say RSA. Third, I'm not calling for a total boycott on RSA. I work almost literally across the street from them and I don’t want to get beat up by roving gangs of cryptographers at the local Chipotle.
RSA's denial published last night is utter codswallop that denies pretty much everything in the world except the actual allegations put forth by Reuters and hinted at for months by [other sources](http://li
A not politically correct assertion of my feelings towards a piece of software:
Note: Repetition builds cynicism, asset_sync isn't bad, but when an asset problem cannot be solved via support it gets escalated to me. Often times someone using asset_sync the problem is due to their use of the library and not from Heroku.
The asset sync gem uploads your assets (images, css, javascript) to S3. From there you can either point browsers to the copy on S3 or use a CDN + the S3 bucket. It's a good idea, and solved a problem at one time.
It is no longer needed and you should now use https://devcenter.heroku.com/articles/using-amazon-cloudfront-cdn instead. So rather than copying your assets over to S3 after they are precompiled the CDN grabs them from your website instead. Here's some reasons why it's better.