This is a short description of your app.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BasePolicy < Canner::Policy | |
def fetch_roles | |
@current_user.roles | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'net/https' | |
url = "https://www.google.com" | |
uri = URI.parse(url) | |
http = Net::HTTP.new(uri.host, uri.port) | |
http.use_ssl = true | |
http.verify_mode = OpenSSL::SSL::VERIFY_PEER | |
http.start { |h| @cert = h.peer_cert } | |
@cert | |
@cert.not_after |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
postgresql::globals::version: "9.4" | |
postgresql::globals::client_package_name: "postgresql-client-9.4=9.4.0-1.pgdg12.4+1" | |
postgresql::server::package_ensure: "9.4.0-1.pgdg12.4+1" | |
postgresql::major_version: &pg_major_version 9.4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.youtube.com/watch?v=ptZHBePX0oI&variant=MP4_1080 | |
http://www.youtube.com/watch?v=7l_fDU86pr4&variant=MP4_1080 | |
http://www.youtube.com/watch?v=d5G3P2iosmA&variant=MP4_1080 | |
http://www.youtube.com/watch?v=5LRDICEETRE&variant=MP4_1080 | |
http://www.youtube.com/watch?v=3jMbzGv_6tA&variant=MP4_1080 | |
http://www.youtube.com/watch?v=zNNGTiTArJw&variant=MP4_1080 | |
http://www.youtube.com/watch?v=hxNalzuBbSw&variant=MP4_1080 | |
http://www.youtube.com/watch?v=R_8ehmGTVbw&variant=MP4_1080 | |
http://www.youtube.com/watch?v=XbD1Emhm31w&variant=MP4_1080 | |
http://www.youtube.com/watch?v=VAa7YnZo0hU&variant=MP4_1080 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for app in /var/repos/*; do if [ -f $app/Capfile ]; then cd $app; bundle; bundle exec cap deploy:cleanup -s keep_releases=2; fi; done; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
username = ARGV[0] | |
pwd = ARGV[1] | |
target_path = ARGV[2] | |
unless ARGV.size == 3 | |
puts "usage: ruby download_rubytapas.rb username password save_path" | |
exit(1) | |
end | |
target_path = File.expand_path(target_path) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set env vars for AWS_* when launching - this config will refer to them. | |
# To specify prod flavor, set the environment variable SETTINGS_FLAVOR=prod | |
# example launching with this config, in a docker image: | |
# docker run -p 5000:5000 -e SETTINGS_FLAVOR=prod -e AWS_KEY=X -e AWS_SECRET=Y -e AWS_BUCKET=images registry-image | |
common: | |
boto_bucket: _env:AWS_BUCKET | |
s3_access_key: _env:AWS_KEY | |
s3_secret_key: _env:AWS_SECRET |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for cert in `find /etc/ssl/certs | grep crt | sort`; do basename $cert; openssl x509 -noout -in $cert; openssl x509 -noout -in $cert -dates ; echo ''; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# docker cleanup | |
docker ps -a | grep Exit | awk '{ print $1 }' | xargs docker rm | |
docker images | grep none | awk '{ print $3 }' | xargs docker rmi |