Required tools for playing around with memory:
hexdump
objdump
readelf
xxd
gcore
(function() { | |
// object taskA | |
function taskA(name) { | |
this.name = name; | |
} | |
taskA.prototype.name = null; | |
taskA.prototype.run = function() { | |
console.log("taskA is running"); | |
return true; |
package main | |
import ( | |
"fmt" | |
) | |
// this is the signature of myTask | |
type myTask interface { | |
run() bool | |
} |
#!/bin/bash | |
## in .bash_profile | |
SSHAGENT=`which ssh-agent` | |
SSHAGENTARGS="-s" | |
if [ -z "$SSH_AUTH_SOCK" -a -x "$SSHAGENT" ]; then | |
eval `$SSHAGENT $SSHAGENTARGS` | |
trap "kill $SSH_AGENT_PID" 0 | |
fi |