Skip to content

Instantly share code, notes, and snippets.

@sillywilly42
sillywilly42 / BSDPQuery.m
Created September 1, 2016 14:25
Queries the local NetBoot service and displays response.
//
// BSDPQuery.m
// bsdpobjc
//
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <sys/socket.h>
#include <netinet/in.h>
@sillywilly42
sillywilly42 / rsync_progress.py
Last active February 25, 2016 16:14
Written in Python because I couldn't get Mark Carver's bash version to work in the DeployStudio Runtime environment.
#!/usr/bin/python
"""cocoaDialog Rsync Progress.
Rsync files using the cocoaDialog progress bar. Example usage:
$ rsync -avr --progress ~/source ~/destination | ./rsync_progress.py
Adapted from Mark Carver's gist:
https://gist.github.com/markcarver/ae6e229c33453f2547a8