Skip to content

Instantly share code, notes, and snippets.

Brian Sexton bdsexton

Block or report user

Report or block bdsexton

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
bdsexton /
Last active Dec 16, 2019
Generate File System Trees in CSV Format with "tree" and "sed"

Generate File System Trees in CSV Format with "tree" and "sed"


I don't know whether this will be useful to anyone else, but I wanted to use the Linux tree command to generate file system trees in CSV format on OS X. This should work pretty much as is on Linux, although you may need or want to change the paths and optimize the usage of sed.


This uses the Linux "tree" command, which is not standard on OS X.

bdsexton / Generate UUID.scpt
Created May 4, 2012
Generate UUID via AppleScript
View Generate UUID.scpt
do shell script "uuidgen"
set uuid to (get result)
display dialog "Have a UUID on the house:" with title "UUID Generator" default answer uuid buttons "OK" default button "OK"
bdsexton / Move and Resize Current Application.scpt
Created May 4, 2012
Move and Resize Current Application via AppleScript
View Move and Resize Current Application.scpt
-- Adapted from
tell current application
set the bounds of the first window to {0, 0, 1024, 768}
end tell
bdsexton / load.js
Created Feb 1, 2015
Non-Destructive load-Event Handler
View load.js
window.addEventListener("load", function(event) {
console.log("Hello! Non-destructive load-event handlers are the best kind! Don't you agree?");
console.log("load event: %o", event);
bdsexton / angularjs-directive-module.js
Created Nov 27, 2014
An AngularJS Directive via Isolated Module JavaScript
View angularjs-directive-module.js
(function() {
An AngularJS Directive via Isolated Module JavaScript
This is just a simple example of an AngularJS module that defines a
directive within an immediately invoked function expression, which can
be stored in and loaded from a separate file for clear, lean code
organization and easy distribution.
bdsexton / .gitignore
Last active Aug 29, 2015
This is just a simple .gitignore file to ignore common clutter.
View .gitignore
# OS X
# Adobe Dreamweaver
# Sublime Text
# JetBrains IDEs
# CodeKit
bdsexton / template.sublime-project
Created Oct 5, 2014
This is just a simple Sublime Text 2 project file template that excludes some common clutter.
View template.sublime-project
"path": "/path/to/project/root",
"file_exclude_patterns": [".gitignore", "*.sublime-*"],
"folder_exclude_patterns": [".idea"]
View Bookmarklet Template
javascript:(function(){/* Do stuff here. */}());void(0);
View Translucent Magenta Outline CSS
outline: 1px dotted rgba(255, 0, 255, 0.5);
outline-offset: -1px;
bdsexton / Main.sublime-menu
Created Apr 4, 2014
New Sublime Text Layouts (One Left and Two Right & Two Left and One Right) via Menu
View Main.sublime-menu
"caption": "View",
"mnemonic": "V",
"id": "view",
"caption": "Layout",
"mnemonic": "L",
You can’t perform that action at this time.