Skip to content

Instantly share code, notes, and snippets.

@mrancys
mrancys / dashing_zabbix_trigger.md
Last active September 17, 2015 18:12 — forked from chojayr/dashing_zabbix_trigger.md
Dashboard(Dashing) Zabbix Triggers

Dashing dashboard for zabbix trigger

zabbix trigger zabbix trigger

This will provide the total number of alerts on triggers status

  • flash when there's an alert/triggers (color based on the zabbix trigger color format)
  • trigger = Warning, Average, High & Disaster
  • unacknowledge triggers
@mrancys
mrancys / routes.md
Created July 11, 2017 10:23 — forked from dideler/routes.md
Rails Routes

A summary of the Rails Guides on Routes, plus other tips.

The Rails router recognizes URLs and dispatches them to a controller's action. It can also generate paths and URLs, avoiding the need to hardcode strings in your views.

Examples

# Redirects /orders/report to orders#report.
get 'orders/report', to: 'orders#report'
@mrancys
mrancys / nginx_rails_sendfile.md
Created April 3, 2018 12:14 — forked from rally25rs/nginx_rails_sendfile.md
nginx rails send_file madness

Goal: Have some static content, served by Nginx, but it requires an authenticated user. User auth is through Rails.

Project structure: The actual static files are in /home/vagrant/docs/ The browser will use the URL /help/* to access this content

The Ruby bits: RAILS_ENV=production rails server is used to start a WEBrick on port 3000.

config/environments/production.rb

@mrancys
mrancys / nginx_rails_sendfile.md
Created April 3, 2018 12:14 — forked from rally25rs/nginx_rails_sendfile.md
nginx rails send_file madness

Goal: Have some static content, served by Nginx, but it requires an authenticated user. User auth is through Rails.

Project structure: The actual static files are in /home/vagrant/docs/ The browser will use the URL /help/* to access this content

The Ruby bits: RAILS_ENV=production rails server is used to start a WEBrick on port 3000.

config/environments/production.rb