Skip to content

Instantly share code, notes, and snippets.

@magentanova
magentanova / README.md
Last active October 13, 2018 23:15
Mountain Workshops Readme

This document is a brief layout of the technology underlying Mountain Workshops, specifically as pertains to the production of mountainworkshops.org. It is intended as lay of the land for all participants and staff, not just developers, but some light technical descriptions will be provided as well as links to documentation for specific software. In general, Mountain Workshops involves a lot of different interlocking components and it's important for technologists and other stakeholders to get a bird's-eye view of what those components are, how they depend on each other, and how they are sequenced along the timeline of workshop.

The focus here is on the transmission of photojournalism stories. Videos are partially accommodated by this system. Great strides were made toward full automation in 2017, but as of now there are still manual steps that need to be taken for data visualization projects.

Timeline

  1. This year's workshop and participants are created and saved as
@bruienne
bruienne / logoutwatcher.sh
Last active July 26, 2023 21:58
logout watcher
onLogout() {
# Insert whatever script you need to run at logout
exit
}
echo "INFO - Watching ${HOME}" >> /var/log/org.my.log
trap 'onLogout' SIGINT SIGHUP SIGTERM
while true; do
@bruienne
bruienne / org.my.logoutwatcher.plist
Last active November 3, 2023 23:04
logout watcher LA
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.my.logoutwatcher</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/myorg/logoutwatcher.sh</string>
</array>
@gjpalau
gjpalau / rename-and-bind.sh
Last active May 25, 2020 22:54
mac renamer + AD bind script
#!/bin/bash
# uniMIS renamer script -- use with ComputerName name below
# By Gilbert Palau, Enterprise OS X - www.enterpriseosx.com
#
# this script renames the mac by chassi type + serial number: ??-SERIAL
#
# Legend:
#
laptop="ML-"
workstation="MW-"
@mkuron
mkuron / Makefile
Last active March 21, 2021 21:39
Flash Player Update Script for Mac OS X
install:
cp de.kuron-germany.flash-update.plist /Library/LaunchDaemons/
mkdir -p /usr/local/bin
cp flash_check.sh /usr/local/bin/
launchctl load /Library/LaunchDaemons/de.kuron-germany.flash-update.plist
@natelandau
natelandau / .bash_profile
Last active June 13, 2024 18:01
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@brandonb927
brandonb927 / osx-for-hackers.sh
Last active July 13, 2024 21:24
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx
@pitch-gist
pitch-gist / gist:2999707
Created June 26, 2012 22:21
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
@saetia
saetia / gist:1623487
Last active July 16, 2024 05:56
Clean Install – OS X 10.11 El Capitan

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat