Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
| #!/usr/bin/env ruby -w | |
| # brew-services(1) - Easily start and stop formulas via launchctl | |
| # =============================================================== | |
| # | |
| # ## SYNOPSIS | |
| # | |
| # [<sudo>] `brew services` `list`<br> | |
| # [<sudo>] `brew services` `restart` <formula><br> | |
| # [<sudo>] `brew services` `start` <formula> [<plist>]<br> |
| /** | |
| Sample Propane caveatPatchor.js file based on tmm1's avatar hack. | |
| You'll need at least version 1.1.1 to experiment with this: | |
| http://propaneapp.com/appcast/Propane.1.1.1.zip | |
| Once I'm sure exposing this hack-injection point doesn't cause problems | |
| I'll do an official auto-updating version. | |
| As of version 1.1.1, Propane will load and execute the contents of |
| EventMachine::Hiredis::Connection#receive_data | |
| Hiredis::Reader#feed <0.000003> | |
| Hiredis::Reader#gets | |
| Encoding.default_external <0.000002> | |
| String#force_encoding <0.000002> | |
| Encoding.default_external <0.000001> | |
| String#force_encoding <0.000001> | |
| Encoding.default_external <0.000000> | |
| String#force_encoding <0.000001> | |
| Encoding.default_external <0.000001> |
| module Test | |
| module Unit | |
| TestCase = RSpec::Core::ExampleGroup | |
| end | |
| end | |
| class Test::Unit::TestCase | |
| def self.inherited(host) | |
| host.set_it_up host.name.gsub(/(Spec|Test)/,'') | |
| def host.method_added(name) |
| source "https://rubygems.org" | |
| gem 'sprockets' | |
| gem 'sprockets-sass' | |
| gem 'sass' | |
| gem 'compass' | |
| gem 'bootstrap-sass' | |
| gem 'handlebars_assets' | |
| gem 'coffee-script' |
| #!/usr/bin/env ruby | |
| rss = '.+?Rss:\s+(\d+)' | |
| share = '.+?Shared_Clean:\s+(\d+)' | |
| share << '.+?Shared_Dirty:\s+(\d+)' | |
| priv = '.+?Private_Clean:\s+(\d+)' | |
| priv << '.+?Private_Dirty:\s+(\d+)' | |
| MEM_REGEXP = /\[heap\]#{rss}#{share}#{priv}/m | |
| def mem_usage() |
| require 'action_mailer' | |
| require 'mail' | |
| module ActionMailer | |
| class Base | |
| def clean_address(str) | |
| EmailAddress.parse(str, :no_default_name => true).quoted rescue str | |
| end | |
| #include "v8.h" | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <assert.h> | |
| #include <cxxabi.h> | |
| #include <dlfcn.h> | |
| using namespace v8; |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
| " These VIM rules match the MRI C indentation rules. | |
| " | |
| " To enable use of this project specific config, add the following to your | |
| " ~/.vimrc: | |
| " | |
| " " Enable per-directory .vimrc files | |
| " set exrc | |
| " " Disable unsafe commands in local .vimrc files | |
| " set secure |