This file contains hidden or 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
mount - /opt/mnt/dir1 -t cifs -o UNC=//192.168.1.2/dir1,username=usert1,password=pass1 |
This file contains hidden or 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
window.onerror = function(message, url, lineNumber) { | |
console.log("Error: "+message+" in "+url+" at line "+lineNumber); | |
} |
This file contains hidden or 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://askubuntu.com/questions/369310/how-to-fix-missing-libudev-so-0-for-chrome-to-start-again |
This file contains hidden or 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://mail.google.com/mail/?ui=html&zy=h |
This file contains hidden or 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 hidden or 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
// Turn OFF emulated prepared statements | |
$dbh->setAttribute(PDO::ATTR_EMULATE_PREPARES, false); |
This file contains hidden or 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 hidden or 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); | |
} |
This file contains hidden or 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
// FFmpeg settings for vimeo.com | |
// ============================= | |
// Trying to find the best settings for encoding videos as described here: http://vimeo.com/help/compression | |
// | |
// Input file: MTS | |
// Video: H264, 1920x1080, 50fps | |
// Audio: A52 Audio (aka AC3), Stereo, 48kHz, 256kbps | |
ffmpeg -i input.mts -vcodec libx264 -acodec aac -strict experimental -vpre hq -s hd720 -b 5000k -ab 320k -r 25 -g 25 -threads 0 output.mp4 |
This file contains hidden or 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
foForReading = 1 // Open base 64 code file for reading | |
foAsASCII = 0 // Open base 64 code file as ASCII file | |
adSaveCreateOverWrite = 2 // Mode for ADODB.Stream | |
adTypeBinary = 1 // Binary file is encoded | |
function decode(from, to) { | |
var fileSystemObj = WScript.CreateObject("Scripting.FileSystemObject"); | |
var file = fileSystemObj.GetFile(from) | |
var inputStream = file.OpenAsTextStream(foForReading, foAsASCII); | |