This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| import grp, pwd, os | |
| from ctypes import * | |
| from ctypes.util import find_library | |
| libc = cdll.LoadLibrary(find_library('libc')) | |
| # getgrouplist_2() is an undocumented API which, I beleive, retrives all of | |
| # a user's groups instead of the maximum 16 groups which getgrouplist() gets |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # cocoaDialog Rsync Progress | |
| # | |
| # Rsync files using the cocoaDialog progress bar. Example usage: | |
| # $ rsync -avr --progress ~/source ~/destination | ./rsync-progress.sh | |
| # | |
| # Copyright (C) 2014 Mark Carver | |
| # | |
| # Adapted from Kevin Hendricks example code |