Skip to content

Instantly share code, notes, and snippets.

View ivanacostarubio's full-sized avatar
💭
⚡️

Ivan ivanacostarubio

💭
⚡️
View GitHub Profile
@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.

@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 / dates.txt
Created June 13, 2018 22:09
Dates for Bitcoin's Meyer multiple under 0.61
#
# More information about the multiple:
# (*) https://www.theinvestorspodcast.com/bitcoin-mayer-multiple/
# (*) http://www.bitcoin.kn/
#
2009-01-04
2009-01-05
2009-01-06
2009-01-07
lnd: 2018-01-14 12:17:06.635 [WRN] LTND: open ../lnd.conf: no such file or directory 2018-01-14 12:17:06.636 [INF] LTND: Version 0.3.0-alpha
lnd: 2018-01-14 12:17:06.636 [INF] CHDB: Checking for schema update: latest_version=0, db_version=0
lnd: 2018-01-14 12:17:06.638 [INF] LTND: Primary chain is set to: bitcoin
lnd: 2018-01-14 12:17:06.658 [INF] BTCN: Loaded 1053 addresses from file '/Users/ivan/Library/Application Support/Lnd/data/testnet3/bitcoin/peers.json'
lnd: 2018-01-14 12:17:06.667 [INF] CMGR: DNS discovery failed on seed x49.seed.tbtc.petertodd.org: lookup x49.seed.tbtc.petertodd.org: no such host 2018-01-14 12:17:06.667 [INF] CMGR: DNS discovery failed on seed x49.testnet-seed.bitcoin.jonasschnelli.ch: lookup x49.testnet-seed.bitcoin.jonasschnelli.ch: no such host
lnd: 2018-01-14 12:17:06.757 [INF] CMGR: 3 addresses found from DNS seed testnet-seed.bluematt.me
lnd: 2018-01-14 12:17:06.903 [INF] BTCN: New valid peer 165.227.7.29:18333 (outbound) (/btcwire:0.5.0/btcd:0.12.0/) 2018-01-14 12:17:06.903
OCAMLOPT (node.cmxa) RPC_server.cmx
findlib: [WARNING] Interface topdirs.cmi occurs in several directories: /home/vagrant/.opam/tezos/lib/ocaml/compiler-libs, /home/vagrant/.opam/tezos/lib/ocaml
OCAMLOPT (node.cmxa) fitness.cmx
findlib: [WARNING] Interface topdirs.cmi occurs in several directories: /home/vagrant/.opam/tezos/lib/ocaml/compiler-libs, /home/vagrant/.opam/tezos/lib/ocaml
OCAMLOPT (node.cmxa) raw_store.cmi
findlib: [WARNING] Interface topdirs.cmi occurs in several directories: /home/vagrant/.opam/tezos/lib/ocaml/compiler-libs, /home/vagrant/.opam/tezos/lib/ocaml
File "node/db/raw_store.mli", line 10, characters 5-15:
Error: Unbound module Store_sigs
Makefile:309: recipe for target 'node/db/raw_store.cmi' failed
make[1]: *** [node/db/raw_store.cmi] Error 2
### stderr ###
# [...]
# Warning 3: deprecated: [@@noalloc] should be used instead of "noalloc"
# /usr/lib/gcc/x86_64-alpine-linux-musl/5.3.0/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lsnappy
# /usr/lib/gcc/x86_64-alpine-linux-musl/5.3.0/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lsnappy
# collect2: error: ld returned 1 exit status
# *** omake: targets were not rebuilt because of errors:
# src/dllcamlleveldb.so
# src/leveldb.a
# src/leveldb.cma
==> default: =-=- lwt.3.0.0 installed successfully -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
==> default: => Lwt 3.0.0 made some minor breaking changes, announced in 2.7.0. See
==> default: https://github.com/ocsigen/lwt/issues/308
==> default:
==> default: =-=- conf-leveldb.1 troobleshooting -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
==> default: => This package relies on external (system) dependencies that may be missing.
==> default: `opam depext conf-leveldb.1' may help you find the correct installation for
==> default: your system.
==> default:
==> default: The former state can be restored with:
#!/bin/bash
cat /path/to/public_key | ssh root@yourdokkuinstance "sudo sshcommand acl-add dokku [description]"
Our whole team is following [this course](http://courses.knowthen.com/courses/elm-for-beginners) on ELM and
we've been holding weekly Google Hangouts sessions to go over the material. If you want to follow along and join some of the sessions, follow us on [Twitter](https://twitter.com/softcriollo).
<iframe width="560" height="315" src="https://www.youtube.com/embed/FWXFbp0yH7o" frameborder="0" allowfullscreen></iframe>
We are talking in Spanish so be aware 🇻🇪
sample
sample edit
3rd revision