View cmdhere.reg
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
Windows Registry Editor Version 5.00 | |
; After right-clicking on a folder in Windows Explorer, | |
; you can press spacebar to immediately execute Cmd Here and open a cmd prompt. | |
[HKEY_CLASSES_ROOT\Folder\shell\cmdhere] | |
@="Cmd& Here" | |
; By using pushd, we are able to open a cmd prompt on \\network\shares as an automatically mapped temporary drive letter. | |
; Make sure to use the "exit" command to close the command prompt, to automatically unmap the temporary drive. | |
[HKEY_CLASSES_ROOT\Folder\shell\cmdhere\command] | |
@="cmd /k \"cls&pushd \"%l\"\"" |
View winrenice.py
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
#!/usr/bin/env python | |
# Copyright (c) 2019, Giampaolo Rodola', Michael Clark. All rights reserved. | |
# Use of this source code is governed by a BSD-style license that can be | |
# found in the LICENSE file. | |
# https://github.com/giampaolo/psutil/blob/master/LICENSE | |
""" | |
In liu of a 'renice' cmdline utility on Windows. | |
$ winrenice chrome.exe below |
View gpg_agent_daemon_bashrc.sh
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
# Run: | |
# sudo apt-get install gnupg-agent | |
# sudo apt-get install pinentry-curses | |
# Edit: | |
# $HOME/.gnupg/gpg-agent.conf: | |
# pinentry-program /usr/bin/pinentry-curses | |
# default-cache-ttl 28800000 | |
# max-cache-ttl 28800000 | |
# Edit: | |
# $HOME/.subversion/config: |
View search_and_replace.jse
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
try | |
{ | |
var fso = new ActiveXObject("Scripting.FileSystemObject"); | |
var shell = new ActiveXObject("WScript.Shell"); | |
var READ = 1, WRITE = 2, APPEND = 8; | |
var TEXT_DEFAULT = -2, TEXT_UNICODE = -1, TEXT_ANSI = 0; | |
var argc = WScript.Arguments.Count(); | |
if (argc < 4) | |
{ |