my_print_defaults to check which file to edit.
check for a message like this:
Default options are read from the following files in the given order:
/etc/my.cnf /etc/mysql/my.cnf /usr/local/etc/my.cnf ~/.my.cnf
something more ergonomic, try:
| # Error Codes | |
| # 1: No variable name specified | |
| # 2: No value found for variable | |
| # If wanna save name = 'value' (between quotes), use: postgresql_config 12 foo \'bar\' (escaped) | |
| postgresql_config() { | |
| VERSION=$1 | |
| NAME=$2 | |
| VALUE=$3 | |
| MATCHED=0 |
| class Dummy3 < Trailcrazer::Operation | |
| step :one | |
| step :two, StepTwo | |
| # can be a block (pay attention to use {} and not do/end) | |
| define_step :one, ->(ctx : Trailcrazer::Context, params : OperationType) { | |
| ctx[:sum] = params[:initial] + 4 | |
| true | |
| } |
| require "../spec_helper.cr" | |
| describe "Rolify" do | |
| it "add a role for user" do | |
| user = UserBox.new.create | |
| user.add_role(:admin) | |
| user.has_role?(:admin).should be_truthy | |
| user.has_role?(:foo).should be_falsey | |
| end |
| require "../spec_helper.cr" | |
| describe AppServer do | |
| visitor = AppVisitor.new # <<<--- check this! | |
| it "signs in valid user" do | |
| # create a user | |
| user = UserBox.new.create | |
| # visit sign in endpoint |
my_print_defaults to check which file to edit.
check for a message like this:
Default options are read from the following files in the given order:
/etc/my.cnf /etc/mysql/my.cnf /usr/local/etc/my.cnf ~/.my.cnf
something more ergonomic, try:
| May 29 11:44:36 adamantium com.apple.xpc.launchd[1] (puppet[3577]): Service exited with abnormal code: 1 | |
| May 29 11:44:36 adamantium com.apple.xpc.launchd[1] (puppet): Service only ran for 2 seconds. Pushing respawn out by 8 seconds. | |
| May 29 11:44:46 adamantium com.apple.xpc.launchd[1] (puppet[3599]): Service exited with abnormal code: 1 | |
| May 29 11:44:46 adamantium com.apple.xpc.launchd[1] (puppet): Service only ran for 2 seconds. Pushing respawn out by 8 seconds. | |
| May 29 11:44:57 adamantium com.apple.xpc.launchd[1] (puppet[3622]): Service exited with abnormal code: 1 | |
| May 29 11:44:57 adamantium com.apple.xpc.launchd[1] (puppet): Service only ran for 2 seconds. Pushing respawn out by 8 seconds. | |
| May 29 11:45:09 adamantium com.apple.xpc.launchd[1] (puppet[3761]): Service exited with abnormal code: 1 | |
| May 29 11:45:09 adamantium com.apple.xpc.launchd[1] (puppet): Service only ran for 3 seconds. Pushing respawn out by 7 seconds. | |
| May 29 11:45:19 adamantium com.apple.xpc.launchd[1] (puppet[3784]): Service exited with abno |
| import test from 'ava' | |
| import fs from 'fs' | |
| import mock from 'mock-fs' | |
| test.before(t => { | |
| mock({ | |
| 'dir': { | |
| 'document': 'mocked content' | |
| } | |
| }) |
| module Validator | |
| include Contracts::Core | |
| class InvalidTypeError < StandardError; end | |
| Contract Contracts::Num => Contracts::Num | |
| def self.decimal(value) | |
| raise InvalidTypeError.new("Not allowed nil type") if value.nil? | |
| return value if value.is_a?(Integer) | |
| return value if value.is_a?(BigDecimal) |
| require "http/client" | |
| require "gzip" | |
| # With no Accept-Encoding, works | |
| uri = URI.parse("https://www.google.com") | |
| client = HTTP::Client.new uri | |
| response = client.get "/" | |
| puts response.body | |
| # With Accept-Encoding=gzip, prints binary |
I hereby claim:
To claim this, I am signing this object: