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 'spec_helper' | |
| describe App do | |
| describe "when using the factory" do | |
| subject { create :app } | |
| it { should be_valid } | |
| 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
| # I've been meaning to send this too you... Remember the #draw method you pulled out of edge rails, well after using it in a personal | |
| # project (which by the way is awesome, totally digging it) I decided that I wanted to include more files in the one method, to reduce | |
| # the amount of times I wrote draw :something, so I modified it a little and thought you'd appreciate it... Cheers! | |
| # In lib/mapper.rb | |
| module ActionDispatch | |
| module Routing | |
| module Mapper | |
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
| # config/environments/{test,development,production}.rb | |
| config.stripe_key = "foobar" | |
| Rails.configuration.stripe_key | |
| # Controller | |
| Purchase.charge("tok_jOq0M8vJprCUUU") | |
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
| # lib/media_library/models/has_profile.rb | |
| module MediaLibrary | |
| module Models | |
| module HasProfile | |
| extend ActiveSupport::Concern | |
| # Define methods that get called on classes | |
| # that include file | |
| module ClassMethods | |
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
| apiVersion: v1 | |
| kind: ReplicationController | |
| metadata: | |
| name: kube-registry-v0 | |
| namespace: kube-system | |
| labels: | |
| k8s-app: kube-registry | |
| version: v0 | |
| kubernetes.io/cluster-service: "true" | |
| spec: |
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
| #!/usr/bin/env ruby | |
| require 'yaml' | |
| action = ARGV[0].to_s.strip | |
| service = ARGV[1].to_s.strip | |
| url = ARGV[2].to_s.strip | |
| config_file = "#{ENV['HOME']}/.shortcuts.yml" | |
| data = File.exists?(config_file) ? YAML.load_file(config_file) : {} |
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
| apiVersion: v1 | |
| kind: ServiceAccount | |
| metadata: | |
| name: tiller | |
| namespace: kube-system | |
| --- | |
| apiVersion: rbac.authorization.k8s.io/v1beta1 | |
| kind: ClusterRoleBinding | |
| metadata: | |
| name: tiller |
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
| --- | |
| apiVersion: service-operator.aws/v1alpha1 | |
| kind: DynamoDB | |
| metadata: | |
| name: dynamo-table | |
| spec: | |
| hashAttribute: | |
| name: name | |
| type: S | |
| rangeAttribute: |
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
| kubectl -n kube-system create sa tiller | |
| kubectl create clusterrolebinding tiller-cluster-rule \ | |
| --clusterrole=cluster-admin \ | |
| --serviceaccount=kube-system:tiller | |
| helm init --service-account tiller |
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
| → kubectl get crds | |
| NAME CREATED AT | |
| alexaaskskills.awsctrl.io 2019-01-17T09:41:38Z | |
| amazonmqbrokers.awsctrl.io 2019-01-17T09:41:33Z | |
| amazonmqconfigurationassociations.awsctrl.io 2019-01-17T09:41:33Z | |
| amazonmqconfigurations.awsctrl.io 2019-01-17T09:41:33Z | |
| apigatewayaccounts.awsctrl.io 2019-01-17T09:41:33Z | |
| apigatewayapikeys.awsctrl.io 2019-01-17T09:41:33Z | |
| apigatewayauthorizers.awsctrl.io 2019-01-17T09:41:33Z | |
| apigatewaybasepathmappings.awsctrl.io 2019-01-17T09:41:33Z |