sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- Download zsh-autosuggestions by
| ## GAE | |
| From GcpAppEngineServiceSample SELECT latest(flex.cpu.Utilization), latest(flex.cpu.ReservedCores) WHERE entityName LIKE 'integration-auth.%' | |
| From GcpAppEngineServiceSample SELECT latest(system.memory.UsageBytes), latest(system.Instances) WHERE entityName LIKE 'integration-auth.%' | |
| From GcpAppEngineServiceSample SELECT latest(system.memory.UsageBytes / 1e9), latest(system.Instances) WHERE entityName LIKE 'integration-auth.%'/B | |
| ## Transactions | |
| From transaction select count(****) where appName = 'Integration Auth (Production)' | |
| from transaction select count(*) where appName = 'Integration Auth (Production)' timeseries | |
| from transaction select count(*) where appName = 'Integration Auth (Production)' timeseries compare with 1 week ago | |
| from transaction select count(*) where appname = 'Integration Auth (Production)' timeseries facet request.method |
| def split(input) | |
| remainders = [] | |
| loop do | |
| quotient, remainder = input.divmod(10) | |
| remainders << remainder | |
| break if quocient.zero? | |
| input = quotient | |
| end | |
| remainders |
I hereby claim:
To claim this, I am signing this object:
| class BaseContext | |
| attr_accessor :strategy | |
| def initialize(strategy) | |
| @strategy = strategy | |
| end | |
| def execute(*args) | |
| @strategy.new.execute(*args).round(2) | |
| end |