- Cloud Vendor Based NoOps
- Detect text in images
- Detect handwriting in images
- Detect text in files
- Detect faces in images
- Detect multiple objects in images
Detect web references to an imageN/A
# run with | |
# chef-apply chef-rundeck.rb | |
require 'chef' | |
require 'chef/node' | |
require 'chef/mixin/xml_escape' | |
require 'chef/rest' | |
require 'chef/role' | |
require 'chef/environment' | |
require 'chef/data_bag' |
ActiveAdmin.register Coupon do | |
menu label: proc { current_user.admin? ? 'Coupons' : 'My coupons' } | |
actions :all, except: [:destroy] | |
permit_params :name, :coupon_type, :picture, :note, :for_deleting, :business_owner_id | |
# ===== scopes ===== | |
scope_to :current_user, if: proc { current_user.business_owner? } | |
scope :all, default: true do |coupons| | |
coupons | |
end |
require 'sinatra' | |
set :bind, '0.0.0.0' | |
set :port, 8080 | |
post '/event' do | |
status 204 #successful request with no body content | |
request.body.rewind |
require 'azure_mgmt_compute' | |
require 'azure_mgmt_resources' | |
require 'azure_mgmt_storage' | |
require 'azure' | |
include Azure | |
include Azure::ARM::Compute | |
include Azure::ARM::Compute::Models | |
include Azure::ARM::Resources |
# Install Azure CLI | |
brew update | |
brew install azure-cli | |
# Authenticate cli client | |
az login | |
# Register providers | |
az provider register -n Microsoft.ContainerService | |
az provider register -n Microsoft.Compute |
www_dir = '/var/www' | |
domain = 'nomimono.domain.com' | |
sajts = ['sajt99','sajt98','sajt97'] | |
sajts.each do |sajt| | |
directory www_dir do | |
owner 'www-data' | |
group 'www-data' | |
mode '0755' | |
action :create |