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 | |
srv=$1 | |
to=$2 | |
machine=$3 | |
loglinesinbody=50 | |
logfile="/var/log/upstart/$srv.log" | |
from="Upstart" |
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
console.log('experiment') | |
var intervalTime = 1000; | |
setInterval(runSomething, intervalTime); | |
var lastTime = Date.now();; | |
function runSomething() { | |
var now = Date.now(); | |
var elapsed = now - lastTime; | |
lastTime = now; |
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 util = require('util'); | |
var EventEmitter = require('events').EventEmitter; | |
function Spy(f, ctx) { | |
var ee = new EventEmitter(); | |
spy.called = false; | |
Object.keys(EventEmitter.prototype).forEach(function(p) { | |
spy[p] = transfer; |
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 | |
#node="/home/vagrant/nodes/iojs-v1.6.2-linux-x64/bin/iojs" | |
node="/home/vagrant/nodes/node-v0.12.1-linux-x64/bin/node" | |
node_flags='--perf_basic_prof' | |
script='/home/vagrant/porf/single.js' | |
script_log=/dev/null | |
# load_generator="node test.js" |
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
const net = require('net'); | |
const fs = require('fs'); | |
var req = fs.readFileSync('./req.txt', { encoding: 'utf8' }); | |
var socket = new net.Socket(); | |
socket.connect(7001, '127.0.0.1', function() { | |
console.log('Connected'); | |
var c = 50000; | |
while (c --> 0) |
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
use std::ops::Deref; | |
pub struct Foo; | |
impl Foo { | |
pub fn f(&self) -> &str { "Foo" } | |
} | |
pub struct BoxA<T>(T); | |
impl<T> Deref for BoxA<T> { | |
type Target = T; |
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: ConsumerBounceTest | |
File: core/src/test/scala/integration/kafka/api/ConsumerBounceTest.scala | |
Module: core | |
Starting a Gradle Daemon (subsequent builds will be faster) | |
> Configure project : | |
Starting build with version 3.8.0-SNAPSHOT (commit id 64b5f31b) using Gradle 8.7, Java 17 and Scala 2.13.12 | |
Build properties: maxParallelForks=10, maxScalacThreads=8, maxTestRetries=0 |
OlderNewer