This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Freetds < Formula | |
url 'http://ibiblio.org/pub/Linux/ALPHA/freetds/stable/git/freetds-0.92.51.tar.gz' | |
homepage 'http://www.freetds.org/' | |
md5 '1d5f7292c9acf3209e1814e3e98664b2' | |
def install | |
system "./configure", | |
"--prefix=#{prefix}", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/tcsh | |
set ptail = "%"; | |
set color_path="%{\033[0;47m%}" | |
set color_gray="%{\033[1;36m%}" | |
set color_normal="%{\033[0m%}" | |
set color_history="%{\033[0;35m%}" | |
# history path | |
set p1="%B%h%b $color_path%~$color_normal%b " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# awk -f sort.awk file-to-sort.yaml | |
BEGIN { | |
RS = "-\n"; | |
FS = "\n" | |
ORS = "\n-\n"; | |
OFS = "\n"; | |
} | |
{ | |
print $6, $2, $1, $4, $3, $5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# ask for an admin password upfront | |
sudo -v | |
sudo chgrp -R admin /usr/local | |
sudo chgrp -R admin /Library/Caches/Homebrew | |
sudo chmod -R g+w /usr/local | |
sudo chmod -R g+w /Library/Caches/Homebrew |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
536e6f7720576869746520616e642074686520536576656e204477617266730a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAUDBAQEAwUEBAQFBQUGBwwIBwcHBw8LCwkMEQ8SEhEPERETFhwXExQaFRERGCEYGh0dHx8fExciJCIeJBweHx7/2wBDAQUFBQcGBw4ICA4eFBEUHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh7/wAARCAAqAEADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD5ARtpyacCXOemKmunhMaqi8iooACemayT0uZPuBGe9WtL03UNRu0tdOs7i7uHOEihjLsx9gOav+D/AA5qfijxPY6BpFuZry9mEcajoM9SfQAZJPoK/RT4a+CfB/wo8NQ2VlbRG98ofa74x7pZ3xySeoGei9Ka1KpwdR2R8Ez/AAq+JFtam8uPBWuRwAbixtH4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/2wBDAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/wgARCABAAEADASIAAhEBAxEB/8QAHQAAAQQDAQEAAAAAAAAAAAAABgAHCAkCBAUKA//EABwBAAICAwEBAAAAAAAAAAAAAAUGBwgAAgQBA//aAAwDAQACEAMQAAABv8SWYkuXrnUjmM1NKxAivw8mnqd5vuZpMUfHm9bHeZGo8gtRqFouoEh+4eoyzdtGkETHdgCb53Q7+ehX50DynobW3vLmmycuWkHJmkK73G/8U+dBXzMRALVDLOZ8ZYiYPtZuIORYZR//xAAjEAACAwADAAEEAwAAAAAAAAAEBQIDBgABBxAIERIVExQg/9oACAEBAAEFAv8APq28H84xGO+oLcWtYy6n18lmCADketJpc3YWl2i3N45qHLPEQLR/D7Sqc4M9baHY3NXVsZ7z9k2z/wCJWSj5U6/toeajcrkHLYluC9FppW8GUiIwkS81u0bGSeaTG0frX+23JVLYskVfYwZuXchFa9ILZSdoC2ZdacHGZ+NN2O6tJ0m28b0Zmuz5IDKEWFMapCTutmb3X0Dnup3d3Vxh54v7jDnrvhrLPFl6u1arRaMZ3WKev/jKZ11Qzi852SvCoXCc76+/JY3IzsM8OwVxBfkSnpWq8m1NJaDOBoquf//EAC8RAAIBAgQFAgMJAAAAAAAAAAECAwQRABIhMQUTQVFhMnEGFCIVI0KBkaGxwfD/2gAIAQMBAT8BwBfQXPsLnXwMHhtXFy2miMQkI5YkBDSXsdF9WXu2wGOIRKsEDiHlHmPE+XbREYX9zmt3t2tinpp6uVYaeJ5ZHNgqC/5nsB1J0GOF8Dp+HWep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Toggles the visibility of hidden files in OS X Mavericks Finder | |
current_value=$(defaults read com.apple.finder AppleShowAllFiles 2> /dev/null) | |
if [ -z "$current_value" ]; then | |
defaults write com.apple.finder AppleShowAllFiles true | |
else | |
defaults delete com.apple.finder AppleShowAllFiles | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Taken from: http://h2o-release.s3.amazonaws.com/h2o/rel-tibshirani/8/index.html | |
# The following two commands remove any previously installed H2O packages for R. | |
if ("package:h2o" %in% search()) { detach("package:h2o", unload=TRUE) } | |
if ("h2o" %in% rownames(installed.packages())) { remove.packages("h2o") } | |
# Next, we download packages that H2O depends on. | |
if (! ("methods" %in% rownames(installed.packages()))) { install.packages("methods") } | |
if (! ("statmod" %in% rownames(installed.packages()))) { install.packages("statmod") } | |
if (! ("stats" %in% rownames(installed.packages()))) { install.packages("stats") } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ "$EUID" -ne 0 ] | |
then echo "Please run as root" | |
exit | |
fi | |
cp /usr/share/zoneinfo/America/Los_Angeles /etc/localtime | |
yum -y update | |
yum -y install git zsh tree make tmux | |
yum -y install R |