Skip to content

Instantly share code, notes, and snippets.

View lisposter's full-sized avatar

Leigh lisposter

View GitHub Profile
@IanSchray
IanSchray / 2013-02-15-TUAW_Waldie.applescript
Last active December 23, 2015 06:39 — forked from benwaldie/2013-02-15-TUAW_Waldie.applescript
Hands-off version for automatically running via Automator. Creates a report for "Yesterday" and saves it to Evernote.
-- Prepare a name for the new note
set theNoteName to "OmniFocus Completed Task Report"
(*
-- Prompt the user to choose a scope for the report
activate
set theReportScope to choose from list {"Today", "Yesterday", "This Week", "Last Week", "This Month"} default items {"Yesterday"} with prompt "Generate a report for:" with title "OmniFocus Completed Task Report"
if theReportScope = false then return
*)
set theReportScope to "Yesterday"
@lordfriend
lordfriend / myController.js
Last active December 23, 2015 15:39
currently cannot read value from template attribute which is a controller define model, so change the defaultParams if you need a different init option, or you can provider a constant value to template attribute.
angular.module('myApp').controller('myController', function($scope) {
$scope.daterangeModel = {
start: moment().subtract('days', 5),
end: moment()
};
});
import os
import sys
import re
import hashlib
import csv
import time
import locale
import getopt
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();
@kevinelliott
kevinelliott / osx-10.10-setup.md
Last active July 3, 2025 21:23
Mac OS X 10.10 Yosemite Setup

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software

@acarril
acarril / bootable-win-on-mac.md
Created November 18, 2022 17:49
Create a bootable Windows USB using macOS

For some reason, it is surprisingly hard to create a bootable Windows USB using macOS. These are my steps for doing so, which have worked for me in macOS Monterey (12.6.1) for Windows 10 and 11. After following these steps, you should have a bootable Windows USB drive.

1. Download a Windows disc image (i.e. ISO file)

You can download Windows 10 or Windows 11 directly from Microsoft.

2. Identify your USB drive

After plugging the drive to your machine, identify the name of the USB device using diskutil list, which should return an output like the one below. In my case, the correct disk name is disk2.