Skip to content

Instantly share code, notes, and snippets.

🌴
On vacation

Oshan Wisumperuma oshanz

🌴
On vacation
Block or report user

Report or block oshanz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@oshanz
oshanz / how to contribute to ruby
Created Jan 20, 2020
how to contribute to ruby
View how to contribute to ruby
* https://kirshatrov.com/2020/01/11/contributing-to-mri/
summary
----
* learn make, autoconf
* docker makes life easy + vscode dev container
Dockerfile
```
FROM ubuntu:latest
# tools you need to build MRI
@oshanz
oshanz / High performance tuning of Nginx
Created Jan 13, 2020 — forked from perusio/gist:2154235
High performance tuning of Nginx
View High performance tuning of Nginx
## From a post on the ML, apropos this:
## http://lowlatencyweb.wordpress.com/2012/03/20/500000-requestssec-modern-http-servers-are-fast.
## For sysctl.conf
net.ipv4.tcp_slow_start_after_idle = 0
echo "2048 64512" > /proc/sys/net/ipv4/ip_local_port_range
echo "1" > /proc/sys/net/ipv4/tcp_tw_recycle
echo "1" > /proc/sys/net/ipv4/tcp_tw_reuse
@oshanz
oshanz / delayed_job@.service
Created Jan 6, 2020 — forked from stevensona/delayed_job@.service
systemd unit file for running ruby/rails delayed_job as service
View delayed_job@.service
# Keep delayed job workers running using systemd on ubuntu
# Usage
# Start "sudo systemctl start delayed_job@{0..3}" to start 4 worker instances
# Enable "sudo systemctl enable delayed_job@{0..3}" to enable 4 worker instances
# Restart "sudo systemctl restart delayed_job@{0..3}" to restart 4 worker instances
# Disable "sudo systemctl disable delayed_job@{0..3}" to disable 4 worker instances
# Stop "sudo systemctl stop delayed_job@{0..3}" to stop 4 worker instances
[Unit]
Description=Delayed Job Worker %i
@oshanz
oshanz / html admin templates
Last active Jan 5, 2020
html admin templates
View html admin templates
elixir
https://github.com/mojotech/torch
https://github.com/smpallen99/ex_admin
rails
https://github.com/thoughtbot/administrate
html
https://github.com/pratikborsadiya/vali-admin
https://github.com/tabler/tabler - small form elements
@oshanz
oshanz / research
Last active Nov 17, 2019
CVD atherosclerosis
View research
# overall
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3459726/
http://www.onlinejacc.org/content/accj/early/2019/03/07/j.jacc.2019.03.010.full.pdf
# plaque
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3209544/
# Inflammation
https://www.nejm.org/doi/full/10.1056/NEJMoa1809798
https://www.nejm.org/doi/full/10.1056/NEJMe1709904
View parallax effect
+ menu
https://themes.gohugo.io/theme/airspace-hugo/
https://themes.gohugo.io//theme/hugo-universal-theme/
https://themes.gohugo.io//theme/hugo-myportfolio-theme/#
+ timeline
https://themes.gohugo.io//theme/agency/#page-top
+ effects
https://themes.gohugo.io/theme/creative/
@oshanz
oshanz / parallel request
Last active Jun 29, 2019
ruby http clients
View parallel request
* lib curl
https://github.com/taf2/curb
https://github.com/toland/patron
https://github.com/typhoeus/typhoeus
*http2
https://github.com/igrigorik/http-2
https://github.com/ostinelli/net-http2
* reviews
@oshanz
oshanz / cluster
Created Jun 28, 2019
Elixir Phoenix deployment
View cluster
https://dockyard.com/blog/2016/01/28/running-elixir-and-phoenix-projects-on-a-cluster-of-nodes
http://engineering.pivotal.io/post/how-to-set-up-an-elixir-cluster-on-amazon-ec2/
https://news.ycombinator.com/item?id=16208809
https://mccalljt.io/blog/2018/08/distributed_phoenix_app/
https://blog.ispirata.com/clustering-elixir-erlang-applications-in-kubernetes-part-1-the-theory-ca658acbf101
https://dev.bleacherreport.com/elixir-phoenix-centralized-http-logging-aa50efe3105b
https://www.poeticoding.com/create-a-high-availability-kubernetes-cluster-on-aws-with-kops/
http://www.akitaonrails.com/2016/12/23/elixir-phoenix-app-deployed-into-a-load-balanced-digitalocean-setup
https://medium.com/polyscribe/a-complete-guide-to-deploying-elixir-phoenix-applications-on-kubernetes-part-5-clustering-6c30fcd35ce1
View Michael Seibel’s questions
Can you answer Michael Seibel’s questions about your startup?
These are questions Michael Seibel mentioned that he likes to ask startups as part of his 2018 “Building Product” Startup School presentation.
Problem
What problem are you solving?
What problem will be solved at the end of what you are doing? What do we expect the result to be?
Can you state the problem clearly in two sentences?
Have you experienced the problem yourself?
@oshanz
oshanz / debug
Last active Jun 20, 2019
Elixir
View debug
https://zorbash.com/post/debugging-elixir-applications/
https://github.com/koudelka/visualixir
http://blog.plataformatec.com.br/2016/04/debugging-techniques-in-elixir-lang/
https://medium.com/@JakeBeckerCode/debugging-elixir-in-vs-code-400e21814614
You can’t perform that action at this time.