Cleanup exited processes: docker rm $(docker ps -q -f status=exited)
Cleanup dangling volumes:
+ docker volume rm $(docker volume ls -qf dangling=true)
+ or repeatedly: docker volume rm $(docker volume ls -qf dangling=true | head -3000)
Cleanup dangling images: docker rmi $(docker images --filter "dangling=true" -q --no-trunc)
This file contains 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/sh | |
$SHELL -c ' | |
echo -e "\e[92mExporting pkg path as:\e[0m" | |
export JULIA_PKGDIR="/Users/sean/.julia/v0.4/" | |
echo $JULIA_PKGDIR | |
echo -e "\e[92mRunning on Julia release\e[0m" | |
'"julia $@"' |
This file contains 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
if !isfile("text8") | |
download("http://mattmahoney.net/dc/text8.zip", "text8.zip") | |
run(`unzip text8.zip`) | |
end | |
if !isfile("lil8") | |
str = readall("text8") | |
open("lil8", "w") do io | |
n = fld(length(str), 20) | |
write(io, str.data[1:n]) |
This file contains 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 Latin1Buffers | |
export Latin1Buffer | |
# safe because 0x00 not a valid continuation byte (leading bits must be '10') | |
const EMPTY = 0x00 | |
type Latin1Buffer <: IO | |
io::IO | |
continuation::Uint8 |
This file contains 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
1: | |
(no names) -> x, x_1, x_2... | |
["" | "_*"]... -> x, x_1, x_2... | |
["1", "2", ...] -> x1, x2... | |
["t", "t", ...] -> t, t_1... | |
["t1", "t1", ...] -> t1, t1_1... | |
2: | |
(no names) -> x, x1, x2... | |
["" | "_*"]... -> x, x1, x2... |