Skip to content

Instantly share code, notes, and snippets.

View markschwarz's full-sized avatar

Mark Schwarz markschwarz

  • Square Root
  • Austin, TX, USA
View GitHub Profile
@markschwarz
markschwarz / pg_copy.sh
Created September 23, 2016 03:30 — forked from mkw/pg_copy.sh
Script to copy part or all of PostgreSQL databases between different connections
#!/usr/bin/env bash
# MIT License
#
# Copyright (c) 2016 Michael K. Werle
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@markschwarz
markschwarz / Word and Character Count.scpt
Last active November 6, 2018 22:23
Word and Character Count service for Mac OS X
-- Word and Character Count service for Mac OS X
-- Adds a Word and Character Count option to the text selection context menu
-- Use Automator to create a new service, then select the Run AppleScript action. Make
-- sure the service is set to receive "text", at the top of the window. Paste in this code
-- and save as "Word and Character Count". Now switch to a new app, select some text,
-- right-click, go to Services, and find the new option.
-- Copyright 2015, Noah Slater <nslater@apache.org>