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
dnsmasq: | |
image: andyshinn/dnsmasq:2.76 | |
ports: | |
- 10053:53/tcp | |
- 10053:53/udp | |
command: | |
- -W | |
- _http._tcp.router.lipe-routing.svc.cluster.local,pod-1,80 | |
- -W | |
- _http._tcp.router.lipe-routing.svc.cluster.local,pod-2,80 |
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
var start = new Date().getTime(), | |
checkpoint = null, | |
delay = 1000, | |
end = start + (delay * 2), | |
current; | |
setTimeout(function () { | |
if ((current = new Date().getTime()) < end) { | |
console.log('we\'re borked'); | |
} else { |
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
bundle exec kitchen converge 1604 -l debug | |
-----> Starting Kitchen (v1.15.0) | |
D [Vagrant command] BEGIN (vagrant --version) | |
D [Vagrant command] END (0m1.03s) | |
/home/etki/.rvm/gems/ruby-2.4.0/gems/test-kitchen-1.15.0/lib/kitchen/configurable.rb:99:in `join': no implicit conversion of nil into String (TypeError) | |
from /home/etki/.rvm/gems/ruby-2.4.0/gems/test-kitchen-1.15.0/lib/kitchen/configurable.rb:99:in `calculate_path' | |
from /home/etki/.rvm/gems/ruby-2.4.0/gems/test-kitchen-1.15.0/lib/kitchen/provisioner/chef_base.rb:71:in `block in <class:ChefBase>' | |
from /home/etki/.rvm/gems/ruby-2.4.0/gems/test-kitchen-1.15.0/lib/kitchen/lazy_hash.rb:135:in `proc_or_val' | |
from /home/etki/.rvm/gems/ruby-2.4.0/gems/test-kitchen-1.15.0/lib/kitchen/lazy_hash.rb:76:in `[]' | |
from /home/etki/.rvm/gems/ruby-2.4.0/gems/test-kitchen-1.15.0/lib/kitchen/configurable.rb:206:in `block in expand_paths!' |
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
FROM alpine | |
ENTRYPOINT ["/bin/sh", "-c", "echo \"Hello $1!\"", "hello-world"] | |
CMD ["World"] |
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
# docker run --rm -ti -v $(pwd):/tmp/jmh-benchmark -w /tmp/jmh-benchmark ubuntu:18.04 bash | |
apt-get update | |
apt-get install curl -y | |
curl -sL https://github.com/shyiko/jabba/raw/master/install.sh | bash && . ~/.jabba/jabba.sh | |
jabba install [email protected] | |
jabba use [email protected] | |
which java # /root/.jabba/jdk/[email protected]/bin/java | |
java -jar target/benchmarks.jar BenchmarkLoop |
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
class Main { | |
public static void main(String[] args) { | |
long completion = System.currentTimeMillis() + 1_000; | |
int accumulator = 1; | |
while (System.currentTimeMillis() < completion) { | |
accumulator = permutate(accumulator); | |
} | |
System.exit(accumulator - accumulator); | |
} | |
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
import org.openjdk.jmh.annotations.Benchmark; | |
import org.openjdk.jmh.annotations.BenchmarkMode; | |
import org.openjdk.jmh.annotations.Fork; | |
import org.openjdk.jmh.annotations.Measurement; | |
import org.openjdk.jmh.annotations.Mode; | |
import org.openjdk.jmh.annotations.OutputTimeUnit; | |
import org.openjdk.jmh.annotations.Scope; | |
import org.openjdk.jmh.annotations.State; | |
import org.openjdk.jmh.annotations.Threads; |
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
javascript:['layer_bg', 'layer_wrap', 'box_layer_bg', 'box_layer_wrap'].map(id => document.getElementById(id)).filter(e => e).forEach(e => e.style.top = '-100%');document.body.style.overflow = null; |
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
# PUT localhost:9200/index | |
{ | |
"mappings": { | |
"properties": { | |
"nested": { | |
"type": "nested", | |
"properties": { | |
"values": { | |
"type": "keyword" |
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
IntentionalBranching.run constant avgt 10 84.038 ± 0.053 us/op | |
IntentionalBranching.run:CPI constant avgt 0.297 #/op | |
IntentionalBranching.run:L1-dcache-load-misses constant avgt 14347.870 #/op | |
IntentionalBranching.run:L1-dcache-loads constant avgt 524225.003 #/op | |
IntentionalBranching.run:L1-dcache-stores constant avgt 163851.052 #/op | |
IntentionalBranching.run:L1-icache-load-misses constant avgt 9.608 #/op | |
IntentionalBranching.run:LLC-load-misses constant avgt 1.101 #/op | |
IntentionalBranching.run:LLC-loads constant avgt 296.037 #/op | |
IntentionalBranching.run:LLC-store-misses constant avgt 0.103 #/op | |
IntentionalBranching.run:LLC-stores constant avgt 1.339 |