Skip to content

Instantly share code, notes, and snippets.

View gonzaloserrano's full-sized avatar
☁️
🧑‍💻

Gonzalo Serrano gonzaloserrano

☁️
🧑‍💻
View GitHub Profile
fatal error: unexpected signal during runtime execution
fatal error: unexpected signal during runtime execution
[signal 0xb code=0x1 addr=0xb01dfacedebac1e pc=0xefeb]
runtime stack:
runtime.throw(0x3e9400, 0x2a)
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/panic.go:547 +0x90 fp=0xc820731cc8 sp=0xc820731cb0
runtime.sigpanic()
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/sigpanic_unix.go:12 +0x5a fp=0xc820731d18 sp=0xc820731cc8
runtime.unlock(0x51e640)
497799835 Xcode (8.1)
409183694 Keynote (7.0.5)
408981434 iMovie (10.1.3)
408981381 iPhoto (9.6.1)
525912054 WiFi Signal (4.0.5)
442160987 Flycut (1.5)
928871589 Noizio (1.5)
419330170 Moom (3.2.5)
409201541 Pages (6.0.5)
682658836 GarageBand (10.1.3)
#! /bin/sh
curl https://gist.githubusercontent.com/gonzaloserrano/f74ca28a9240eeeaadf3095e5add8d73/raw/cf86b29afa1c6b2c213cfdca81d63fa62beea1a6/basket.go > basket.go
sh test.sh
package supmktkata
// Costs for stuff that costs.
type Costs interface {
Cost() float64
}
// CostsFunc adaptor for Costs.
type CostsFunc func() float64
@gonzaloserrano
gonzaloserrano / README.md
Created July 31, 2016 17:54 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


Index:

@gonzaloserrano
gonzaloserrano / aws-web-console-menu-bar-css
Created April 26, 2016 18:51
CSS tweaks to allow more services in the AWS Web Console menu bar with icons and labels
#nav-shortcutBar .service-label {
display: inline-block;
font-size: 0.8em;
margin: 0;
max-width: 35px;
overflow: hidden;
padding: 0;
}
#nav-shortcutBar li {
package main
import (
"testing"
"time"
"golang.org/x/net/context"
"github.com/stretchr/testify/assert"
)
// RunnerFunc allows using ordinary functions as Runner implementations
type RunnerFunc func(context.Context)
// Run bust be implemented by RunnerFunc to implements Runner
// @todo exaplin why this is a common go idiom
func (h RunnerFunc) Run(ctx context.Context) {
h(ctx)
}
package metrics
type dummyMetrics struct{}
func NewDummy() Metrics {
return &dummyMetrics{}
}
func (d *dummyMetrics) Counter(name string, tags ...Tag) Counter {
return &dummyCounter{Name: name, tags: tags}
@gonzaloserrano
gonzaloserrano / setup.sh
Last active September 5, 2023 02:55 — forked from Gazler/setup.sh
linux setup for 2M concurrent WS connections with phoenix/cowboy/elixir/erlang
sysctl -w fs.file-max=12000500
sysctl -w fs.nr_open=20000500
ulimit -n 20000000
sysctl -w net.ipv4.tcp_mem='10000000 10000000 10000000'
sysctl -w net.ipv4.tcp_rmem='1024 4096 16384'
sysctl -w net.ipv4.tcp_wmem='1024 4096 16384'
sysctl -w net.core.rmem_max=16384
sysctl -w net.core.wmem_max=16384
wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
sudo dpkg -i erlang-solutions_1.0_all.deb