Skip to content

Instantly share code, notes, and snippets.

View lisposter's full-sized avatar

Leigh lisposter

View GitHub Profile
@kevinelliott
kevinelliott / osx-10.10-setup.md
Last active December 1, 2023 08:21
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

/**
* 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();
import os
import sys
import re
import hashlib
import csv
import time
import locale
import getopt
@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()
};
});
@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"
@jasonian
jasonian / OmniFocus Taks to Evernote.applescript
Created April 29, 2013 07:42
Copy selected tasks from OmiFocus to Evernote. No error checking, written for a one-time import. Worked perfectly for my needs.
tell application "OmniFocus"
tell content of first document window of front document
set tasksSelected to value of (selected trees where (class of its value is not item) and (class of its value is not folder))
if length of tasksSelected is 0 then
display alert "Select some tasks in OmniFocus."
return
end if
end tell
@afair
afair / tmux.cheat
Last active October 11, 2023 13:48
Tmux Quick Reference & Cheat sheet - 2 column format for less scrolling!
========================================== ==========================================
TMUX COMMAND WINDOW (TAB)
========================================== ==========================================
List tmux ls List ^b w
New new -s <session> Create ^b c
Attach att -t <session> Rename ^b , <name>
Rename rename-session -t <old> <new> Last ^b l (lower-L)
Kill kill-session -t <session> Close ^b &
@erikreagan
erikreagan / mac-apps.md
Created August 4, 2012 19:18
Mac developer must-haves

Mac web developer apps

This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.

— Erik

@nicerobot
nicerobot / README.md
Last active February 25, 2024 02:41
Mac OS X uninstall script for packaged install of node.js from https://stackoverflow.com/a/9287292/23056

To run this, you can try:

curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh
@jlong
jlong / uri.js
Created April 20, 2012 13:29
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"