Skip to content

Instantly share code, notes, and snippets.

neraliu neraliu

Block or report user

Report or block neraliu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@neraliu
neraliu / memory_layout.md
Created Jan 13, 2018 — forked from CMCDragonkai/memory_layout.md
Linux: Understanding the Memory Layout of Linux Executables
View memory_layout.md

Understanding the Memory Layout of Linux Executables

Required tools for playing around with memory:

  • hexdump
  • objdump
  • readelf
  • xxd
  • gcore
@neraliu
neraliu / running-tasks-in.js
Last active Sep 21, 2016
running customized tasks with one interface run() in Javascript
View running-tasks-in.js
(function() {
// object taskA
function taskA(name) {
this.name = name;
}
taskA.prototype.name = null;
taskA.prototype.run = function() {
console.log("taskA is running");
return true;
@neraliu
neraliu / running-tasks-in.go
Last active Sep 21, 2016
running customized tasks with one interface run() in GO
View running-tasks-in.go
package main
import (
"fmt"
)
// this is the signature of myTask
type myTask interface {
run() bool
}
@neraliu
neraliu / ssh-agent-snippets.sh
Created Sep 30, 2015 — forked from alexras/ssh-agent-snippets.sh
Bash snippets to automatically start and stop an ssh-agent process on login and logout
View ssh-agent-snippets.sh
#!/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
You can’t perform that action at this time.