Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
These are various shell scripts and so forth that I have created and figured I could toss them out there for others to stumble across and laugh at.
Shell Ruby Awk
Branch: master

A script designed specifically to be run by PRTG as sensors and anoth…

…er to deploy that script remotely.
latest commit a796cb06e9
Josiah Ritchie authored
Failed to load latest commit information.
PRTG-Sensors A script designed specifically to be run by PRTG as sensors and anoth…
.gitignore Adding my house utility usage tracking to desktop background script w…
LICENSE.txt
README.markdown Adding a couple new scripts. vncserver_rc to control tightvncserver o…
address_to_latlong.sh Adding a script for taking a location and geocoding it, providing lat…
background.jpg Adding my house utility usage tracking to desktop background script w…
charts.cfg_example adding some explanation to the example config
csvmaker.sh adding some old scripts to get things started
dhcp.awk adding some old scripts to get things started
getip.sh Adding the getip.sh scripts.
getipv6.sh Adding the getip.sh scripts.
getswap.sh Adding a couple new scripts. vncserver_rc to control tightvncserver o…
house_use_bkgnd.sh Adding my house utility usage tracking to desktop background script w…
id3Chapel.rb adding some old scripts to get things started
id3Chapel.sh adding some old scripts to get things started
linux_audit.sh Linux distro auditing commands
record_days_yum.sh Adding a script for taking a location and geocoding it, providing lat…
testConnectionLimit.sh Test multiple connections to a port with testConnectionLimit.sh
users.dhcp.sh adding some old scripts to get things started
vncserver_rc Adding a couple new scripts. vncserver_rc to control tightvncserver o…
vncservers.conf Adding a couple new scripts. vncserver_rc to control tightvncserver o…

README.markdown

Various Scripts by Josiah

This is a compilation of various scripts that I can share. I provide no warranty of them working, but I hope you can find something that will save you time in your own efforts. I'm releasing it using the MIT License to allow you to do just about anything you want with it. LICENSE.txt for more info.

csvmaker.sh:

This is a simple script to take in a list of files from the command line and pump it into a csv file.

id3Chapel.sh:

This was created for a project that was converting bible college chapels on tape masters to mp3 format. This script would take the name that was output in a certain format and create id3 tags from that information. (I worked a bit on porting this to ruby in id3Chapel.rb but didn't get far.)

users.dhcp.sh:

I created this to make a report based on the dhcp leases in order to more easily grasp the information I needed to review.

dhcp.awk:

This is used in users.dhcp.sh for processing dhcp leases. It is assumed to be in ~/scripts/bin. If you place it elsewhere, you'll need to edit users.dhcp.sh.

house_use_bkgnd.sh:

This script grabs charts made is google spreadsheets and builds a background from them. I use this to keep my utility usage and other info in front of me. I apply the background to the machine that is connected to the TV for hulu and other media watching. A cron job can be used to make sure the data is constantly up-to-date. Copy the charts.cfg_example to charts.cfg and set those variables to make this work. This means building some charts in Google spreadsheets and then finding the image publishing URL.

linux_audit.sh

This is a little script I tossed together to audit a series of virtual LAMP servers I was building for a client, allowing me to easily compare their requirements with my results when I was done and report those results to them for their own purposes. Things like the number of processors, hard drive space, RAM, certain software versions can be quickly seen in the output. I ran it with this little one-liner './linux_audit.sh > hostname.audit.txt'. One advantage of this is that errors from running commands where the software doesn't exist simply resulted in no output in the reported document rather than showing a error so it was a bit cleaner.

getip.sh & getipv6.sh

Simple scripts that returns the IP or IPv6 address of a linux box and nothing but. This can be pretty handy since Linux doesn't provide this info on its own without adding lots of other info.

vncserver_rc

This is a startup script for tightvncserver on ubuntu capable of handling multiple users. It requires a properly configured /etc/vncservers.conf and each user needs a .vnc/passwd and .vnc/xstartup for their service to startup properly. Manually run 'tightvncserver :1' for each user to do this and then 'tightvncserver -kill :1" to shut the server off. I don't yet have the status stuff working well, but start and stop function just fine. A sample vncservers.conf can also be found in this repo.

getswap.sh

Reports the swap space usage by Process on a linux box

Something went wrong with that request. Please try again.