DhyveOS | DockerRoot | RancherOS | Boot2Docker | Hyper on Mac (*7) | |
---|---|---|---|---|---|
Version | 2.0.0 | 1.2.8 | 0.4.2 | 1.9.1 | 0.4.0 |
Size | 12 MB | 13.7 MB | 29 MB | 30 MB | 4.6 MB |
Kernel | 4.3.3 | 4.3.3 | 4.2.3 | 4.1.13 | 4.0.4 |
User Land | Buildroot(uClibc) + BusyBox v1.24.1 | Buildroot(GLIBC) + BusyBox v1.24.1 | Buildroot(GLIBC) + BusyBox v1.23.2 | Tiny Core Linux v6.4.1 | - |
Docker | 1.9.1 | 1.9.1 | 1.9.1 | 1.9.1 | - |
Storage Driver | btrfs | overlay | overlay (*2) | aufs (*2) | VDI |
TLS | - | (*9) | ✓ | ✓ | - |
Vagrant box | - | ✓ | (v0.4.1) | (*3) | - |
#include <iostream> | |
void setBackground(unsigned r, unsigned g, unsigned b) | |
{ | |
std::cout << "\x1b[48;2;" << r << ';' << g << ';' << b << 'm'; | |
} | |
int main() | |
{ | |
int point[4][3] = { {255,0,0}, |
#include <clang-c/Index.h> | |
#include <cstdlib> | |
#include <iostream> | |
/* | |
* Compile with: | |
* g++ complete.cc -o complete -lclang -L/usr/lib/llvm | |
* Run with: | |
* LIBCLANG_TIMING=1 ./complete file.cc line column [clang args...] | |
*/ |
import cProfile | |
def profile_this(fn): | |
def profiled_fn(*args, **kwargs): | |
# name for profile dump | |
fpath = fn.__name__ + '.profile' | |
prof = cProfile.Profile() | |
ret = prof.runcall(fn, *args, **kwargs) | |
prof.dump_stats(fpath) |
#!/bin/sh | |
# Generate test coverage statistics for Go packages. | |
# | |
# Works around the fact that `go test -coverprofile` currently does not work | |
# with multiple packages, see https://code.google.com/p/go/issues/detail?id=6909 | |
# | |
# Usage: script/coverage [--html|--coveralls] | |
# | |
# --html Additionally create HTML report and open it in browser | |
# --coveralls Push coverage statistics to coveralls.io |
package main | |
import ( | |
"crypto/rand" | |
"flag" | |
"log" | |
mrand "math/rand" | |
"net" | |
"os" | |
"os/signal" |
If your system is running slowly, perhaps a process is using too much CPU time and won't let other processes run smoothly. To find out which processes are taking up a lot of CPU time, you can use Apple's Activity Monitor.
The CPU pane shows how processes are affecting CPU (processor) activity:
function vid2Gif { | |
if [[ $# != 3 ]]; then | |
print "too many or too less arguments" | |
return | |
fi | |
ffmpeg -y -i $1.mov -vf fps=10,scale=${2}:${3}:flags=lanczos,palettegen palette_$1.png | |
ffmpeg -i $1.mov -i palette_$1.png -filter_complex "fps=10,scale=${2}:${3}:flags=lanczos[x];[x][1:v]paletteuse" -f gif - | gifsicle --optimize=3 > $1.gif | |
} |
- Get Chromium OS from one of the following places
- Download the vanilla build (old but stable): http://chromeos.hexxeh.net/
- NOTE: Password is
facepunch
- NOTE: Password is
- Download the nightly build (sync doesn't work): http://download-chromiumos.appspot.com/
- NOTE: If you want developer mode, you must change
_base_
in the download URL to_test_
as the base image does not have developer tools enabled - NOTE: Password is unknown, instructions for working around this are provided later
- NOTE: I could not get syncing working with this build, perhaps due to no API KEYS being provided???
- NOTE: If you want developer mode, you must change
- Download the vanilla build (old but stable): http://chromeos.hexxeh.net/
- NOTE: I could not move past the welcome screen on the 64bit build due to no network being found (32bit worked)
ccache is a compiler cache. It speeds up recompilation of C/C++ code by caching previous compilations and detecting when the same compilation is being done again. This often results in a significant speedup in common compilations, especially when switching between branches. This page is about using ccache on Mac with clang and ninja build system. If you want to use Xcode, please refer to the old CCacheMac page.
In order to use ccache with clang, you need to use the current git HEAD, since the most recent version (3.1.9) doesn't contain the patch needed for using chromium style plugin.
To install ccache with [homebrew](http://mxcl.