Category Archives: script

PHPHOST BLOG

Web Hosting Related Articles You May Need

[one-liner]: Script to Cleanly Start Dropbox During a boot sequence on Linux (Fedora & CentOS)

Background

I’m an avid user of Dropbox. I run it on all my Linux and Windows systems, and it simply just works. However, one annoying thing that I’ve just dealt with for a while now on Linux, is when I reboot my laptop, Dropbox, doesn’t come up correctly due to the wireless network not being up […] Continue reading

Posted in dropbox, linux, one-liner, script, Syndicated, tips & tricks | Comments Off on [one-liner]: Script to Cleanly Start Dropbox During a boot sequence on Linux (Fedora & CentOS)

Example Bash Script which Monitors if a Program has Died, and Restarts it

Background

Here’s a quick script that might prove useful if you need to watch if a program is running and restart it if it stops for whatever reason. It is by no means fault tolerant, but could be adapted to be more so if needed.

Solution

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
 
# NAME: check_dropbox.bash
# DESC: watch if dropbox is running
 
check_process() {
[…] Continue reading

Posted in bash, monitoring, script, Syndicated, tip, tutorials | Comments Off on Example Bash Script which Monitors if a Program has Died, and Restarts it

[one-liner]: Running a Windows Program from a HTML Page in Internet Explorer

Background

We recently needed a way to launch executables on a Windows system, but wanted to run them from a web browser, locally. Turns out to be pretty easy with a little bit of VBScript.

Solution

Here’s a quick example on how to make a .html file that can be used to launch applications locally. This seems like […] Continue reading

Posted in HTML, one-liner, script, Syndicated, tips & tricks, vbscript, web, windows | Comments Off on [one-liner]: Running a Windows Program from a HTML Page in Internet Explorer

Advanced JavaScript Table Sorter – TinyTable V3

The third iteration of the TinyTable table sorting script adds search, column averages and totals, record numbering, a view all function, and a reset function. At only 6KB it is still lightweight, quick, and includes all previous features. Continue reading

Posted in JavaScript, script, sort, sorter, sorting, Syndicated, table | Comments Off on Advanced JavaScript Table Sorter – TinyTable V3

Advanced JavaScript Table Sorter – TinyTable V3

The third iteration of the TinyTable table sorting script adds search, column averages and totals, record numbering, a view all function, and a reset function. At only 6KB it is still lightweight, quick, and includes all previous features. Continue reading

Posted in JavaScript, script, sort, sorter, sorting, Syndicated, table | Comments Off on Advanced JavaScript Table Sorter – TinyTable V3

Accordion Script With Multi-Level Support

This accordion script is powerful and lightweight. It now includes multi-level support, a parameter to determine whether only one panel can be expanded concurrently, and a hide/show all toggle. Continue reading

Posted in accordion, collapsible, JavaScript, panel, script, Syndicated | Comments Off on Accordion Script With Multi-Level Support

Animated JavaScript Slideshow – 5KB

This JavaScript slideshow is feature packed and under 5KB. Features include smooth animation, title/description/link support, no naming restrictions, graceful degradation, on-demand image loading and active thumbnail status. Continue reading

More Galleries | Comments Off on Animated JavaScript Slideshow – 5KB