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
Client :: ready | |
Stat: Stats { | |
mode: 33206, | |
permissions: 33206, | |
uid: undefined, | |
gid: undefined, | |
size: 1172943, | |
atime: 1473984262, | |
mtime: 1473984262 } | |
bytesRead: 32768 thisPool.length: 32768 |
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
$ go build setuid.go | |
$ sudo su | |
[sudo] password for bore: | |
# chown root:root setuid | |
# chmod u+s setuid | |
$ ./setuid | |
Real UID: 1000 | |
Effective UID: 0 | |
Real UID: 1000 | |
Effective UID: 1000 |
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
var cluster = require('cluster'); | |
if (cluster.isMaster) { | |
cluster.fork(); | |
cluster.on('exit', function(worker, code, signal) { | |
console.log('Worker exited:', worker.process.pid); | |
}); | |
setTimeout(function () { |
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
(function() { | |
console.log('*** HERE WE GO ***'); | |
function onPlayerReady() { | |
alert('Done'); | |
} | |
})(); |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<ivy-module version="2.0" xmlns:m="http://ant.apache.org/ivy/maven"> | |
<info organisation="org.bpp" | |
module="ivy-test" | |
revision="1.0" | |
status="integration" | |
publication="20121126212929" | |
/> | |
<configurations> | |
<conf name="archives" visibility="public" description="Configuration for archive artifacts."/> |
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
//Should be placed in './src/main/java/org/bore/sample' directory | |
package org.bore.sample; | |
import sun.misc.Unsafe; | |
public class Sample { | |
public int foo() { | |
return Unsafe.getUnsafe().pageSize(); | |
} |