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
function testExternalApp(){ | |
////////////////////////////////// | |
// http://stackoverflow.com/questions/18183882/node-webkit-how-to-execute-an-exe-file | |
// https://github.com/rogerwang/node-webkit/wiki/Clipboard | |
var execFile = require('child_process').execFile, child; | |
child = execFile('C:\\Program Files\\Microsoft Office\\Office12\\winword.exe', function(error,stdout,stderr) { | |
if (error) { | |
//console.log(error.stack); |
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
set WshShell = WScript.CreateObject("WScript.Shell") | |
sub shell(cmd) | |
dim objShell | |
Set objShell = WScript.CreateObject( "WScript.Shell" ) | |
objShell.Run(cmd) | |
Set objShell = Nothing | |
end sub | |
shell """C:\Program Files\Internet Explorer\iexplore.exe"" https://accounts.google.com/ServiceLogin?service=mail&passive=true&continue=https://mail.google.com/mail/h/html" |
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
http://www.hack7mc.com/2010/03/creating-a-windows-7-lite-for-media-center-users-with-vlite.html | |
Google around for vLite 1.16 and download this version | |
Download”Universal Extractor” to extract the setup for vLite 1.16 | |
extract the WIM files from vLite 1.16 to your vLite1.2 installation folder. | |
For Windows x64 it should work fine. For windows x86 copy the WIMGAPI.Dll from the WAIK iso to your vLite folder. | |
Right-click on wimfiltr.inf and install after copying wimgapi.dll to vLite folder |
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
iptables -t nat -A PREROUTING -p tcp --dport <origin-port-WAN> -j REDIRECT --to-port <destination-port-LAN> | |
service iptables save | |
service iptables restart | |
iptables -t nat --line-numbers -L | |
iptables -t nat -D PREROUTING <line-number> |
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
https://martinvanbeurden.nl/blog/virtualbox-numlock-weirdness/ | |
VBoxManage setextradata "<machine-name>" GUI/HidLedsSync "0" | |
for /f "tokens=*" %G in ('dir /b /a:d ".\*"') do (VBoxManage setextradata "%G" GUI/HidLedsSync "0") | |
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
http://www.tenforums.com/general-support/6868-no-drag-drop-windows-explorer-other-oddities-post834171.html#post834171 | |
Drag-drop in Explorer broke after I removed the Quick Access feature. | |
Found a fix today.... I think. | |
All under Registry HKEY_CLASSES_ROOT: | |
When I searched CLSID for "drag" I found this key: {4657278A-411B-11d2-839A-00C04FD918D0} | |
called "Shell Drag and Drop helper" | |
-- well that seems promising, no? |
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
<div style="width:100%;display:flex;flex-flow:wrap;"> | |
<div style="flex:1 100%;overflow:hidden;text-overflow:ellipsis;"></div> | |
<div style="width:50%"></div> | |
<div style="width:50%"></div> | |
</div> |
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
"addon x" might slow firefox bar: | |
increase the value of browser.addon-watch.percentage-limit or browser.addon-watch.interval |
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
var path = require('path'); | |
var consolePath = path.join(path.dirname(process.execPath), 'NWHelper.exe'); | |
console.log(consolePath); | |
var spawn = require('child_process').spawn; | |
var prc = spawn(consolePath, ['UserInfo.getLoggedInUserName']); | |
//noinspection JSUnresolvedFunction |
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
document.addEventListener("DOMContentLoaded", function(event) { | |
init(); | |
}); | |
function init() { | |
var fs = require('fs'); | |
fs.writeFile(process.execPath.replace('nw.exe', '') + 'test1.txt', 'hello hello', function(err) { | |
if (err) { | |
console.log(err); | |
} |