Category "scripting"

Scroll the full js webpage using lua script to get the full source code

I want to scroll and get the full webpage source code using lua script. as example (http://note.com/ ) I want to scroll this full website to get the full source

FFMPEG - can you have comments in script files?

Because of batch's poor ability to handle multi-line strings, I'm using FFMPEG script files more and more for filter_complex arguments. I'm wondering if there

Apply a file to multiple folders using better PowerShell script

I'm working on a project where I have to apply a file to multiple folders every so often. I'm trying to learn some PowerShell commands to make this a little ea

mIRC/mSL pulling certian strings out of a wildcard

So I'm pretty new to mSl scripting, but I've done some other scripting before. I'm trying to figure out how to do some pattern matching, but I'm having a proble

Create a first-time logon script for new users

I am creating generalized images of a Windows 10 machine for my company and some of the software we use requires setting up for each user account. I have a scri

Removing Members in Groups in Azure AD Powershell Automatically (App API Permission)

I'm trying to remove members of groups automatically via a PowerShell Script. There's an Azure AD app created, with User.ReadWrite.All (Application) and as User

Reading Server list as input from notepad or excel - Python

I'm new to python. Recently I created a Health Check script in python which is useful for fetching details for the base machine. But I want to use it for fetchi

Is it possible to create a macro / script in iTerm2 that insert text automatically selected from a list?

I use iTerm2 as my default terminal app in OSX. A would like to ask if is possible to insert text automatically with a hotkey (or selecting it from a menu), wit

ignoring specific exit code in bash

Note: Question does not duplicate Ignoring specific errors in a shell script . Suppose it is needed to capture the leading characters of a encoded representati

How can I loop with all the nc -zv connections?

I am trying to write a script to monitor all the server ports. But I am able write to for only one connection at a time. How can I write it for all the connecti

Windows batch - concatenate multiple text files into one

I need to create a script, which concatenates multiple text files into one. I know it's simple to use type *.txt > merged.txt But the requirement is to "con

Python: Import And Initialize Argparse After if __name__ == '__main__'?

If I am using argparse and an if __name__ == '__main__' test in a script that I would also like to use as a module, should I import argparse under that test and

saving output of nettop to file ( mac ) [closed]

I'm trying to save the output of nettop from my terminal to a text file ( maybe .csv ) what I want to do is be able to isolate the different v

Is there a new/updated Twill?

I've been trying to learn Twill Scripting on Python and I am using Python 3.4 and Twill 1.8.0. Been reading some posts here and I found it interesting to study.

What is the difference between p and P in sed?

Can anyone explain what is the difference between p and P in Sed? Suppose I want to print lines containing gmail in the below file using both p and P give the

Windows Batch File - Net Use encounter "System Error 64"

Been encountering this error "System error 64 - the specified network name is no longer available" in one of my windows batch script while trying to NET USE \se

Script to automatically log in to webpage and click button

I have a time clock system that employees login to via browser and punch for time but I find that the process takes our less tech savvy employees 4-5 minutes. I

How to fix “No newline at end of file” warning for lots of files?

I have a huge number of source files that are all lacking a newline at the end. How do I automatically add a newline to the end of each of them? Some may alre

How to fix “No newline at end of file” warning for lots of files?

I have a huge number of source files that are all lacking a newline at the end. How do I automatically add a newline to the end of each of them? Some may alre

Find multiple files and rename them in Linux

I am having files like a_dbg.txt, b_dbg.txt ... in a Suse 10 system. I want to write a bash shell script which should rename these files by removing "_dbg" from