Skip to content

Instantly share code, notes, and snippets.

View wintersolutions's full-sized avatar

wintersolutions wintersolutions

View GitHub Profile
@wintersolutions
wintersolutions / gist:377b413424444ec61133
Created December 10, 2014 09:20
Devise 3.1, 3.2 German Translation
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
de:
devise:
confirmations:
confirmed: "Vielen Dank für Ihre Registrierung. Bitte melden Sie sich jetzt an."
confirmed_and_signed_in: "Vielen Dank für Ihre Registrierung. Sie sind jetzt angemeldet."
send_instructions: "Sie erhalten in wenigen Minuten eine E-Mail, mit der Sie Ihre Registrierung bestätigen können."
send_paranoid_instructions: "Falls Ihre E-Mail-Adresse in unserer Datenbank existiert erhalten Sie in wenigen Minuten eine E-Mail mit der Sie Ihre Registrierung bestätigen können."
failure:
GEM
remote: https://rubygems.org/
remote: https://rails-assets.org/
specs:
actionmailer (4.2.7.1)
actionpack (= 4.2.7.1)
actionview (= 4.2.7.1)
activejob (= 4.2.7.1)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 1.0, >= 1.0.5)
GEM
remote: https://rubygems.org/
remote: https://rails-assets.org/
specs:
actionmailer (4.2.7.1)
actionpack (= 4.2.7.1)
actionview (= 4.2.7.1)
activejob (= 4.2.7.1)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 1.0, >= 1.0.5)
# FIXME: find cause for error (circular dependency?), use: ab -c 50 -n 500 http://localhost:3000/ for burn in
if Rails.env.development?
require 'active_support/core_ext/module/attribute_accessors'
require 'active_support/logger_silence'
require 'active_support/logger_thread_safe_level'
require 'logger'
module ActiveSupport
class Logger < ::Logger
class TrailblazerFoo::Create < Trailblazer::Operation
extend Contract::DSL
contract TrailblazerFoo::Contract::Create
step :log_params
step Model(TrailblazerFoo, :new)
step Contract::Build()
# TODO: actually get properties set on model
step Contract::Validate()
# Resume rufus-scheduler (v3.6) jobs once after pause/resume:
def self.scheduler
Rufus::Scheduler.singleton
end
def self.resume
scheduler.resume # to change the paused? status
scheduler.jobs.each do |job|
paused_duration = EtOrbi.now - job.paused_at
[sshd]
enabled = true
maxretry = 3
findtime = 1d
bantime = 8w
ignoreip = 127.0.0.1/8
[Unit]
Description=Dynamic IP for HOST
[Service]
Type=oneshot
ExecStart=/root/config/ddnss.sh
[Unit]
Description=Dynamic IP for HOST timer
[Timer]
OnBootSec=1min
OnUnitActiveSec=6h
[Install]
WantedBy=timers.target
config:
limits.cpu: "2"
limits.memory: 3500MB
limits.memory.swap: "false"
linux.kernel_modules: ip_tables,ip6_tables,nf_nat,overlay,br_netfilter
raw.lxc: "lxc.apparmor.profile=unconfined\nlxc.cap.drop= \nlxc.cgroup.devices.allow=a\nlxc.mount.auto=proc:rw
sys:rw"
security.privileged: "true"
security.nesting: "true"
description: LXD profile for Kubernetes