# Anchor
click_link 'Save'
# Button
click_button 'awesome'
# Both above
Web fonts are pretty much all the rage. Using a CDN for font libraries, like TypeKit or Google Fonts, will be a great solution for many projects. For others, this is not an option. Especially when you are creating a custom icon library for your project.
Rails and the asset pipeline are great tools, but Rails has yet to get caught up in the custom web font craze.
As with all things Rails, there is more then one way to skin this cat. There is the recommended way, and then there are the other ways.
Here I will show how to update your Rails project so that you can use the asset pipeline appropriately and resource your files using the common Rails convention.
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com
, example2.com
, and example1.com/images
on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers
# Set up a development environment on an Ubuntu flavored linux distribution | |
# install and sets up: | |
# rbenv, nvm, mysql, postgres, redis | |
# vscode, slack, docker, chormium, tilix, heroku, postman, beekeeper, skype, kazam, peek and more | |
# setup an rsa key | |
# Usage: | |
# install ansible 2.7+ - latest | |
## sudo apt-add-repository ppa:ansible/ansible && sudo apt update && sudo apt install ansible | |
# run the playbook: | |
## ansible-playbook webdev.yaml -K -e "email=<[email protected]>" |
queue = Sidekiq::Queue.new("practice_fusion") | |
queue.each do |job| | |
job.delete if job.klass == 'PracticeFusionWorkers::PatientDocumentsSyncer' | |
end | |
# Way 2 | |
ss = Sidekiq::ScheduledSet.new | |
jobs = ss.select {|job| job.klass == 'PracticeFusionWorkers::PatientDocumentsSyncer' } | |
jobs.each(&:delete) |
-- First opthimize the table where you want to claim space | |
opthimize table <table-name>; | |
-- Delete logs except latest log file | |
show binary logs; | |
PURGE BINARY LOGS TO 'mysql-bin.006920'; |