Skip to content

Instantly share code, notes, and snippets.

@diegosteiner
diegosteiner / cloud-init.yml
Created March 4, 2021 19:11
cloud init with docker
#cloud-config
package_update: true
package_upgrade: true
package_reboot_if_required: true
packages:
- apt-transport-https
- ca-certificates
- curl
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:camt="urn:iso:std:iso:20022:tech:xsd:camt.054.001.04"
exclude-result-prefixes="camt">
<xsl:output method="text" encoding="iso-8859-1"/>
<xsl:strip-space elements="*" />
<xsl:param name="delim" select="','" />
# in config/initializers/abstract_mysql_adapter.rb
class ActiveRecord::ConnectionAdapters::Mysql2Adapter
NATIVE_DATABASE_TYPES[:primary_key] = "int(11) auto_increment PRIMARY KEY"
end
CarrierWave.configure do |config|
config.fog_credentials = {
provider: 'AWS',
aws_access_key_id: ENV['AWS_ACCESS_KEY_ID'],
aws_secret_access_key: ENV['AWS_SECRET_ACCESS_KEY'],
region: 'eu-west-1'
# host: 's3.example.com',
# endpoint: 'https://s3.example.com:8080'
}
config.fog_directory = 'homes/attachments/'
# For details on connection pooling, see rails configuration guide
# http://guides.rubyonrails.org/configuring.html#database-pooling
# Set DATABASE_URL in application.yml
# * for mysql use "mysql2://username:password@host:port/database_name"
# * for postgres use "postgres://username:password@host:port/database_name"
# * for sqlite use "sqlite://db/database_name.sqlite3?timeout=5000"
default: &default
adapter: postgresql
encoding: unicode

Keybase proof

I hereby claim:

  • I am diegosteiner on github.
  • I am diegosteiner (https://keybase.io/diegosteiner) on keybase.
  • I have a public key whose fingerprint is B76F 5C88 E210 62EB 4580 7FB3 ADA4 31B0 8F01 5C85

To claim this, I am signing this object:

" Settings
set nohud
" set nosmoothscroll
" set noautofocus "The opposite of autofocus; this setting stops sites from focusing on an input box when they load
set typelinkhints
set cncpcompletion
let searchlimit = 30
let scrollstep = 70
let barposition = "bottom"