Skip to content

Instantly share code, notes, and snippets.

View flavorjones's full-sized avatar

Mike Dalessio flavorjones

View GitHub Profile
@willejs
willejs / README.md
Last active January 4, 2023 09:39
Moving Concourse Pipelines

Moving Concourse Pipelines

Currently concourse does not support moving pipelines between teams via fly CLI. There is an issue for that here

The only way to do this is to make a few changes in the DB.

If you run the statement below you will see that 6 tables have the team_id column.

concourse=> select table_name                                                                                                                                                                                                                                                                                                                                                       from INFORMATION_SCHEMA.COLUMNS                                                                                                                                                                                                                                                                            
@Amit-PivotalLabs
Amit-PivotalLabs / bosh-links-why-and-how.md
Last active December 10, 2021 21:33
BOSH Links: Why and How

Don't use MongoDB

I've kept quiet for awhile for various political reasons, but I now feel a kind of social responsibility to deter people from banking their business on MongoDB.

Our team did serious load on MongoDB on a large (10s of millions of users, high profile company) userbase, expecting, from early good experiences, that the long-term scalability benefits touted by 10gen

require 'fiddle'
module FFI
module Library
def ffi_lib *libs
libs.each { |lib| Fiddle.dlopen lib }
end
def attach_function name, arg_types, return_type
f = Fiddle::Function.new(
#
# My options when writing a gem containing non-Ruby code
#
| Your support burden | MRI? | Rubinius? | MacRuby? | JRuby? | Google App Engine? |
|-------------------------+------+-----------+----------+--------+--------------------|
| Two branches: FFI and C | YES | YES | YES | YES* | NO |
| Two branches: JVM and C | YES | YES | YES | YES | YES |
| One branch: FFI | YES* | NO-ish | NO | YES* | NO |
| One branch: C | YES | YES | YES | NO | NO |
@flavorjones
flavorjones / README.markdown
Created August 19, 2009 05:46
Comparison of Loofah against other Ruby HTML sanitization libraries

Overview of the Benchmark

The following benchmark output was generated from the codes at http://github.com/flavorjones/loofah/tree/master/benchmark

These results show the performance of Loofah scrubbing methods against comparable methods from other common open-source libraries:

  • ActionView sanitize() and strip_tags()
  • Sanitize sanitize()