Chrome DevTools: Snippets

Chrome DevTools > Snippets

//console.dir(window.document.head)
//console.dir(window.document.body)
console.dir(window.document.head.meta)console.dir(window)
console.log("-----document.querySelector('div.content-body')---------");
console.log(document.querySelector('.content-body'));
console.log("-----$('p',document)---------");
console.log($('p',document));
console.log("-----$('script', document)---------");
console.log($('script', document));
console.log("--------------");
console.log($('meta', document));
console.log("--------------");
console.log($('img', document));
console.log("--------------");
console.log($('img', document.body));
console.log("--------------");
var images = $$('img');
var cnt = 1
for (each in images) {
    console.log("img count" + cnt++);
    console.log(images[each].src);
}
console.log("--------------");
console.log("--------------");
console.log($x('//img'));
console.log("--------------");
console.log(document.querySelectorAll('img',documen
Tags

alive.hta

copy to alive.hta:

<html>
<head>
<title>alive</title>
<HTA:APPLICATION
    ID="alive"
    Version="1.01"
    BORDER="thin"
    BORDERSTYLE="normal"
    CAPTION="yes"
    APPLICATIONNAME="alive"
    SCROLL="auto"
    SINGLEINSTANCE="yes"
    MINIMIZEBUTTON="yes"
    SCROLL="no"
    SHOWINTASKBAR="no"
    SYSMENU="yes"
    ICON="settings.ico"
/>

<style type="text/css">
    .style1
    {
        font-family: Tahoma;
    }
    .style2
    {
        width: 77px;
        height: 78px;
    }
</style>
</head>
<script language="VBScript">
    Sub Window_onLoad
        window.resizeTo 300,150
    End Sub

    Sub closeWindow
       self.close
    End Sub

Tags

App: KRename: Template Examples

Creation Date Time Stamp

voice-[creationdate;yyyy-MM-dd]

voice-2020-02-11.m4a

NOW Time Stamp

voice-[year]-[month][day]-[hour][minute]

voice-2020-0303-0521.m4a

 

Tags

PAR2: Parchive / par2cmdline

par2cmdline

par2cmdline is a PAR 2.0 compatible file verification and repair tool.

To see the ongoing development see: https://github.com/parchive/par2cmdline

OpenMP multithreading was originally developed by Jussi Kansanen: https://github.com/jkansanen/par2cmdline-mt

The original development was done on Sourceforge but stalled.

For more information from the original authors see http://parchive.sourceforge.net

This is also the place for details on the PAR 2.0 specification and discussion of all things PAR.

Tags

selenium-server-standalone cli options

Usage: java -jar selenium-server.jar [-interactive] [option

  • -port <nnnn>: the port number the selenium server should use (default 4444)
  • -timeout <nnnn>: an integer number of seconds before we should give up
  • -interactive: puts you into interactive mode.
Tags
Subscribe to