Posts

Showing posts with the label tool

Digital Marketing

Example usage of curl

curl is convenient for testing web services. Note: You may also be interested in: HTTPie - a command line HTTP client Examples: curl -i --data @sample-input.xml \ --header Content-type:application/xml \ https://goyun.info curl -i --data @sample-input.json \ --header Content-type:application/json \ https://goyun.info curl -i -X GET  https://goyun.info curl -i --header Accept:application/json      -X GET  https://goyun.info curl -v -H "Content-Type: application/json" -X POST -d '{"user":{"firstName":"Foo","lastName":"Bar","emailAddress":"<your email address here>"}, "password":"password"}'  https://goyun.info /rest/user Common parameters are: -i, --include               (HTTP) Include the HTTP-header in the  output.  The  HTTP-header               includes  things  like  server-name, date of the document, HTTP-             ...

Example usage of curl

curl is convenient for testing web services. Note: You may also be interested in: HTTPie - a command line HTTP client Examples: curl -i --data @sample-input.xml \ --header Content-type:application/xml \ https://goyun.info curl -i --data @sample-input.json \ --header Content-type:application/json \ https://goyun.info curl -i -X GET  https://goyun.info curl -i --header Accept:application/json      -X GET  https://goyun.info curl -v -H "Content-Type: application/json" -X POST -d '{"user":{"firstName":"Foo","lastName":"Bar","emailAddress":"<your email address here>"}, "password":"password"}'  https://goyun.info /rest/user Common parameters are: -i, --include               (HTTP) Include the HTTP-header in the  output.  The  HTTP-header               includes  things  like  server-name, date of the document, HTTP-             ...

How to list file names in a certain date range using ls command

For example, show files between Apr 1 and 20: $ ls - al | awk ' $6 == "Apr" && $7 >= 1 && $7 <= 20 '

How to Install xrdp on CentOS 7 / RHEL 7

$ sudo yum -y install xrdp $ sudo systemctl start xrdp $ sudo systemctl status xrdp xrdp.service - LSB: Starts the xrdp daemon    Loaded: loaded (/etc/rc.d/init.d/xrdp)    Active: active (running) since Sat 2015-03-07 22:49:16 EST; 26s ago   Process: 22272 ExecStart=/etc/rc.d/init.d/xrdp start (code=exited, status=0/SUCCESS)    CGroup: /system.slice/xrdp.service            Ã¢Ã¢22281 /usr/sbin/xrdp            Ã¢Ã¢22285 /usr/sbin/xrdp-sesman Mar 07 22:49:16 localhost.localdomain xrdp[22272]: Starting xrdp: [  OK  ] Mar 07 22:49:16 localhost.localdomain xrdp[22272]: Starting xrdp-sesman: [  O... Mar 07 22:49:16 localhost.localdomain systemd[1]: Started LSB: Starts the xrd... Hint: Some lines were ellipsized, use -l to show in full. $ sudo ss -antup | grep xrdp tcp    LISTEN     0      2                 ...

How to validate fstab without rebooting in Linux

$ sudo mount -a This command will mount all (not-yet-mounted) filesystems mentioned in fstab and is used in system script startup during booting.

How to Install xrdp on CentOS 7 / RHEL 7

$ sudo yum -y install xrdp $ sudo systemctl start xrdp $ sudo systemctl status xrdp xrdp.service - LSB: Starts the xrdp daemon    Loaded: loaded (/etc/rc.d/init.d/xrdp)    Active: active (running) since Sat 2015-03-07 22:49:16 EST; 26s ago   Process: 22272 ExecStart=/etc/rc.d/init.d/xrdp start (code=exited, status=0/SUCCESS)    CGroup: /system.slice/xrdp.service            Ã¢Ã¢22281 /usr/sbin/xrdp            Ã¢Ã¢22285 /usr/sbin/xrdp-sesman Mar 07 22:49:16 localhost.localdomain xrdp[22272]: Starting xrdp: [  OK  ] Mar 07 22:49:16 localhost.localdomain xrdp[22272]: Starting xrdp-sesman: [  O... Mar 07 22:49:16 localhost.localdomain systemd[1]: Started LSB: Starts the xrd... Hint: Some lines were ellipsized, use -l to show in full. $ sudo ss -antup | grep xrdp tcp    LISTEN     0      2                 ...

Install video editor for fedora

Install pitivi: sudo yum -y install pitivi Install openshot: first install rpmfusion free repository: su -c 'yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-18.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-18.noarch.rpm' Then you can install openshot: sudo yum -y install openshot Install gstreamer:   sudo yum install gstreamer*

How to remove / delete blank / empty lines in JEdit

Find (regular expression) \n\n and replace with \n. There may have space/tabs in your "empty" line, then you may need to find (regular expression) ^\s*$\n and replace with nothing, i.e, get rid of ^\s*$\n.

Gnumeric - an open-source spreadsheet program

Free: Gnumeric and its source code are available free of charge, licensed under the terms of the GNU General Public License. Fast: Gnumeric starts up quickly and handles large spreadsheets while remaining responsive. Accurate: A spreadsheet should calculate the right answer. Gnumeric's built-in functions and tools are accurate as several , researchers , have found .

CSV applications and tools

xls2csv - reads MS-Excel file and puts its content as comma-separated data on standard output csvkit is a suite of utilities for converting to and working with CSV, the king of tabular file formats. csvkit is to tabular data what the standard Unix text processing suite (grep, sed, cut, sort) is to text. in2csv will convert a variety of common file formats, including xls, xlsx and fixed-width into CSV format. All the csvkit utilities work standard input and output. Any utility can be piped into another and into another and then at some point down the road redirected to a file. In this way they form a data processing “pipeline” of sorts, allowing you to do non-trivial, repeatable work without creating dozens of intermediary files. CSV Utility programs in Linux: column (-s to change the delimiter character(s)) cut  (-d to change the delimiter character) paste  (-d to change the delimiter character(s)) join  (-t to change the delimiter character) sort  (-t to change...

CSV applications and tools

xls2csv - reads MS-Excel file and puts its content as comma-separated data on standard output csvkit is a suite of utilities for converting to and working with CSV, the king of tabular file formats. csvkit is to tabular data what the standard Unix text processing suite (grep, sed, cut, sort) is to text. in2csv will convert a variety of common file formats, including xls, xlsx and fixed-width into CSV format. All the csvkit utilities work standard input and output. Any utility can be piped into another and into another and then at some point down the road redirected to a file. In this way they form a data processing “pipeline” of sorts, allowing you to do non-trivial, repeatable work without creating dozens of intermediary files. CSV Utility programs in Linux: column (-s to change the delimiter character(s)) cut  (-d to change the delimiter character) paste  (-d to change the delimiter character(s)) join  (-t to change the delimiter character) sort  (-t to change...

Webmin - a web-based system configuration tool

With  Webmin , it is possible to configure operating system internals, such as users, disk quotas, services or configuration files, as well as modify and control open source apps, such as the Apache HTTP Server, PHP or MySQL. Webmin is largely based on Perl, running as its own process and web server. It defaults to TCP port 10000 for communicating, and can be configured to use SSL if OpenSSL is installed with additional required Perl Modules. It is built around modules, which have an interface to the configuration files and the Webmin server. This makes it easy to add new functionality. Due to Webmin's modular design, it is possible for anyone who is interested to write plugins for desktop configuration. Webmin also allows for controlling many machines through a single interface, or seamless login on other webmin hosts on the same subnet or LAN. See also: Hosting Control Panels

Webmin - a web-based system configuration tool

With  Webmin , it is possible to configure operating system internals, such as users, disk quotas, services or configuration files, as well as modify and control open source apps, such as the Apache HTTP Server, PHP or MySQL. Webmin is largely based on Perl, running as its own process and web server. It defaults to TCP port 10000 for communicating, and can be configured to use SSL if OpenSSL is installed with additional required Perl Modules. It is built around modules, which have an interface to the configuration files and the Webmin server. This makes it easy to add new functionality. Due to Webmin's modular design, it is possible for anyone who is interested to write plugins for desktop configuration. Webmin also allows for controlling many machines through a single interface, or seamless login on other webmin hosts on the same subnet or LAN. See also: Hosting Control Panels

How to Use Expect Scripts to Automate Tasks

Expect is a tool for automating interactive applications such as telnet, ftp, passwd, fsck, rlogin, tip, etc. Expect really makes this stuff trivial. Expect is also useful for testing these same applications. And by adding Tk, you can also wrap interactive applications in X11 GUIs. Expect can make easy all sorts of tasks that are prohibitively difficult with anything else. You will find that Expect is an absolutely invaluable tool - using it, you will be able to automate tasks that you've never even thought of before - and you'll be able to do this automation quickly and easily. To install expect: $ sudo yum install expect or $ sudo apt-get install expect See also: autoexpect - generate an Expect script from watching a session Example Uses Of Expect The Expect Interpreter expect ?-d? -f scriptfile The Expect interpreter is called  expect . It's a plain Tcl interpreter with the Expect language extensions added. A Typical Expect Script A typical Expect script controls another...