Skip to content

Commit b4e59e4

Browse files
committed
Move scripts into root.
Language directories are rather pointless and make changing a script's language hard and make no sense for a script that uses multiple languages.
1 parent 90174d9 commit b4e59e4

File tree

21 files changed

+18
-7
lines changed

21 files changed

+18
-7
lines changed

README.markdown

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
This repo holds some generally useful scripts I've written. If any of these turn out useful to you, buy some beer in celebration and drink it to my health and good fortune.
22

3-
## [bashlib](https://github.com/lhunath/scripts/tree/master/bash/bashlib)
3+
## [bashlib](https://github.com/lhunath/scripts/tree/master/bashlib)
44
`bashlib` is a library of convenience functions for the GNU Bash shell.
55

66
Bash is the POSIX-compliant shell you find on most any UNIX system. This library makes it a little easier to make sane and appealing bash scripts.
@@ -16,7 +16,7 @@ Amoungst the many features it provides are:
1616
### Usage
1717
The recommended way of using `bashlib` is by creating a symlink in `PATH` to the `bashlib` script in your check-out of this repo. Eg.
1818

19-
ln -s ~/.src/scripts/bash/bashlib/bashlib ~/.bin/
19+
ln -s ~/.src/scripts/bashlib/bashlib ~/.bin/
2020

2121
Then your scripts can use it by doing a `source` without specifying the location, like this:
2222

@@ -25,7 +25,7 @@ Then your scripts can use it by doing a `source` without specifying the location
2525
See the comments in the file for information about what the functions do and how to use them.
2626

2727

28-
## [timetravel](https://github.com/lhunath/scripts/tree/master/bash/bashlib)
28+
## [timetravel](https://github.com/lhunath/scripts/tree/master/bashlib)
2929
`timetravel` is a command-line tool for accessing the files in your Time Machine backups.
3030

3131
Time Machine is an OS X technology for performing continuous backups of your files to local or remote disks. Since OS X 10.7 (Lion), Time Machine makes local backups of all your files. This means you have snapshot versions of all your files at different times in the past. If you are running Lion right now, you already have these snapshots.
@@ -53,7 +53,7 @@ When showing the contents of directories, their files are enumerated. When show
5353

5454
When no host, time or disk is specified (using `-H`, `-T` or `-D`), `timetravel` will use default values for them. The host will default to the name of your computer, the time will default to `Latest` and the disk will default to `Macintosh HD`. When using `timetravel` to list snapshots (the `-l` option), these will default to empty values instead. Note that when listing snapshots, these values are actually search prefixes. If, for example, you use `-T 2012-06`, all snapshots in June 2012 will be searched. Empty values will cause all snapshots of that type to be searched.
5555

56-
## [mvn-tools](https://github.com/lhunath/scripts/tree/master/bash/mvn-tools)
56+
## [mvn-tools](https://github.com/lhunath/scripts/tree/master/mvn-tools)
5757

5858
`mvn-tools` is a collection of utilities for working with maven repositories and
5959
java web application distributions.
@@ -66,7 +66,7 @@ java web application distributions.
6666
- mvn-tools: Installer / common library for the framework.
6767
- mvn-web: Used to manage live extracted files from JBoss to a safe location where you can easily edit and see live changes. Also allows you to apply your edits to these files back onto your repository.
6868

69-
## [tunmgrd](https://github.com/lhunath/scripts/tree/master/bash/tunmgrd)
69+
## [tunmgrd](https://github.com/lhunath/scripts/tree/master/tunmgrd)
7070

7171
`tunmgrd` is a daemon that you use to bring up and keep up SSH connections. Great for setting and keeping up tunnels, port forwards and master connections.
7272

@@ -78,7 +78,7 @@ I've had a really hard time finding a quality product that did this for me in a
7878
- Useful reporting
7979
- Useful client utilities to interact with the daemon
8080

81-
## [diagnose](https://github.com/lhunath/scripts/tree/master/bash/diagnose)
81+
## [diagnose](https://github.com/lhunath/scripts/tree/master/diagnose)
8282

8383
`diagnose` is a tool for checking what's going on with your connectivity to the Internet.
8484

@@ -88,7 +88,7 @@ I've had a really hard time finding a quality product that did this for me in a
8888

8989
Run `diagnose` and look at what it tells you. If breakage is detected, it will generally issue some mildly useful advice.
9090

91-
## [parseJSON](https://github.com/lhunath/scripts/tree/master/bash/parseJSON)
91+
## [parseJSON](https://github.com/lhunath/scripts/tree/master/parseJSON)
9292

9393
`parseJSON` is a filter used to convert JSON data into a structure much more friendly to parsing from bash scripts.
9494

File renamed without changes.

bash/dcs/dcs renamed to dcs/dcs

File renamed without changes.
File renamed without changes.
File renamed without changes.

git-diff-plist

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
PlistBuddy -x -c Print ${1+"$1"} | python -c '
3+
import plistlib
4+
import sys
5+
6+
try:
7+
plistlib.writePlist(plistlib.readPlist(sys.stdin), sys.stdout)
8+
sys.stdout.flush()
9+
except IOError:
10+
pass
11+
' | PlistBuddy -c Print -
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)