Skip to content

Instantly share code, notes, and snippets.

@charlieok
charlieok / gist:7cc6007399ab92645180f27770358283
Created April 5, 2021 21:31
zcashd build error on macOS big sur
Staging bdb...
./libtool --mode=compile /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -mmacosx-version-min=10.14 -fvisibility=hidden -fvisibility-inlines-hidden --sysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -c -I. -I../dist/./../src -I/Users/charlieok/Projects/zcash/depends/x86_64-apple-darwin20.3.0/include -pipe -O3 ../dist/./../util/db_archive.c
./libtool --mode=compile /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -mmacosx-version-min=10.14 -fvisibility=hidden -fvisibility-inlines-hidden --sysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -c -I. -I../dist/./../src -I/Users/charlieok/Projects/zcash/depends/x86_64-apple-darwin20.3.0/include -pipe -O3 ../dist/./../src/common/util_sig.c
./libtool --mode=compile /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/u
module Rack
module Auth
class Cheat
# Creates a new Rack::Auth::Cheat object. The +user_field+ and +password_field+
# are the params looked for in the call method. The defaults are 'username'
# and 'password', respectively.
#
def initialize(app, user_field = 'username', password_field = 'password')
@app = app
@user_field = user_field
require 'krb5_auth'
module Rack
module Auth
class Kerberos
# The version of the rack-auth-kerberos library.
VERSION = '0.2.0'
# Creates a new Rack::Kerberos object. The +user_field+ and +password_field+
# are the params looked for in the call method. The defaults are 'username'
@charlieok
charlieok / db_rollback_to_common.rake
Created April 5, 2009 21:27 — forked from outoftime/db_rollback_to_common.rake
I basically just added an if-else block here so it won't throw an error if there are no migration differences
#
# Usage:
# rake db:rollback_to_common branch=production
# git checkout -m production
# rake db:migrate
#
namespace :db do
desc 'Rolls back database to common migration state between current branch and another'
task :rollback_to_common do
FileUtils.cd(RAILS_ROOT) do