This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
| doInstall <- TRUE | |
| toInstall <- c("ggplot2") | |
| if(doInstall){install.packages(toInstall, repos = "http://cran.us.r-project.org")} | |
| lapply(toInstall, library, character.only = TRUE) | |
| ANES <- read.csv("http://www.oberlin.edu/faculty/cdesante/assets/downloads/ANES.csv") | |
| ANES <- ANES[ANES$year == 2008, -c(1, 11, 17)] # Limit to just 2008 respondents, | |
| head(ANES) # remove some non-helpful variables | |
| # Fit several models with the same DV: |
| # OSX for Hackers (Mavericks/Yosemite) | |
| # | |
| # Source: https://gist.github.com/brandonb927/3195465 | |
| #!/bin/sh | |
| # Some things taken from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # Ask for the administrator password upfront |
| #!/bin/bash | |
| # | |
| # Notify of Homebrew updates via Notification Center on Mac OS X | |
| # | |
| # Author: Chris Streeter http://www.chrisstreeter.com | |
| # Requires: terminal-notifier. Install with: | |
| # brew install terminal-notifier | |
| TERM_APP='/Applications/Terminal.app' | |
| BREW_EXEC='/usr/local/bin/brew' |
| from whoosh.index import open_dir | |
| from whoosh.index import create_in | |
| from whoosh.fields import * | |
| from whoosh.qparser import QueryParser | |
| import glob | |
| import os | |
| # USER SET PARAMETERS ############ |
| notify <- function(msg="Operation complete") { | |
| in.osx <- (Sys.info()['sysname'] == "Darwin") | |
| in.rstudio <- (Sys.getenv("RSTUDIO") == "1") | |
| in.rgui <- (Sys.getenv("R_GUI_APP_REVISION") != "") | |
| dir.notifier <- system("which terminal-notifier", intern = TRUE) | |
| if (in.rstudio) { # hack to see if running in RStudio | |
| title <- "RStudio" | |
| sender <- activate <- "org.rstudio.RStudio" |
| # -*- coding: utf-8 -*- | |
| ''' | |
| This Python script is oriented towards oil, gas, and fracking well | |
| information download, extract, and output at the state-level within | |
| the United States of America. Not all states are present as not all | |
| states either allow fracking or have any sites available for download. | |
| This Python script is dependent upon another Python script entitled | |
| Src2Tgt.py, which is also available as a Gist under the same name. |
| #####VECTORISED FUNCTION | |
| library(data.table) | |
| library(geosphere) | |
| library(foreign) | |
| library(lfe) | |
| library(reshape) | |
| iterateObs<-function(y1,e1,X1,fordist,coefficients,cutoff=250000) { |
| #!/bin/bash | |
| # IMPORTANT: You will need to disable SIP aka Rootless in order to fully execute this script, you can reenable it after. | |
| # WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars. | |
| # Get active services: launchctl list | grep -v "\-\t0" | |
| # Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents | |
| # Agents to disable | |
| TODISABLE=('com.apple.security.keychainsyncingoveridsproxy' 'com.apple.personad' 'com.apple.passd' 'com.apple.screensharing.MessagesAgent' 'com.apple.CommCenter-osx' 'com.apple.Maps.mapspushd' 'com.apple.Maps.pushdaemon' 'com.apple.photoanalysisd' 'com.apple.telephonyutilities.callservicesd' 'com.apple.AirPlayUIAgent' 'com.apple.AirPortBaseStationAgent' 'com.apple.CalendarAgent' 'com.apple.DictationIM' 'com.apple.iCloudUserNotifications' 'com.apple.familycircled' 'com.apple.familycontrols.useragent' 'com.apple.familynotificationd' 'com.apple.gamed' 'com.apple.icloud.findmydeviced.findmydevi |
An easy to refer to document for regularly setting up macOS 10.13 High Siera, in flavor of my previous macOS/OSX setup gists:
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. I generally reinstall each computer from scratch every 6 months, and I do not perform upgrades between releases.