sudo apt-get update
sudo apt-get install -y libssl1.0.0 openssl
openssl version -a
and confirm the "built on" date is >= 2014-04-07sudo lsof -n | grep ssl | grep DEL
and restart all listed services.
Repeat #4 until no results are returned.
<?php | |
echo 'This has been customized!!!'; | |
// Perform post-install customizations | |
if ( function_exists( 'add_action' ) ){ | |
add_action( 'wp_mail_content_type' , customize_install ); | |
function customize_install(){ | |
// Switch themes | |
switch_theme('twentytwelve'); |
ENV["RAILS_ENV"] ||= 'test' | |
require File.expand_path("../../config/environment", __FILE__) | |
require 'rspec/rails' | |
require 'rspec/autorun' | |
require 'capybara/rspec' | |
require 'webmock/rspec' | |
require 'factory_girl' | |
require 'factory_girl_rails' | |
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f} |
=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') |
Configure local wildcard DNS server
sudo apt-get install dnsmasq
/etc/NetworkManager/NetworkManager.conf
and comment out (#
) the line that reads dns=dnsmasq
. Restart NetworkManager afterwards: sudo restart network-manager
./etc/dnsmasq.conf
, and adding the line listen-address=127.0.0.1
./etc/dnsmasq.d
(eg. /etc/dnsmasq.d/dev
), and add the line address=/dev/127.0.0.1
to have dnsmasq resolve requests for *.dev domains. Restart Dnsmasq: sudo /etc/init.d/dnsmasq restart
.source: http://brunodbo.be/blog/2013/04/setting-up-wildcard-apache-virtual-host-wildcard-dns
# The blog post that started it all: https://neocities.org/blog/the-fcc-is-now-rate-limited | |
# | |
# Current known FCC address ranges: | |
# https://news.ycombinator.com/item?id=7716915 | |
# | |
# Confirm/locate FCC IP ranges with this: http://whois.arin.net/rest/net/NET-165-135-0-0-1/pft | |
# | |
# In your nginx.conf: | |
location / { |
module Search | |
class Indexer | |
include Sidekiq::Worker | |
sidekiq_options queue: :low, retry: false, backtrace: true | |
LOGGER = Sidekiq.logger.level == Logger::DEBUG ? Sidekiq.logger : nil | |
SEARCH_POOL = ConnectionPool.new(size: SEARCH_UPDATE_POOL, timeout: 5) do | |
Elasticsearch::Client.new host: ELASTICSEARCH_URL, logger: LOGGER | |
end |