Skip to content

Instantly share code, notes, and snippets.


Ayose Cazorla ayosec

View GitHub Profile
andyyou /
Last active Sep 26, 2020
Rails 5.2 with webpacker, bootstrap, stimulus starter

Rails 5.2 with webpacker, bootstrap, stimulus starter

This gist will collects all issues we solved with Rails 5.2 and Webpacker

Create Project

# Last few parameters(--skip-* part) is only my habbit not actully required
$ rails new <project_name> --webpack=stimulus --database=postgresql --skip-coffee --skip-test
View Disable heads up notifications, Android 7
Disable "heads up" notifications in Android 7
$ adb shell settings set global heads_up_notifications_enabled 0
smarr /
Last active Dec 12, 2020
Truffle: Languages and Material
ayosec / cypher.rb
Last active Aug 29, 2015
Launch Cypher queries
View cypher.rb
#!/usr/bin/env ruby
case ARGV.size
when 1
host = ARGV[0]
body =
when 2
host = ARGV[0]
body = ARGV[1]
View httpsrv_timings2.txt
Interconnect: LAN(1GB)
Server: 12 core Xeon E5-2620 at 2Ghz, 16GB RAM
Client running on idle node with similar h/w configuration. Used latest wrk2 release
Tried different configuration options, results for configuration that gave best results
See also:
# Apache2:
Requests/sec: 83704.15
> More or less expected that kind of throughput
View Cargo.toml
name = "map"
version = "0.0.0"
authors = ["Jorge Aparicio <>"]
git = ""
nrc /
Last active Nov 26, 2020
Rust tooling

Rust developer tools - status and strategy

Availability and quality of developer tools are an important factor in the success of a programming language. C/C++ has remained dominant in the systems space in part because of the huge number of tools tailored to these lanaguages. Succesful modern languages have had excellent tool support (Java in particular, Scala, Javascript, etc.). Finally, LLVM has been successful in part because it is much easier to extend than GCC. So far, Rust has done pretty well with developer tools, we have a compiler which produces good quality code in reasonable time, good support for debug symbols which lets us leverage C++/lanaguge agnostic tools such as debuggers, profilers, etc., there are also syntax highlighting, cross-reference, code completion, and documentation tools.

In this document I want to layout what Rust tools exist and where to find them, highlight opportunities for tool developement in the short and long term, and start a discussion about where to focus our time an