Skip to content

Instantly share code, notes, and snippets.

Avatar

Ayose Cazorla ayosec

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

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
smarr / truffle-material.md
Last active Dec 12, 2020
Truffle: Languages and Material
View truffle-material.md
@ayosec
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 = STDIN.read
when 2
host = ARGV[0]
body = ARGV[1]
else
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
https://github.com/giltene/wrk2
Tried different configuration options, results for configuration that gave best results
See also: https://gist.github.com/markpapadakis/dee39f95a404edfb8d6c
# Apache2: http://10.5.5.20/index.html
Requests/sec: 83704.15
> More or less expected that kind of throughput
View Cargo.toml
[package]
name = "map"
version = "0.0.0"
authors = ["Jorge Aparicio <japaricious@gmail.com>"]
[dependencies.criterion]
git = "https://github.com/japaric/criterion.rs"
@nrc
nrc / tools.md
Last active Nov 26, 2020
Rust tooling
View tools.md

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