Skip to content

Instantly share code, notes, and snippets.

@hajaalin
hajaalin / environment.yml
Created April 27, 2017 07:59
Conda environment file for CellProfiler
# See https://github.com/CellProfiler/CellProfiler/wiki/Conda-Installation
#
# conda env create -f environment.yml
# source activate cellprofiler-master
# cellprofiler
name: cellprofiler-master
# in order of priority: lowest (top) to highest (bottom)
channels:
# - goodman # mysql-python for mac
@hajaalin
hajaalin / backup-github.sh
Last active January 5, 2016 14:33 — forked from rodw/backup-github.sh
A simple script to backup an organization's GitHub repositories, wikis and issues.
#!/bin/bash
# A simple script to backup an organization's GitHub repositories.
GHBU_BACKUP_DIR=${GHBU_BACKUP_DIR-"/home/hajaalin/Backups/GitHub"} # where to place the backup files
GHBU_ORG=${GHBU_ORG-"<CHANGE-ME>"} # the GitHub organization whose repos will be backed up
# (if you're backing up a user's repos instead, this should be your GitHub username)
GHBU_UNAME=${GHBU_UNAME-"<CHANGE-ME>"} # the username of a GitHub account (to use with the GitHub API)
GHBU_PASSWD=${GHBU_PASSWD-"<CHANGE-ME>"} # the password for that account
GHBU_GITHOST=${GHBU_GITHOST-"backup.github.com"} # the GitHub hostname (see comments)
GHBU_PRUNE_OLD=${GHBU_PRUNE_OLD-true} # when `true`, old backups will be deleted
def authorize_key_for_root(config, *key_paths)
[*key_paths, nil].each do |key_path|
if key_path.nil?
fail "Public key not found at following paths: #{key_paths.join(', ')}"
end
full_key_path = File.expand_path(key_path)
if File.exists?(full_key_path)
config.vm.provision 'file',
@hajaalin
hajaalin / README.md
Created March 23, 2012 17:20 — forked from joshmoore/README.md
HyLdap example