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.
#!/bin/bash | |
if [ $# -eq 0 ] | |
then | |
echo "kandan.sh [options] postgres|restart | |
postgres - Automatically install gitlab with postgres on ubuntu | |
elif [ $1 == 'postgres' ]; then | |
echo "Updating Operating System..." |
require 'csv' | |
class SomethingCSV | |
def initialize(io, relation) | |
@target = io | |
@relation = relation | |
@headers = [ "Name", | |
"SomeValue", | |
"AnotherValue" | |
] | |
end |
#!/bin/bash | |
if [ $# -eq 0 ] | |
then | |
echo "wordpress-redis.sh [options] install|mysql | |
install - Automatically installs wordpress without database | |
database - Automatically installs wordpress with mysql" | |
elif [ $1 == 'install' ]; then |
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') |
pt-BR: | |
devise: | |
invitations: | |
send_instructions: 'Um e-mail convite foi enviado para %{email}.' | |
invitation_token_invalid: 'O token convite fornecido não é válido!' | |
updated: 'Sua senha foi definida com sucesso. Você agora está assinado dentro' | |
no_invitations_remaining: 'Nenhum convite restante' | |
invitation_removed: 'Seu convite foi removido.' | |
new: | |
header: 'Enviar convite' |
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 / { |
class Xs # represent a string of 'x's | |
include Comparable | |
attr :length | |
def initialize(n) | |
@length = n | |
end | |
def succ | |
Xs.new(@length + 1) |