Simple and easy, just:
mkdir apt-cacher-ng && cd apt-cacher-ng
curl -LO https://raw.github.com/gist/1747868/Vagrantfile
vagrant up
Tail the logs perhaps?
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" | |
| "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Disabled</key> | |
| <false/> | |
| <key>Label</key> | |
| <string>com.edb.launchd.postgresql-9.1</string> | |
| <key>ProgramArguments</key> |
| def Secured[A](username: String, password: String)(action: Action[A]) = Action(action.parser) { request => | |
| request.headers.get("Authorization").flatMap { authorization => | |
| authorization.split(" ").drop(1).headOption.filter { encoded => | |
| new String(org.apache.commons.codec.binary.Base64.decodeBase64(encoded.getBytes)).split(":").toList match { | |
| case u :: p :: Nil if u == username && password == p => true | |
| case _ => false | |
| } | |
| }.map(_ => action(request)) | |
| }.getOrElse { | |
| Unauthorized.withHeaders("WWW-Authenticate" -> """Basic realm="Secured"""") |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| import java.util.zip.ZipFile | |
| import java.io.FileInputStream | |
| import java.io.FileOutputStream | |
| import scala.collection.JavaConversions._ | |
| import java.util.zip.ZipEntry | |
| import java.io.InputStream | |
| import java.io.OutputStream | |
| import java.io.File | |
| class ZipArchive { |
| #!/bin/bash | |
| # A simple script to backup an organization's GitHub repositories. | |
| #------------------------------------------------------------------------------- | |
| # NOTES: | |
| #------------------------------------------------------------------------------- | |
| # * User @jimklimov (and probably some others called out in the long comment | |
| # thread below) have modified this script to make it more robust and keep | |
| # up with various changes in the GitHub API and response format at: | |
| # https://github.com/jimklimov/github-scripts |
| #!/usr/bin/env python | |
| # I was frustrated that no matter what buffer setting I passed to communicate, | |
| # I could not get stdout from my subprocess until the process had completed. | |
| # I googled around and came up with this, which illustrates the problem and a | |
| # solution. | |
| # http://stackoverflow.com/questions/2804543/read-subprocess-stdout-line-by-line | |
| # http://bugs.python.org/issue3907 | |
| # http://docs.python.org/library/io.html |
In August 2007 a hacker found a way to expose the PHP source code on facebook.com. He retrieved two files and then emailed them to me, and I wrote about the issue:
http://techcrunch.com/2007/08/11/facebook-source-code-leaked/
It became a big deal:
http://www.techmeme.com/070812/p1#a070812p1
The two files are index.php (the homepage) and search.php (the search page)