For excessively paranoid client authentication.
Original: https://gist.github.com/mtigas/952344
openssl x509 -in server.crt -out server.der -outform DER
openssl x509 -in server.der -inform DER -out server.pem -outform PEM
For excessively paranoid client authentication.
Original: https://gist.github.com/mtigas/952344
openssl x509 -in server.crt -out server.der -outform DER
openssl x509 -in server.der -inform DER -out server.pem -outform PEM
To enable the precompilation of all non.js/.css assets within vendor/assets just add this to config/initializers/assets.rb:
Rails.application.config.assets.precompile << Proc.new { |path, fn| fn =~ /vendor\/assets/ && !%w(.js .css).include?(File.extname(path)) }Be aware that this will precompile ALL non .js/.css assets that you have there, some plugins or libraries might have .txt or other files around, and those would end up into your precompiled list also.
If you need to precompile images only, you could use this:
Rails.application.config.assets.precompile += %w(*.png *.jpg *.jpeg *.gif)| # Link Referência | |
| https://www.vivaolinux.com.br/topico/Acesso-remoto-OpenSSH-SSH-VNC-RDP-Telnet-TeamViewer-etc./Permission-denied-apenas-com-conexao-root-via-ssh | |
| Para habilitar o acesso ssh root: | |
| Edite o arquivo | |
| pico /etc/ssh/sshd_config |
| docker run -d \ | |
| --name=mongodb \ | |
| --restart=always \ | |
| -p 27017:27017 \ | |
| -v /etc/localtime:/etc/localtime:ro \ | |
| -v /storage/mongodb:/data/db \ | |
| mongo:latest | |
| # Link |
| Metrics/LineLength: | |
| Max: 140 | |
| Style/SymbolArray: | |
| EnforcedStyle: brackets | |
| Style/Documentation: | |
| Enabled: no | |
| Style/NonNilCheck: | |
| Enabled: no |
| # References | |
| https://www.digitalocean.com/community/tutorials/how-to-securely-configure-a-production-mongodb-server | |
| docker run -d \ | |
| --name=mongodb \ | |
| --restart=always \ | |
| -p 27017:27017 \ | |
| -v /etc/localtime:/etc/localtime:ro \ | |
| -v /mystorage/mongodb/db:/data/db \ |
| sudo chmod a+rw /dev/ttyACM0 | |
| sudo chmod a+rw /dev/ttyUSB0 |
| #! /usr/bin/env ruby | |
| require 'nokogiri' | |
| require 'open-uri' | |
| # Fetch and parse HTML document | |
| doc = Nokogiri::HTML(open('https://lista.mercadolivre.com.br/power-bank')) | |
| itens = [] |
| # Instalando o certificado nas maquinas | |
| mkdir -p /etc/docker/certs.d/dockerhub.site.com | |
| cd /etc/docker/certs.d/dockerhub.site.com | |
| wget http://s3.site.com/certificados/dockerhub.site.com.crt | |
| docker login dockerhub.site.com | |
| # Login: login Senha: senha123456 |
| server { | |
| listen 80; | |
| server_name s3.exemplo.com; | |
| client_max_body_size 20000M; | |
| location / { | |
| proxy_buffering off; | |
| proxy_set_header Host $http_host; |