http://patshaughnessy.net/2012/2/29/the-joke-is-on-us-how-ruby-1-9-supports-the-goto-statement
goto.patch:
--- vm_opts.h
+++ vm_opts.h
@@ -48,7 +48,7 @@
#define OPT_STACK_CACHING 0
begin | |
require "bundler/inline" | |
rescue LoadError => e | |
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler" | |
raise e | |
end | |
gemfile(true) do | |
source "https://rubygems.org" |
http://patshaughnessy.net/2012/2/29/the-joke-is-on-us-how-ruby-1-9-supports-the-goto-statement
goto.patch:
--- vm_opts.h
+++ vm_opts.h
@@ -48,7 +48,7 @@
#define OPT_STACK_CACHING 0
#!/usr/bin/env bash | |
# reflog: Pretty format `git reflog show` with optional flag options for refining reflog output | |
reflog () { | |
if [[ ! "$(git rev-parse --is-inside-work-tree)" ]] 2>/dev/null; then | |
echo "fatal: Not a git repository (or any of the parent directories): .git" | |
return 1 | |
fi | |
# decorated `git reflog show` graph format style |
A string identifying the build system action being performed.
The locations of any sparse SDKs that should be layered on top of the one specified by Base SDK (SDKROOT
). If more than one SDK is listed, the first one has highest precedence. Every SDK specified in this setting should be a "sparse" SDK, for example, not an SDK for an entire macOS release.
[ Update 2025-03-24: Commenting is disabled permanently. Previous comments are archived at web.archive.org. ]
Most of the terminal emulators auto-detect when a URL appears onscreen and allow to conveniently open them (e.g. via Ctrl+click or Cmd+click, or the right click menu).
It was, however, not possible until now for arbitrary text to point to URLs, just as on webpages.
#!/bin/zsh -i | |
# if you're using ZSH, change the shebang above to "#!/bin/zsh -i" | |
eval "$(rbenv init -)" | |
if [ ${#} -ne 2 ]; then | |
echo >&2 Usage: $(basename ${0}) old-version new-version | |
exit 1 | |
fi |
require 'sidekiq/api' | |
# 1. Clear retry set | |
Sidekiq::RetrySet.new.clear | |
# 2. Clear scheduled jobs | |
Sidekiq::ScheduledSet.new.clear |
# frozen_string_literal: true | |
module ErrorResponses | |
def rails_respond_without_detailed_exceptions | |
env_config = Rails.application.env_config | |
original_show_exceptions = env_config['action_dispatch.show_exceptions'] | |
original_show_detailed_exceptions = env_config['action_dispatch.show_detailed_exceptions'] | |
env_config['action_dispatch.show_exceptions'] = true | |
env_config['action_dispatch.show_detailed_exceptions'] = false | |
yield | |
ensure |
forked from https://gist.github.com/chetan/1827484 which is from early 2012 and contains outdated information.
Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.