Questions tagged [hook]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
37 views

Is really need to reset [mouse] hooks when resuming computer from sleep?

It seems that I have not yet encountered a problem that is solved in this way. However, in different places I notice similar "protection". For example, I saw this in X-Mouse Button Control: ...
user avatar
  • 111
0 votes
2 answers
656 views

SVN svnrdump load - pre-revprop-change hook

I am trying to migrate a subversion repository from one server to another. I can dump the repository from the old server to a file, but I am having issues with loading the dump file to the new server. ...
user avatar
1 vote
2 answers
707 views

Accessing displayed content of external programs

This has been a longstanding difficulty for me, and I don't know (even after googling) what the easiest solution to this is. I have an external program (coherent laser software) that displays some ...
user avatar
0 votes
1 answer
548 views

Git prepare-commit-msg hook seems not work in PyCharm

I am working with the last version of PyCharm. In our repo we have some hooks, like "prepare-commit-msg" to create a commit template or "commit-msg" using by Gerrit to add the change-id used by this ...
user avatar
2 votes
0 answers
223 views

Ubuntu LVM on LUKS UEFI

I want to install Ubuntu on LVM on LUKS in UEFI mode. An UEFI partition, another encrypted partition for /boot and again an encrypted partition for system. My question is: How can I add hooks to ...
user avatar
0 votes
0 answers
479 views

Intercepting and Re-Directing Windows File Operations in a C Program

My intention is to write a program (I have Pelles C) whose function is to intercept Windows reads/writes to certain directories, and re-direct them to other, user-specified ones. For example, a ...
user avatar
2 votes
1 answer
2k views

Analyzing a dump file using WinDbg

I've been asked to explore a dump file (no source files given) using windbg and to extract some information from it: determine what is the issue (hang/crash) what module causes the hang. What is the ...
user avatar
  • 249
1 vote
2 answers
2k views

Is it possible to hook into a print job and copy the print job to a virtual printer, too?

I would like to know if this is possible for Windows,Mac and Linux. I need some generic solution to clone print jobs, currently in the pipeline and send them to a virtual printer, because I cannot ...
user avatar
  • 113
2 votes
0 answers
25 views

Set Windows to close application when the lid is being closed [duplicate]

I need to be able to configure Windows 7+ to close all instances of Microsoft Remote Desktop application when the lid of the laptop is being closed. On MacOS I can achieve this via osascript. Could ...
user avatar
5 votes
1 answer
1k views

ZSH: change prompt just before command is run

I would like to have a two-line prompt in zsh, but collapse it to a very small one just after pressing ENTER, so that it doesn't show up in the terminal scroll history. After typing two commands, the ...
user avatar
1 vote
0 answers
201 views

Git push over SSH is not activating remote hooks

I have the following problems that git push over SSH is not activating remote hooks. The server where Git repo is Linux ubuntu. Git version 1.7.9.5 My path to repo hooks /path/test.git/hooks/update; ...
user avatar
2 votes
0 answers
173 views

Git server side hooks commit update file

I am trying to implement git hook commit on a server using these instructions: https://git-scm.com/book/be/v2/Customizing-Git-An-Example-Git-Enforced-Policy I created file "update" (make it ...
user avatar
2 votes
1 answer
154 views

When I run a git hook in a repo on a network share: which binaries are used?

See title. My repo is located on a network share. When I push new revs there, a post-udpate hook is run. The hook needs Perl and runs nicely. But which perl.exe is used here? The one on my machine? ...
user avatar
  • 478
0 votes
1 answer
71 views

Detect IPC between running processes on Unix

Suppose I have 2 processes on any unix-based system and I sure they are using some inter-process communication. How can I detect what do they use in order to simulate or hook it? I mean pipes, for ...
user avatar
1 vote
1 answer
1k views

Git post-update hook not working properly

If I push to my remote origin repository the post-receive hook should push all to another remote repository on another machine. When I push to my origin the post-receive hook gets triggered but I ...
user avatar
1 vote
1 answer
137 views

How to create SSH Key for git user

If i want to syncronize my remote origin with another remote repository i will have to register a post-update hook. But I will need an ssh key for that. Because my origin repo is owned by git user, ...
user avatar
8 votes
3 answers
8k views

How to commit files modified by pre-commit hook in Git

Im struggling for a couple of hours to make git store metadata (permissions/flags/etc) of the files using metastore and I use hooks/pre-commit for this. The script is invoked correctly, and the file ...
user avatar
  • 397
-4 votes
1 answer
82 views

Someone is hooking me? [closed]

I have some ticket on customer site I'm dealing with. My application uses 3rd party app (written in Python & c++) which I don't have the code - and in my code is always failing on one server, and ...
user avatar
0 votes
1 answer
552 views

What DLL's does DirectX 5 use?

I know directX 9 uses many DLL's, but the main DLL is d3d9.dll which I can replace with my own one and so "hook" into an application using DirectX 9. I can do the same for directx 8. But I have a game ...
user avatar
  • 1,869
1 vote
1 answer
355 views

How to defocus a program without letting it know it is out of WinAPI focus

There is a need for two of us with my friend to use one PC at the same time. I have a gaming PC, 2 screens, a gamepad — sounds like a great multi-user environment, eh? Not so fast. The problem is: ...
user avatar
  • 11
1 vote
1 answer
418 views

Why doesn't the Aquamacs text-mode-hook I add in my .emacs file seem to run?

I'm running Aquamacs 2.4 (based on Emacs 23.3.50.1) on my Macbook, OS 10.7.5. I have the following line in my .emacs file: (add-hook 'text-mode-hook 'turn-on-visual-line-mode) I think that this ...
user avatar
  • 123
2 votes
2 answers
355 views

Monitor programs accessing my keyboard?

As of a few days ago, my computer is behaving 'erratically'. When I am typing, my pointer will randomly move to another place in the text and start typing a semi-random string of characters. ("gvyfn" ...
user avatar
7 votes
2 answers
18k views

How to trick programs into thinking they're running under 32-bit?

Basically I have 3 executables in my Windows 7 64-bit, those are: Loader.exe -> This is a 32-bit exe  x86.exe -> This is a 32-bit exe x64.exe -> This is a 64-bit exe When Loader.exe starts it ...
user avatar
2 votes
1 answer
2k views

How to properly copy/paste code from .pdf to a new file open on terminal?

I have a pdf containing the following code: #!/bin/sh echo echo “**** Pulling changes into Dev [Hub’s post-update hook]” echo case “ $1 ” in If I copy and then paste that code on my terminal, after ...
user avatar
  • 1,187
1 vote
0 answers
96 views

Disable button in a third party application?

Im currently have a linux "kiosk" machine containing a closed-source third party application. The problem is that the third party application has a settings button, that I dont want the users to be ...
user avatar
62 votes
4 answers
75k views

How to launch a command on network connection/disconnection?

I have a wifi connection that requires to authenticate using a web form once the wireless link is established. I know how to automate the authentication with a script that uses curl/curlIE. But how ...
user avatar
  • 1,193
2 votes
2 answers
1k views

How can I find which file system hooks are installed on a windows XP pro machine?

I've a suspect that a program I installed (spideroak) didn't completely removed itself on uninstall. How can I check if there are still file system hooks installed? EDIT: Probably spideroak wasn't ...
user avatar
  • 135
2 votes
3 answers
473 views

Compiz shutdown hook?

I want to check 10+ local Git repositories if they have any unpushed commit, before shutdown. (I always forgot to push them, so later, the next morning I came office and back home again) I think ...
user avatar
  • 17.1k
2 votes
1 answer
551 views

Can the OS X unlock panel trigger a login hook similar to loginwindow?

I'd like to automatically run a shell script every time I authenticate onto my computer. However, all the info I can find about loginhook and Global LoginItems applies only when authenticating to "...
user avatar
  • 41
134 votes
6 answers
57k views

Does bash have a hook that is run before executing a command?

In bash, can I arrange for a function to be executed just before running a command? There is $PROMPT_COMMAND, which is executed before showing a prompt, i.e., just after running a command. Bash's $...
4 votes
2 answers
4k views

Global git hook

Is it possible to hook all ways of creating git repo? So I can run script when repo is cloned, initialized… (are there any other ways, except moving/copying folder?). My intention is to track all ...
user avatar
  • 4,444
2 votes
2 answers
1k views

How to run commands when mac is idle and when it resumes

I want to run script when my mac is idle (for example after 5 minutes or screen saver start time is also ok) and when I resume it from idle state. I know that I can write daemon using ...
user avatar
  • 4,444
2 votes
2 answers
205 views

(Vista) Discover what app is reserving a shortcut key?

My problem is this: I've always managed to map WIN+V to foobar2000's "Next song" keyboard shortcut. For some reason, on this new machine, I can't. I've done this before on Vista, so the only thing I ...
user avatar
  • 2,664