Skip to content

Instantly share code, notes, and snippets.

View danhively's full-sized avatar

Dan Hively danhively

  • 03:00 (UTC -06:00)
View GitHub Profile
@danhively
danhively / fedora-install-nodejs.sh
Last active November 11, 2016 06:44 — forked from trajakovic/fedora-install-nodejs.sh
Install node.js on fedora (23+).(v5.0.0)
#!/usr/bin/env bash
func_check_for_root() {
if [ ! $( id -u ) -eq 0 ]; then
echo "ERROR: $0 Must be run as root, Script terminating" ;exit 7
fi
}
func_check_for_root
#SETUP PARAMS
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
# Inspiration http://lapwinglabs.com/blog/hacker-guide-to-setting-up-your-mac && http://fredkelly.net/articles/2014/10/19/developing_on_yosemite.html
#Create alias
alias upgrade='sudo softwareupdate --install --all --list'
#Enable repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
#Show Path bar in Finder
defaults write com.apple.finder ShowPathbar -bool true
// these code can simply get wwdc2014 videos and pdfs get it into the download tools
// https://developer.apple.com/videos/wwdc/2014/
// paset it in chrome or safrari
var hds = sds = pdfs = [];
function model_session() {
var tmp = {
title:"",
hd : "",
sd : "",
@danhively
danhively / HD.txt
Last active August 29, 2015 14:08 — forked from tony0x59/HD.txt
http://devstreaming.apple.com/videos/wwdc/2014/403xxksrj0qs8c0/403/403_hd_intermediate_swift.mov
http://devstreaming.apple.com/videos/wwdc/2014/419xxli6f60a6bs/419/419_hd_advanced_graphics_and_animation_performance.mov
http://devstreaming.apple.com/videos/wwdc/2014/101xx36lr6smzjo/101/101_hd.mov
http://devstreaming.apple.com/videos/wwdc/2014/236xxwk3fv82sx2/236/236_hd_building_interruptible_and_responsive_interactions.mov
http://devstreaming.apple.com/videos/wwdc/2014/306xxjtg7uz13v0/306/306_hd_javascript_for_automation.mov
http://devstreaming.apple.com/videos/wwdc/2014/404xxdxsstkaqjb/404/404_hd_advanced_swift.mov
http://devstreaming.apple.com/videos/wwdc/2014/701xx8n8ca3aq4j/701/701_hd_designing_accessories_for_ios_and_os_x.mov
http://devstreaming.apple.com/videos/wwdc/2014/224xxxlsvigdoc0/224/224_hd_core_os_ios_application_architectural_patterns.mov
http://devstreaming.apple.com/videos/wwdc/2014/717xxux5eg6f9v4/717/717_hd_kids_and_apps.mov
http://devstreaming.apple.com/videos/wwdc/2014/716xx8q4shlqcp8/716/
# Inspiration http://lapwinglabs.com/blog/hacker-guide-to-setting-up-your-mac && http://fredkelly.net/articles/2014/10/19/developing_on_yosemite.html
#Create alias
alias upgrade='sudo softwareupdate --install --all --list'
#Enable repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
#Show Path bar in Finder
defaults write com.apple.finder ShowPathbar -bool true

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment.

Prep

Install xCode

#
# _ _ _ _ __ _
# (_)_ __ ___| |_ __ _| | |/ _| ___ ___| |_
# | | '_ \/ __| __/ _` | | | |_ / _ \/ __| __|
# | | | | \__ \ || (_| | | | _| __/\__ \ |_
# |_|_| |_|___/\__\__,_|_|_|_| \___||___/\__|
#
# Installfest Script for development on a Mac
#
# Author: Phillip Lamplugh, GA Instructor (2014)
# ==========================================================================
#
# Script Name: Install-Programs.ps1
#
# Author: Andy Parkhill
#
# Date Created: 27/03/2014
#
# Description: A simple environment setup script for my personal laptop.
#
Set-ExecutionPolicy Unrestricted -Force
Move-LibraryDirectory "Personal" "$env:UserProfile\skydrive\documents"
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
# Text Editors
#cinst notepad2
cinst notepadplusplus