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.
| license: gpl-3.0 |
| /* | |
| * Copyright (c) 2013. Regents of the University of California | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
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.
| ... | |
| # Fake a fuse install | |
| RUN apt-get install libfuse2 | |
| RUN cd /tmp ; apt-get download fuse | |
| RUN cd /tmp ; dpkg-deb -x fuse_* . | |
| RUN cd /tmp ; dpkg-deb -e fuse_* | |
| RUN cd /tmp ; rm fuse_*.deb | |
| RUN cd /tmp ; echo -en '#!/bin/bash\nexit 0\n' > DEBIAN/postinst | |
| RUN cd /tmp ; dpkg-deb -b . /fuse.deb |
| module MockSnowflake | |
| TWEPOCH = 1142974214000 | |
| WORKERIDBITS = 5 | |
| DATACENTERIDBITS = 5 | |
| MAXWORKERID = -1 ^ (-1 << WORKERIDBITS) | |
| SEQUENCEBITS = 12 | |
| WORKERIDSHIFT = SEQUENCEBITS | |
| DATACENTERIDSHIFT = SEQUENCEBITS + WORKERIDBITS | |
| TIMESTAMPLEFTSHIFT = SEQUENCEBITS + WORKERIDBITS + DATACENTERIDBITS |
| # Sinatra minimalist RestMQ | |
| # no COMET, just /q/ routes and queue logic | |
| # the core of RestMQ is how it uses Redis' data types | |
| require 'rubygems' | |
| require 'sinatra' | |
| require 'redis' | |
| require 'json' | |
| QUEUESET = 'QUEUESET' # queue index |