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
class AvatarUploader < CarrierWave::Uploader::Base | |
include CarrierWave::MiniMagick | |
def extension_white_list | |
model.skip_avatar_extension_check ? nil : %w(jpg jpeg gif png bmp) | |
end | |
end |
apt-get -y install pptpd dnsmasq | |
Add/uncomment the following line in /etc/sysctl.conf: | |
net.ipv4.ip_forward=1 | |
Commit the changes by running as root: | |
sysctl -p |
# put this in config/initializers/carrierwave.rb | |
module CarrierWave | |
module MiniMagick | |
def quality(percentage) | |
manipulate! do |img| | |
img.quality(percentage) | |
img = yield(img) if block_given? | |
img | |
end | |
end |
<?php | |
class MY_Exceptions extends CI_Exceptions { | |
function My_Exceptions() | |
{ | |
parent::CI_Exceptions(); | |
} | |
function show_error($heading, $message, $template = 'error_general', $status_code = 500) | |
{ |
cat config/deploy/k8s/*.yml | envsubst | kubectl apply -f - | |
cat config/deploy/k8s/*.yml | envsubst | kubectl wait --for condition=available -f - --timeout 120s |
default[:tbb][:version] = '4.2-20140122oss' | |
default[:tbb][:url] = 'https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb42_20140122oss_src.tgz' | |
default[:tbb][:sha] = 'f1bd8d983f93a10e340ba63f3a479632ddca1562a5242814dd82a378d3233b75' |
en: | |
active_admin: | |
filters: | |
predicates: | |
not_eq: "Not equals" |
add_line = "config statement" | |
bash "add_to_config" do | |
code <<-EOH | |
grep '#{add_line}' /etc/config || echo '#{add_line}' >> /etc/config | |
EOH | |
end |
Feature: Search | |
Scenario: Search for "apple" | |
Given I am on the front page | |
When I search for "apple" | |
Then I should see "apple.com" |