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
module EnhancedAssociationIdSetter | |
extend ActiveSupport::Concern | |
module ClassMethods | |
def belongs_to(name, scope = nil, **options) | |
result = super | |
build_assocation_id_setter_for(name) | |
result | |
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
[[ $(aws --version 2>&1) == aws-cli/1* ]] && echo "AWS CLI is V1" || echo "AWS CLI IS > V1" |
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
app: | |
image: my/webapp:latest | |
labels: | |
- "traefik.enable=true" | |
- "traefik.frontend.rule=Host:supercoolapp.com" | |
- "traefik.frontend.errors.network.backend=error" | |
- "traefik.frontend.errors.network.query=/{status}.html" | |
- "traefik.frontend.errors.network.status=500-511" | |
- "traefik.port=3000" | |
error_pages: |
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
# DUBSTEP | |
# Combines ideas from my other gists | |
current_bpm = 140.0 | |
use_bpm current_bpm | |
# WOBBLE BASS | |
define :wob do | |
use_synth :dsaw | |
lowcut = note(:E1) # ~ 40Hz | |
highcut = note(:G8) # ~ 3000Hz |
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
// Fix for validations on simple form | |
// Need to import bootstrap functions and mixins if you want to dynamically set colors | |
// Otherwise replace theme-color... with hex color | |
@import 'bootstrap/functions'; | |
@import 'bootstrap/variables'; | |
@import 'bootstrap/mixins'; | |
.has-invalid { | |
.invalid-feedback { |
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
yarn list v0.27.5 | |
ββ [email protected] | |
ββ [email protected] | |
β ββ mime-types@~2.1.11 | |
β ββ [email protected] | |
ββ [email protected] | |
ββ [email protected] | |
β ββ acorn@^4.0.3 | |
β ββ [email protected] | |
ββ [email protected] |
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
In case of problems: https://rvm.io/help and https://twitter.com/rvm_io | |
+ Updating /etc/profile.d/rvm_secure_path.sh | |
+ chmod +x /etc/profile.d/rvm_secure_path.sh | |
+ usermod -a -G rvm app | |
+ install -o root /pd_build/ruby_support/system-rvm-exec.sh /usr/bin/rvm-exec | |
+ Creating /usr/bin/ruby | |
+ Creating /usr/bin/gem | |
+ Creating /usr/bin/rake | |
+ Creating /usr/bin/bundle | |
+ Creating /usr/bin/bundler |
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
<template lang="jade"> | |
#example | |
button(@click="greet") Greet | |
</template> | |
<script> | |
export default { | |
data () { | |
return { |
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
% npm install vue-loader --save AirNorth/tarmac (feature/vuejs β‘) Andrews-MacBook-Pro | |
npm WARN [email protected] requires a peer of vue-html-loader@^1.0.0 but none was installed. | |
npm WARN [email protected] requires a peer of css-loader@* but none was installed. | |
npm WARN [email protected] requires a peer of vue-style-loader@^1.0.0 but none was installed. | |
npm WARN [email protected] requires a peer of babel-loader@^6.1.0 but none was installed. | |
npm WARN [email protected] requires a peer of babel-core@^6.1.2 but none was installed. | |
npm WARN [email protected] requires a peer of babel-plugin-transform-runtime@^6.1.2 but none was installed. | |
npm WARN [email protected] requires a peer of babel-runtime@^5.8.0 but none was installed. | |
npm WARN [email protected] requires a peer of babel-preset-es2015@^6.1.2 but none was installed. | |
npm WARN [email protected] requires a peer of vue-hot-reload-api@^1.2.0 but none was installed. |
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
$ root@ed4b13372429:/# bundle -v | |
bash: bundle: command not found | |
$ root@ed4b13372429:/# gem install bundler -V | |
HEAD https://api.rubygems.org/api/v1/dependencies | |
200 OK | |
GET https://api.rubygems.org/api/v1/dependencies?gems=bundler | |
200 OK | |
Getting SRV record failed: DNS result has no information for _rubygems._tcp.api.rubygems.org | |
/var/lib/gems/2.2.0/gems/bundler-1.11.2/.gitignore | |
/var/lib/gems/2.2.0/gems/bundler-1.11.2/.rspec |
NewerOlder