…Therefore I've written down an explanation of some command line commands you can insert in the CLI, most of them give added value and make your experience with the cli more enjoyable.
Who has never witnessed the scary feeling of not being connected to the write database when having several terminals open. I do, due to the fact I use the prompt functionality. mysql >\R Production > PROMPT set to 'Production > '
Or you can go a bit further and visualise the user, …
…yet — we measured the performance of our JS dependencies, we built out a new, speedy CLI that uses libsass for crazy fast compiling performance, and we rewrote our docs so they'd help you get up to speed faster than ever before.
We've also put some time into making sure we load quickly through a smaller request in 5.1. To that end, we optimized our compiled CSS and removed about 10% of the CSS lines (okay, the byte reduction is smaller than that, but come on, that's …
Legit: - CLI tool to simplify using git. for Humans
Lucie - framework for writing command-line applications in ruby.
availability.is - to publicize your availability for freelance web work.
Vagrant 1.4 - An end of the year update including support.
...where secure: value is obtained by means of the officalCLI tool: $ travis encrypt AMAZON_SECRET_ACCESS_KEY="..."
That's it! The caching of gem dependencies this way resulted in a >1 minute speedup per build in a project with a relatively small gem bundle .
s3-put is useful for more than just caching dependencies . ruby-build, for instance, uses Travis CI and this script to keep its Ruby download mirror up to date whenever someone adds …
Recently, I helped a client that was having issues with deployments causing locking in their production databases. At a high level, the two key components used in the environment were:
website ](scripted deployments) [
Liquibase (database version control) [ website ]
At a high level, they currently used a CLI call to Liquibase as a sub-task within a larger deployment task. The goal of this engagement was to modify that sub-task to run Liquibase in …
Install the force.com ruby gem : $ gem install force
... or the Node.js library : $ npm install force
Documentation on using the …
You inherit from:: :: :: CLI::Graphite
You still implement run() .
You still describe configurations with option and access them with config .
You output each stat with output(name, value, timestamp) .
You need to at least end with ok() , you can also use the other exit helpers if you want.
Here's disk-usage-metrics.rb as an example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 #!/usr/bin/env ruby …
Away From Keyboard
Although Mattt is enthusiastic about programming and his role at Heroku, his time away from the keyboard is particularly interesting. "Back in May, after an exhausting month-long trip through Europe, I decided that I was tired of waiting to do all of the things that I had wanted to do," he …
The option method lets you declare how your script should be invoked. Here's a few things you can specify:
short and long argument names ( -v or --version )
description for CLI help
a proc to run on the argument (commonly used to call .to_i, .to_f)
This also has the nice side effect of producing a useful --help …
Note: These are default soft limits and will vary by account.
2) Tame your S3 buckets
Delete an entire S3 bucket with a single CLI command:
aws s3 rb s3://<bucket-name> --forc e
Recursively copy a local directory to S3:
aws s3 cp <local-dir-name> s3://<bucket-name> --region <region-name> --recursive
3) Understand AWS cross-region dependencies