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
| using System; | |
| using System.Diagnostics; | |
| using System.Threading.Tasks; | |
| public class RetryLoop<TResult> | |
| { | |
| public RetryLoop(Func<RetryIterationContext<TResult>, Task<TResult>> func, Func<RetryIterationContext<TResult>, bool> succeeded) | |
| { | |
| this.func = func; | |
| this.timer = new Stopwatch(); |
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
| root@e25213faeb41:/go/src/github.com/docker/docker# go test -v github.com/docker/docker/pkg/archive -run TestChangesDirsMutated | |
| === RUN TestChangesDirsMutated | |
| --- PASS: TestChangesDirsMutated (0.11 seconds) | |
| changes_test.go:208: Lstat(old): &{name:symlink2 size:7 mode:134218239 modTime:{sec:63551388019 nsec:33650046 loc:0x6f8f40} sys:0xc208048510} | |
| changes_test.go:209: Lstat(new): &{name:symlink2 size:13 mode:134218239 modTime:{sec:63551388019 nsec:43652546 loc:0x6f8f40} sys:0xc208048630} | |
| changes_test.go:210: sameFsTime=false, expected=false | |
| changes_test.go:212: stat(old): &{Dev:34 Ino:171198 Nlink:1 Mode:41471 Uid:0 Gid:0 X__pad0:0 Rdev:0 Size:7 Blksize:4096 Blocks:0 Atim:{Sec:1415791219 Nsec:33650046} Mtim:{Sec:1415791219 Nsec:33650046} Ctim:{Sec:1415791219 Nsec:43652546} X__unused:[0 0 0]} | |
| changes_test.go:213: stat(new): &{Dev:34 Ino:172134 Nlink:1 Mode:41471 Uid:0 Gid:0 X__pad0:0 Rdev:0 Size:13 Blksize:4096 Blocks:0 Atim:{Sec:1415791219 Nsec:43652546} Mtim:{Sec:1415791219 Nsec:43652546} Ctim:{Sec:14157 |
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 | |
| set -e | |
| image='tianon/speedtest' | |
| layer='b31651d7665036bcf58a0b6b0d7aca173daff87b003ec50621cb0fde8d68864f' | |
| # docker inspect b31651d7665036bcf58a0b6b0d7aca173daff87b003ec50621cb0fde8d68864f | grep '"Size"' | |
| # "Size": 580580561, | |
| # ("Content-Length: 228991341" though...) | |
| token="$(curl -sSL -o /dev/null -D- -H 'X-Docker-Token: true' "https://index.docker.io/v1/repositories/$image/images" | awk -F ':[[:space:]]*|\r' '$1 == "X-Docker-Token" { print $2 }')" |
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 | |
| set -e | |
| image='tianon/speedtest' | |
| layer='b31651d7665036bcf58a0b6b0d7aca173daff87b003ec50621cb0fde8d68864f' | |
| # docker inspect b31651d7665036bcf58a0b6b0d7aca173daff87b003ec50621cb0fde8d68864f | grep '"Size"' | |
| # "Size": 580580561, | |
| # ("Content-Length: 228991341" though...) | |
| token="$(curl -sSL -o /dev/null -D- -H 'X-Docker-Token: true' "https://index.docker.io/v1/repositories/$image/images" | awk -F ':[[:space:]]*|\r' '$1 == "X-Docker-Token" { print $2 }')" |
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
| gkahuna@lmp-swarm-i-master:~$ cat docker-extension.log | |
| [DockerExtension] 2015/07/09 15:02:14 ---------------------------------------- | |
| [DockerExtension] 2015/07/09 15:02:14 Extension handler launch args: "./bin/docker-extension install" | |
| [DockerExtension] 2015/07/09 15:02:14 Status 'transitioning' not reported for operation 'Install Docker' (by design) | |
| [DockerExtension] 2015/07/09 15:02:14 distro info: Ubuntu 14.04 | |
| [DockerExtension] 2015/07/09 15:02:14 using distro driver: driver.UbuntuUpstartDriver | |
| [DockerExtension] 2015/07/09 15:02:14 user: root uid:0 gid:0 | |
| [DockerExtension] 2015/07/09 15:02:14 env['PATH'] = /usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin | |
| [DockerExtension] 2015/07/09 15:02:14 + starting: 'install' | |
| [DockerExtension] 2015/07/09 15:02:14 ++ install docker |
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
| scala> def f(n:Int):Int = if (n<2) 1 else n*f(n-1) | |
| f: (Int)Int | |
| scala> f(5) | |
| res2: Int = 120 |
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
| package service.search; | |
| import java.io.Reader; | |
| import org.apache.lucene.analysis.LowerCaseFilter; | |
| import org.apache.lucene.analysis.LowerCaseTokenizer; | |
| import org.apache.lucene.analysis.ReusableAnalyzerBase; | |
| import org.apache.lucene.analysis.TokenStream; | |
| import org.apache.lucene.analysis.Tokenizer; | |
| import org.apache.lucene.analysis.WhitespaceTokenizer; |
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
| package controllers; | |
| import models.User; | |
| import play.Logger; | |
| import play.Play; | |
| import play.libs.Crypto; | |
| import play.mvc.Before; | |
| import play.mvc.Controller; | |
| import play.mvc.Http; | |
| import play.mvc.Scope; |
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
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
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
| #cloud-config | |
| disable_root: false | |
| manage_etc_hosts: true | |
| # The modules that run in the 'init' stage | |
| cloud_init_modules: | |
| - migrator | |
| - ubuntu-init-switch | |
| - seed_random | |
| - bootcmd |
OlderNewer