Skip to content

Instantly share code, notes, and snippets.

View mauricio's full-sized avatar

Maurício Linhares mauricio

View GitHub Profile
@mauricio
mauricio / golang benchmark
Created January 22, 2022 18:13
golang/ruby async fibers benchmark
root@ubuntu-c-4-8gib-nyc1-01:~# ab -n 10000 -c 50 http://159.223.163.7:3000/
This is ApacheBench, Version 2.3 <$Revision: 1843412 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 159.223.163.7 (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
# Variation on Hashrocket's script for managing the git process
# as documented here: http://reinh.com/blog/2008/08/27/hack-and-and-ship.html
# Create shell scripts out of each of these, put them in your path (~/bin for example)
# chmod 755 them and use like this:
#
# This version of hack is totally different than Hackrockets. I feel that hack implies
# that you are getting started, not finishing up. sink is Hashrockets hack.
#
# $ hack branch_name
# Test and Implement until done
@mauricio
mauricio / node_dead.rb
Created May 20, 2016 20:17
Deletes stuff that's gone from ec2 from chef
require 'chef/knife'
module KnifeNeat
class NodeDead < Chef::Knife
banner "knife node dead ENVIRONMENT"
option :id_source,
short: '-i SOURCE',
long: '--id-source SOURCE',
@mauricio
mauricio / ladder.md
Created October 28, 2015 15:36 — forked from jamtur01/ladder.md
Kickstarter Engineering Ladder
name := "id2-search-proxy"
version := "1.0"
scalaVersion := "2.11.7"
lazy val versions = new {
val scalatra = "2.4.0-RC2-2"
val specs2 = "3.6.4-20150916230958-8339115"
}
[info] Compiling 13 Scala sources to /home/mauricio/projects/scala/id2-search-proxy/target/scala-2.11/classes...
[error] missing or invalid dependency detected while loading class file 'ScalatraServlet.class'.
[error] Could not access term servlet in package javax,
[error] because it (or its dependencies) are missing. Check your build definition for
[error] missing or conflicting dependencies. (Re-run with `-Ylog-classpath` to see the problematic classpath.)
[error] A full rebuild may help if 'ScalatraServlet.class' was compiled against an incompatible version of javax.
[error] missing or invalid dependency detected while loading class file 'ScalatraServlet.class'.
[error] Could not access type HttpServlet in value javax.http,
[error] because it (or its dependencies) are missing. Check your build definition for
[error] missing or conflicting dependencies. (Re-run with `-Ylog-classpath` to see the problematic classpath.)
npm install
npm WARN package.json VoteWise@0.0.1 No license field.
npm WARN deprecated pangyp@2.3.2: use node-gyp@3+, it does all the things
/
> node-sass@3.2.0 install /Users/mauricio/projects/node/VoteWise/node_modules/node-sass
> node scripts/install.js
Cannot download "https://github.com/sass/node-sass/releases/download/v3.2.0/darwin-x64-46_binding.node": HTTP error 404 Not Found
> node-sass@3.2.0 postinstall /Users/mauricio/projects/node/VoteWise/node_modules/node-sass
using System;
using SpiShared;
namespace SpiController.Queue
{
public interface IQueueService
{
Option<QueueMessage<T>> Poll<T>(Func<string,T> parser);
module OnSomething
def self.included(base)
base.extend(ClassMethods)
end
module ClassMethods
def on(type)
attr_accessor "#{type}_starts_at"