[ Launch: sin waves ] 9867432 by seigel See Previous Inlet [ Gist ]
module Dashing | |
class EventsController < ApplicationController | |
include ActionController::Live | |
respond_to :html | |
def index | |
response.headers['Content-Type'] = 'text/event-stream' | |
response.headers['X-Accel-Buffering'] = 'no' |
<html> | |
<body> | |
<h1>Hi there.</h1> | |
</body> | |
</html> |
-- Index hit rate | |
WITH idx_hit_rate as ( | |
SELECT | |
relname as table_name, | |
n_live_tup, | |
round(100.0 * idx_scan / (seq_scan + idx_scan),2) as idx_hit_rate | |
FROM pg_stat_user_tables | |
ORDER BY n_live_tup DESC | |
), |
Stripe's API supports sending both typed and swiped card data. Typed data is recorded when your customer enters their card details on your site and the data is sent to Stripe either by Stripe.js or through the Stripe API:
https://stripe.com/docs/api#create_charge
Swiped data is sent to Stripe when you have your own card swipe that reads the magnetic card strip on the back of your customers' cards. The raw output of the card swipe can then be submitted to the Stripe API.
The data contained on the magnetic strip of a card contains similar details to those embossed on the card but with some additions and repetitions. Details on the magnetic strip data can be found here:
The easiest way to get the ClamAV package is using Homebrew
$ brew install clamav
Before trying to start the clamd
process, you'll need a copy of the ClamAV databases.
Create a freshclam.conf
file and configure as so
I hereby claim:
- I am seigel on github.
- I am seigel (https://keybase.io/seigel) on keybase.
- I have a public key ASDzeig2Gp0-Xw0inxXe_d0XTijUHMG5L_wEEBDS6R2GJwo
To claim this, I am signing this object:
- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
- They are the people who get things done. Effective Engineers produce results.
module ApplicationHelper | |
def current_user | |
@current_user ||= warden.authenticate(:scope => :user) | |
end | |
end |