This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Flatten das boostrap */ | |
| .well, .navbar-inner, .popover, .btn, .tooltip, input, select, textarea, pre, .progress, .modal, .add-on, .alert, .table-bordered, .nav>.active>a, .dropdown-menu, .tooltip-inner, .badge, .label, .img-polaroid { | |
| -moz-box-shadow: none !important; | |
| -webkit-box-shadow: none !important; | |
| box-shadow: none !important; | |
| -webkit-border-radius: 0px !important; | |
| -moz-border-radius: 0px !important; | |
| border-radius: 0px !important; | |
| border-collapse: collapse !important; | |
| background-image: none !important; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # install-llvm.sh | |
| # Copyright (c) 2010 Ben Karel. All rights reserved. | |
| # Use of this source code is governed by a BSD-style license that can be | |
| # found in the LICENSE.txt file or at http://eschew.org/txt/bsd.txt | |
| # This file was found at http://foster.googlecode.com/hg/scripts and updated by Richard Joseph, Nov 2012 | |
| #The current LLVM and CLANG version can be found at http://llvm.org/releases/download.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| max_connections = 1500 # (change requires restart) | |
| shared_buffers = 12000MB # min 128kB, based on 80GB RAM DB | |
| temp_buffers = 8MB # min 800kB | |
| work_mem = 64MB # min 64kB | |
| maintenance_work_mem = 512MB # min 1MB | |
| wal_level = hot_standby # minimal, archive, or hot_standby | |
| checkpoint_segments = 64 # in logfile segments, min 1, 16MB each | |
| checkpoint_completion_target = 0.9 # checkpoint target duration, 0.0 - 1.0 | |
| max_wal_senders = 6 # max number of walsender processes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {-# LANGUAGE BangPatterns #-} | |
| module LazyLength ( | |
| LazyLength(), | |
| fromLazyLength, | |
| toLazyLength, | |
| lazyLength, | |
| -- QuickCheck properties | |
| prop_invariant, | |
| prop_invertible, | |
| prop_addition, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| > module Paxos.Basic where | |
| > import Data.List (maximumBy) | |
| > import Data.Maybe (catMaybes) | |
| Phase 1a: Prepare | |
| ================= | |
| A Proposer (the leader) creates a proposal identified with a number N. This | |
| number must be greater than any previous proposal number used by this Proposer. | |
| Then, it sends a Prepare message containing this proposal to a Quorum o |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module System.Hdfs where | |
| import Data.ByteString (ByteString) | |
| import qualified Data.ByteString as B | |
| import Data.Int | |
| import Data.Vector (Vector) | |
| import Data.Word | |
| import Foreign.Ptr | |
| type Size = Int32 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Update, upgrade and install development tools: | |
| apt-get update | |
| apt-get -y upgrade | |
| apt-get -y install build-essential | |
| apt-get -y install git-core | |
| # Install rbenv | |
| git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv | |
| # Add rbenv to the path: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| vagrant box add smartos http://cuddletech.com/tmp/smartos-latest.box | |
| mkdir smartos && cd smartos | |
| vagrant init smartos | |
| vagrant up | |
| vagrant ssh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Update, upgrade and install development tools: | |
| apt-get update | |
| apt-get -y upgrade | |
| apt-get -y install build-essential | |
| apt-get -y install git-core | |
| # Install rbenv | |
| git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv | |
| # Add rbenv to the path: |