- Buy a mac mini
- Install 10.8
- Create a user account for Jenkins
- Install xcode
- Turn on screen sharing
- Turn off energy save sleeping
- Login as your jenkins user
- Use ssh-keygen to create a key for github
- Create a github account for your build machine
- Add the key to your build machine github account
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
source :rubygems | |
# We are not loading Active Record, nor Active Resources etc. | |
# We can do this in any app by simply replacing the rails gem | |
# by the parts we want to use. | |
gem "actionpack", "~> 3.2" | |
gem "railties", "~> 3.2" | |
gem "tzinfo" | |
# Let's use thin |
Authored by Peter Rybin , Chrome DevTools team
In this short guide we'll review some new Chrome DevTools features for "function scope" and "internal properties" by exploring some base JavaScript language concepts.
Let's start with closures – one of the most famous things in JS. A closure is a function, that uses variables from outside. See an example:
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
--Script for setting Reminders for LaunchBar and Alfred | |
--For Alfred, Applescript must NOT be set to run in Background otherwise date parsing does not work | |
--For LaunchBar, place the script in ~/Library/Scripts/LaunchBar | |
--by Michelle L. Gill, 10/07/2012 | |
--inspired by https://gist.github.com/3187630 | |
--Notes on valid reminders | |
--Order of the text must be "title #note $list @date time" but note and list are optional. Date and time are also optional but both must be included if one is included | |
--Times can be in 12- or 24-hour format, and 24-hour format is assumed if am/pm are absent | |
--Times can include minutes and seconds (colon separated like hours:minutes:seconds) but minutes and seconds aren't required |
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
From: Chris DeSalvo <chris.desalvo@voxer.com> | |
Subject: Why we can't process Emoji anymore | |
Date: Thu, 12 Jan 2012 18:49:20 -0800 | |
Message-Id: <AE459007-DF2E-4E41-B7A4-FA5C2A83025F@voxer.com> | |
--Apple-Mail=_6DEAA046-886A-4A03-8508-6FD077D18F8B | |
Content-Transfer-Encoding: quoted-printable | |
Content-Type: text/plain; | |
charset=utf-8 |
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/python | |
import BaseHTTPServer | |
import SimpleHTTPServer | |
import os | |
import subprocess | |
import shlex | |
import sys | |
import multiprocessing | |
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/local/Cellar/tomcat/7.0.34/libexec/bin/catalina.sh run | |
Console output is saving to: /Users/rakhmad/output.log | |
[2013-01-17 06:48:08,252] Artifact MoslemCMS:war: Server is not connected. Press 'Deploy' to start deployment. | |
[2013-01-17 06:48:08,253] Artifact MoslemServer:war: Server is not connected. Press 'Deploy' to start deployment. | |
Jan 17, 2013 6:48:09 PM org.apache.catalina.core.AprLifecycleListener init | |
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /Users/rakhmad/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:. | |
Jan 17, 2013 6:48:09 PM org.apache.coyote.AbstractProtocol init | |
INFO: Initializing ProtocolHandler ["http-bio-8080"] | |
Jan 17, 2013 6:48:09 PM org.apache.coyote.AbstractProtocol init | |
INFO: Initializing ProtocolHandler ["ajp-bio-8009"] |
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/local/Cellar/tomcat/7.0.34/libexec/bin/catalina.sh run | |
Console output is saving to: /Users/rakhmad/output.log | |
[2013-01-17 06:48:08,252] Artifact MoslemCMS:war: Server is not connected. Press 'Deploy' to start deployment. | |
[2013-01-17 06:48:08,253] Artifact MoslemServer:war: Server is not connected. Press 'Deploy' to start deployment. | |
Jan 17, 2013 6:48:09 PM org.apache.catalina.core.AprLifecycleListener init | |
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /Users/rakhmad/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:. | |
Jan 17, 2013 6:48:09 PM org.apache.coyote.AbstractProtocol init | |
INFO: Initializing ProtocolHandler ["http-bio-8080"] | |
Jan 17, 2013 6:48:09 PM org.apache.coyote.AbstractProtocol init | |
INFO: Initializing ProtocolHandler ["ajp-bio-8009"] |
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
import org.apache.commons.codec.binary.Base64; | |
private String encodeFileToBase64Binary(String fileName) | |
throws IOException { | |
File file = new File(fileName); | |
byte[] bytes = loadFile(file); | |
byte[] encoded = Base64.encodeBase64(bytes); | |
String encodedString = new String(encoded); |
Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU
Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys
Consumer key: CjulERsDeqhhjSme66ECg