How to remove remote git hooks?

Assuming you have no non-husky hooks, you might want to keep: rm -f .git/hooks/* every file inside “.git/hooks/” is either a git-hook or ignored by git. By removing everything inside, you’ll get rid of all hooks, and restore the default behavior. By default there are example-hooks in there, but except for being examples they serve … Read more

how do aim bots in fps games work?

Somewhere in the game memory is the X,Y, and Z location of each player. The game needs to know this information so it knows where to render the player’s model and so forth (although you can limit how much the game client can know by only sending it player information for players in view). An … Read more

Linux Kernel: System call hooking example

I finally found the answer myself. http://www.linuxforums.org/forum/linux-kernel/133982-cannot-modify-sys_call_table.html The kernel was changed at some point so that the system call table is read only. cypherpunk: Even if it is late but the Solution may interest others too: In the entry.S file you will find: Code: .section .rodata,”a” #include “syscall_table_32.S” sys_call_table -> ReadOnly You have to compile … Read more

Adding console.log to every function automatically

Here’s a way to augment all functions in the global namespace with the function of your choice: function augment(withFn) { var name, fn; for (name in window) { fn = window[name]; if (typeof fn === ‘function’) { window[name] = (function(name, fn) { var args = arguments; return function() { withFn.apply(this, args); return fn.apply(this, arguments); } … Read more

How to configure Git post commit hook

As mentioned in “Polling must die: triggering Jenkins builds from a git hook”, you can notify Jenkins of a new commit: With the latest Git plugin 1.1.14 (that I just release now), you can now do this more >easily by simply executing the following command: curl http://yourserver/jenkins/git/notifyCommit?url=<URL of the Git repository> This will scan all … Read more

Git pre-push hooks

Git got the pre-push hook in the 1.8.2 release. Sample pre-push script: https://github.com/git/git/blob/87c86dd14abe8db7d00b0df5661ef8cf147a72a3/templates/hooks–pre-push.sample 1.8.2 release notes talking about the new pre-push hook: https://github.com/git/git/blob/master/Documentation/RelNotes/1.8.2.txt