Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!
openssl genrsa -des3 -out rootCA.key 4096
#!/usr/bin/env bash | |
# Set the Mullvad account number. | |
ACCOUNT_NUMBER="1234" | |
# For the home network, make sure the external IP is set here | |
# to prevent local traffic from going through the VPN. | |
HOME_IP="" | |
# Load the config download page to get CSRF tokens. |
require 'google/apis/analyticsreporting_v4' | |
require 'googleauth' | |
include Google::Apis::AnalyticsreportingV4 | |
include Google::Auth | |
VIEW_ID = "12345678" #your profile ID from your Analytics Profile | |
SCOPE = 'https://www.googleapis.com/auth/analytics.readonly' | |
@client = AnalyticsReportingService.new |
class AddUserNameForAuthenticationToUsers < ActiveRecord::Migration | |
def up | |
add_column :users, :username, :string, null: false, default: "" | |
add_index :users, :username, unique: true | |
add_column :users, :encrypted_email, :string | |
remove_column :users, :email, :string | |
add_index :users, :encrypted_email | |
end | |
def down | |
remove_column :users, :username |
# Make sure you have the fakes3 gem installed | |
group :test do | |
gem 'fakes3' | |
end |
--- | |
- name: Add Percona apt signing key | |
sudo: yes | |
apt_key: keyserver=keys.gnupg.net id=1C4CBDCDCD2EFD2A state=present | |
- name: Add Percona repository | |
sudo: yes | |
apt_repository: repo='deb http://repo.percona.com/apt trusty main' state=present | |
- name: Add Percona source repository |
#!/bin/bash | |
### USAGE | |
### | |
### ./ElasticSearch.sh 1.7 will install Elasticsearch 1.7 | |
### ./ElasticSearch.sh will fail because no version was specified (exit code 1) | |
### | |
### CLI options Contributed by @janpieper | |
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch |
namespace :load do | |
task :defaults do | |
set :puma_init_name, "#{fetch(:application)}-web" | |
set :puma_pid_path, "#{shared_path}/tmp/pids/puma.pid" | |
end | |
end | |
namespace :puma do | |
desc "Start puma workers" | |
task :start do |
# A Rake tasks to facilitate importing data from your models into a common Elasticsearch index. | |
# | |
# All models should declare a common index_name, and a document_type: | |
# | |
# class Article | |
# include Elasticsearch::Model | |
# | |
# index_name 'app_scoped_index' | |
# document_type 'articles' | |
# |