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
yum install rdoc ri zlib zlib-devel | |
yum install ruby-devel | |
wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz | |
tar -zxvf rubygems-1.3.5.tgz | |
cd rubygems-1.3.5 | |
ruby setup.rb | |
gem install jekyll | |
Results in: | |
=========== |
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
// uninstall all previous Apache and PHP related RPMs | |
# yum remove httpd* php* | |
// enable both repositories | |
# yum install yum-priorities -y | |
# rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm | |
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm | |
# yum install nginx |
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
// Setting up an IRC server on Cent 6 | |
// Create a user and group for this guy | |
$ groupadd ircadmin && useradd -m -g ircadmin -s /bin/bash ircadmin | |
// Make a working directory (/var/source/) | |
mkdir source && cd source | |
// Grab the latest versions of Anope and UnrealIRCd | |
$ wget http://www.unrealircd.com/downloads/Unreal3.2.9.tar.gz http://downloads.sourceforge.net/project/anope/anope-stable/Anope%201.8.7/anope-1.8.7.tar.gz |
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
- (void)mergeContentsOfPath:(NSString *)srcDir intoPath:(NSString *)dstDir withError:(NSError **)error { | |
NSLog(@"Merge from Dir: %@ to Dir: %@", srcDir, dstDir); | |
NSString *sourceBasePath = srcDir; | |
NSString *destBasePath = dstDir; | |
NSURL *destBaseURL = [NSURL fileURLWithPath:destBasePath]; | |
int subPathIndex = (int)[sourceBasePath length] + 1; | |
NSFileManager *fileManager = [NSFileManager defaultManager]; | |
NSDirectoryEnumerator *dirEnum = [fileManager enumeratorAtURL:[NSURL fileURLWithPath:sourceBasePath] | |
includingPropertiesForKeys:[NSArray arrayWithObject:NSURLIsDirectoryKey] |
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
# Create a directory named "Sublime Text 3 Sync" under iCloud Drive | |
mkdir ~/Library/Mobile\ Documents/com~apple~CloudDocs/SubLime\ Text\ 3\ Sync | |
# Enter Sublime Text 3's directory | |
cd ~/Library/Application\ Support/Sublime\ Text\ 3/ | |
# Move "Installed Packages" directory to iCloud Drive and make a link | |
mv Installed\ Packages/ ~/Library/Mobile\ Documents/com~apple~CloudDocs/SubLime\ Text\ 3\ Sync/ | |
ln -s ~/Library/Mobile\ Documents/com~apple~CloudDocs/SubLime\ Text\ 3\ Sync/Installed\ Packages |
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
// | |
// ModelManager.swift | |
// AppName | |
// Remember to add the iCloud entitlement under the project capabilities | |
// | |
import Foundation | |
import CoreData | |
let kCoreDataUpdated: String = "coreDataUpdated" |
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
# GPG on Tower |