Skip to content

Instantly share code, notes, and snippets.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
With this I cerify that my new key is:
keyid: 0x933D3F43BE623023
fingerprint: 24AE E88F 1232 CF05 4715 3AF5 933D 3F43 BE62 3023
Current key:

Keybase proof

I hereby claim:

  • I am kron4eg on github.
  • I am kron4eg (https://keybase.io/kron4eg) on keybase.
  • I have a public key ASAabSumBXxfftWsg81OGPbt9-FJrI4thySxnsoZqAylNgo

To claim this, I am signing this object:

---
apiVersion: v1
kind: Namespace
metadata:
name: rook-system
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
@kron4eg
kron4eg / Makefile
Created August 23, 2017 13:23
boilerplate golang Makefile
GOPATH?=$(shell go env GOPATH)
export PATH := $(GOPATH)/bin:$(PATH)
NOW := $(shell date -u +%Y-%m-%dT%H:%MZ)
GITCOMMIT?=$(shell git describe --always)
VERSION?=$(NOW)-$(GITCOMMIT)-dev
PKG_LIST = $(shell go list ./... | grep -v /vendor/)
all: install
package main
import (
"fmt"
"plugin"
"plugs/shared"
)
func main() {
package main
import "fmt"
type Person struct {
Name string
}
func main() {
p := Person{"Ijonas Kisselbach"}
ENV['hosts'] = ['host1', 'host2', {:web => 'host3'}, {:app => 'host4'}]
def deploy
# will run on every host defined in ENV['hosts'], despite if it is in role
method_which_will_run_on_every_defined_host
run_once { run_tests }
web_role
app_role
end
#rake "db:create", :env => 'development'
#rake "db:create", :env => 'test'
gem "rspec-rails", :env => "test", :version => "1.3.2"
gem "erubis", :version => "2.6.5"
gem "clearance", :version => "0.8.8"
gem "configatron", :version => "2.6.3"
gem "right-rails", :version => "0.6.0"
gem "simple_form", :version => "1.2.0"
namespace :translations do
desc "Show available locales"
task :available => :environment do
puts "Available locales: #{I18n.available_locales.join(', ')}"
end
desc "Show missed translations depending on default language environment (:#{I18n.default_locale} by default). You can change it providing LOCALE argument"
task :missed => :environment do
locale = ENV['LOCALE'] || I18n.default_locale
puts "Using :#{locale} as default locale"
@kron4eg
kron4eg / gist:187978
Created September 16, 2009 10:11 — forked from therobot/gist:102770
before "deploy:rollback:revision", "deploy:rollback_database"
desc "Rolls back database to migration level of the previously deployed release"
task :rollback_database, :roles => :db, :only => { :primary => true } do
if releases.length < 2
abort "could not rollback the code because there is no prior release"
else
rake = fetch(:rake, "rake")
rails_env = fetch(:rails_env, "production")
migrate_env = fetch(:migrate_env, "")