Skip to content

Instantly share code, notes, and snippets.

View mcollina's full-sized avatar

Matteo Collina mcollina

View GitHub Profile
@mcollina
mcollina / improve_delayed_jobs_index.rb
Created February 5, 2011 10:50
A migration to improve Delayed Job performance when runned with Delayed::Worker.destroy_failed_jobs = false.
class ImproveDelayedJobsIndex < ActiveRecord::Migration
def self.up
remove_index :delayed_jobs, :name => "delayed_jobs_priority"
add_index :delayed_jobs, [:failed_at, :priority, :run_at], :name => 'delayed_jobs_priority'
end
def self.down
remove_index :delayed_jobs, :name => "delayed_jobs_priority"
add_index :delayed_jobs, [:priority, :run_at], :name => 'delayed_jobs_priority'
end
@mcollina
mcollina / .gitignore
Created March 25, 2011 08:50
Not working rack pagespeed application
*~
public/rack-*
@mcollina
mcollina / back.js
Created May 17, 2011 15:24
Sencha Touch Back Button Plugin
BackButton = Ext.extend(Ext.Button, {
ui: 'back',
text: 'Back',
hidden: true,
id: 'back',
handler: function() {
var dispatchOptions = this.backStack.pop();
Ext.dispatch(dispatchOptions);
if(this.backStack.length == 0) {
@mcollina
mcollina / .gitignore
Created October 5, 2011 15:30
Syck::Syck errors for Delayed Job
*~
@mcollina
mcollina / country.json
Created November 8, 2011 21:56
SharpNodes Use Case 1 APIs
// GET /COUNTRY/[COUNTRY_NAME]
{
"opennet_filtering_data": {
"political": {"score": INT},
"social": {"score": INT},
"tools": {"score": INT},
"conflict_security" : {"score": INT}
},
"google_removal_requests": {
@mcollina
mcollina / spam-mail
Created November 9, 2011 08:48
First time spam from github
Hello
My Dear How are you my name is Miss Anna I saw your profile today at github.com and become interested here is my e-mail address ([email protected]) Please try to send e-mail so that I can give my picture.for to know who I am yours
Miss Anna.
@mcollina
mcollina / LICENSE
Created January 30, 2012 14:04
NetworkButton MQTT Example
Copyright (c) 2008-2012 Nicholas O'Leary
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:
lib-cov
*.seed
*.log
*.csv
*.dat
*.out
*.pid
*.gz
pids
@mcollina
mcollina / bio.md
Last active June 14, 2023 16:07
Speaking Bio

Matteo Collina

Matteo is the Co-Founder and CTO of Platformatic.dev with the goal to remove all friction from backend development. He is also a prolific Open Source author in the JavaScript ecosystem and modules he maintain are downloaded more than 17 billion times a year. Previously he was Chief Software Architect at NearForm, the best professional services company in the JavaScript ecosystem. In 2014, he defended his Ph.D. thesis titled "Application Platforms for the Internet of Things". Matteo is a member of the Node.js Technical Steering Committee focusing on streams, diagnostics and http. He is also the author of the fast logger Pino and of the Fastify web framework. Matteo is an renowed international speaker after more than 60 conferences, including OpenJS World, Node.js Interactive, NodeConf.eu, NodeSummit, JSConf.Asia, WebRebels, and JsDay j

@mcollina
mcollina / .gitignore
Last active December 14, 2015 15:19 — forked from adamvr/.gitignore
node_modules