script

Write an executable bash-script

This article solves the following challenge: 

De/activate touchpad on linux

The script goes as follows
#!/bin/bash
xinput set-int-prop 'name_of_device' "Device disabled" 8 0

to disable the touchpad or
#!/bin/bash
xinput set-int-prop 'name_of_device' "Device enabled" 8 1

to enable it (replace name_of_device with the name of your device, keep the ').
The scripts should be saved as a .sh files at a location of convinience.
To find the name of the device to dis/enable write
xinput --list
into a terminal. Now identify the right device.
To be able to easily execute your file maneuver to its location with the terminal then write
chmod +x filename
where filename is the name of your file.
From that point it is enough to type
./filename
into the terminal at the file's location.

Evaluate complexity of present statement:

Select ratingCancelGuessingPassing knowledgeKnowledgeableExpert

Your rating: 2 Average: 2.5 (2 votes)

Copy files and preserve folder structure

I have to copy a bunch of files from one drive to another. Simple Strg+C is to unreliable and has to start from the beginning, if the copy process gets interrupted. xcopy %source% %destination% has no sufficient logging options. The solution should be a command line script, to simply rerun the task.

AutoComplete input box

For the improvement of user experience on a web site it is useful to provide a autocomplete element on some inputs. On the Internet there are many scripts available for download which implement autocomplete functionality. Unfortunately most of them are not functioning properly in all web browsers or have other important drawbacks - are not skinable, not flexible for different uses, etc. We want to implement a good autocomplete widget which would not have all the mentioned disadvatages.
Subscribe to script