Skip to content

Instantly share code, notes, and snippets.

@eduo
eduo / pull-osx-printer.sh
Last active May 8, 2020 13:04
Pulls the configuration of an OSX Printer, so it can be loaded elsewhere
#!/bin/sh
#
# (c) Copyright PaperCut Software, 2007
#
# Author: Chris Dance (chris.dance <a> papercut.com)
# A simple script to copy printer configuration from one Apple Mac OS X
# system to another.
#
TARGET_HOST=`hostname`
@eduo
eduo / SyncToRemoteFolderOSX.sh
Created May 8, 2020 13:03
OSX Bash Script to synchronise remote folder when changes are detected. Requires fswatch (homebrew)
#!/bin/bash
#
run_rsync_acc () {
RSYNC_COMMAND=$(rsync -azPim --delete-before --no-motd --exclude ".*/" --exclude=.DS_Store ~/rootfolder/ remoteuser@remotesite.com:remotelocation)
if [ $? -eq 0 ]; then
# Success do some more work!
if [ -n "${RSYNC_COMMAND}" ]; then
# Stuff to run, because rsync has changes
@eduo
eduo / Subreddit
Created July 31, 2020 14:54
List of Subreddits
1200isplenty
15minutefood
3Dprinting
AccentChallenge
Adorifying
AdviceAnimals
AltStore
announcements
AppHookup
apple