Skip to content

Instantly share code, notes, and snippets.

# 3 hardware gauges
https://developers.google.com/chart/interactive/docs/gallery/gauge
http://snapsvg.io/demos/
https://colorlib.com/polygon/concept/index.html / https://github.com/puikinsh/concept
https://github.com/puikinsh/srtdash-admin-dashboard
http://svg-scada.com/
# frozen_string_literal: true
require 'plugin_name/version'
require 'fileutils'
module plugin_name
class Error < StandardError; end
# Your code goes here...
Jekyll::Hooks.register :site, :after_init do |_jekyll|
#
# daily ingestion of the Web Service data from Keito
15 12 * * * cd /var/www/ETL && /var/www/ETL/web_service_ingest.sh >> /var/www/ETL/LOG/cron.log 2>&1
#
# daily csv export of the data
30 4 * * * /bin/bash -l -c 'cd /var/www/keito_app/current && RACK_ENV=production bundle exec rake db:registrations:export --silent'
35 4 * * * /bin/bash -l -c 'cd /var/www/keito_app/current && RACK_ENV=production bundle exec rake db:measurements:export --silent'
export GEM_HOME=~/.gem/ruby/2.5.1
# export PATH=~/.gem/ruby/2.5.1/bin:$PATH
export PATH=$PATH:/usr/local/ruby-2.5.1/bin:/home/do-user/.gem/ruby/2.5.1/bin
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
require './user_app'
Dir["#{File.dirname(__FILE__)}/lib/tasks/**/*.rake"].sort.each { |ext| load ext }
begin
require 'vlad'
require 'bundler/vlad'
Vlad.load(:scm => :git, :web => nil, :app => nil)
rescue LoadError
# do nothing
end
https://github.com/benjifisher/drupal-dev-vm/wiki/Cheatsheet
https://www.mediacurrent.com/blog/debug-drupal-php-vim-vdebug/
https://github.com/vim-vdebug/vdebug
.
./bundle
./bundle/syntastic
./bundle/syntastic/_assets
./bundle/syntastic/syntax_checkers
./bundle/syntastic/syntax_checkers/ocaml
./bundle/syntastic/syntax_checkers/ada
./bundle/syntastic/syntax_checkers/pod
./bundle/syntastic/syntax_checkers/vim
./bundle/syntastic/syntax_checkers/bro
" this vimrc was originally pilfered from here:
" https://raw.github.com/scrooloose/vimfiles/master/vimrc
"
"Use Vim settings, rather then Vi settings (much better!).
"This must be first, because it changes other options as a side effect.
set nocompatible
"activate pathogen
"call pathogen#infect()
# frozen_string_literal: true
source "https://rubygems.org"
gem 'sinatra', '~> 2.0', '>= 2.0.3'
gem 'sequel', '~> 4.36'
gem 'mysql2', '~> 0.5.1'
gem 'puma', '~> 3.11', '>= 3.11.4'
gem 'foreman', '~> 0.84.0'
gem 'rake', '~> 10.5'
gem 'bcrypt', '~> 3.1.12'