Skip to content

Instantly share code, notes, and snippets.

@unnitallman
unnitallman / neetoauth-checklist.md
Last active October 10, 2021 18:57 — forked from ghousemohamed/neetoauth-checklist.md
neetoAuth checklist for a neeto client application
  • Integrate neeto_sso gem
  • Drop organization_neeto_applications table from client application and remove associated test cases and references throughout the application
  • Verify organization enabling/disabling API is working for client application
  • Verify that favicon when updated in neetoAuth is being updated and in use in the client application as well
  • Verify if the user name and profile image urls when updated in neetoAuth is being updated and in use in the client application as well
  • Verify if User activation/deactivation is being handled properly, i.e. A concern which blocks access
  • Verify User Invitation API
  • Make sure profile settings page and organization settings page open correctly. (neetoForm has done this correctly)
@unnitallman
unnitallman / s3.markdown
Created June 26, 2018 05:15 — forked from greenantdotcom/s3.markdown
Setting public read-only ACL for uploaded files

Alternatively, in the Amazon interface, you can select a directory or file, and click on the action "Mark as public"

@unnitallman
unnitallman / assets.rake
Created February 8, 2017 06:28 — forked from Geesu/assets.rake
Disable asset precompilation on heroku
Rake::Task["assets:precompile"].clear
namespace :assets do
task 'precompile' do
puts "Not pre-compiling assets..."
end
end
@unnitallman
unnitallman / README.md
Created March 12, 2015 06:03 — forked from oodavid/README.md
Mysql to S3 backup

Backup MySQL to Amazon S3

This is a simple way to backup your MySQL tables to Amazon S3 for a nightly backup - this is all to be done on your server :-)

Sister Document - Restore MySQL from Amazon S3 - read that next

1 - Install s3cmd

this is for Centos 5.6, see http://s3tools.org/repositories for other systems like ubuntu etc

# see http://stackoverflow.com/questions/5880962/how-to-destroy-jobs-enqueued-by-resque-workers - old version
# see https://github.com/defunkt/resque/issues/49
# see http://redis.io/commands - new commands
namespace :resque do
desc "Clear pending tasks"
task :clear => :environment do
queues = Resque.queues
queues.each do |queue_name|
puts "Clearing #{queue_name}..."
@unnitallman
unnitallman / capybara cheat sheet
Last active December 17, 2015 11:29 — forked from zhengjia/capybara cheat sheet
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
@unnitallman
unnitallman / connection_fix.rb
Created September 3, 2011 09:13 — forked from defunkt/connection_fix.rb
MySQL server has gone away fix
# If your workers are inactive for a long period of time, they'll lose
# their MySQL connection.
#
# This hack ensures we re-connect whenever a connection is
# lost. Because, really. why not?
#
# Stick this in RAILS_ROOT/config/initializers/connection_fix.rb (or somewhere similar)
#
# From:
# http://coderrr.wordpress.com/2009/01/08/activerecord-threading-issues-and-resolutions/