Skip to content

Instantly share code, notes, and snippets.

View ivanacostarubio's full-sized avatar
💭
⚡️accelerating

Ivan ivanacostarubio

💭
⚡️accelerating
View GitHub Profile
#!/bin/bash
cat /path/to/public_key | ssh root@yourdokkuinstance "sudo sshcommand acl-add dokku [description]"
@ivanacostarubio
ivanacostarubio / _comment.html.slim
Created July 24, 2019 23:22 — forked from dbridges/_comment.html.slim
Stimulus.js and Rails remote forms with error handling
- # app/views/comments/_comment.html.slim
li data-controller="comment" data-action="click->comment#hello"
= "#{comment.message} by #{comment.user.email}"
@ivanacostarubio
ivanacostarubio / Profile Rust on Linux.md
Created January 6, 2020 23:06 — forked from KodrAus/Profile Rust on Linux.md
Profiling Rust Applications

Profiling performance

Using perf:

$ perf record -g binary
$ perf script | stackcollapse-perf.pl | rust-unmangle | flamegraph.pl > flame.svg

NOTE: See @GabrielMajeri's comments below about the -g option.