- Install VirtualBox on your machine
- Disable login credential: $ VBoxManage setproperty websrvauthlibrary null
- Download and uncompress the following image https://s3.amazonaws.com/vmfest-images/ubuntu-10-10-64bit-server.vdi.gz
- Clone the image to the directory where you want it to be permanently stored:
$ VBoxManage clonehd /path/to/downloaded/ubuntu-10-10-64bit-server.vdi /path/to/permanent/location/ubuntu...-server.vdi
- This should produce a uuid for your new image. Keep it around
- Start VirtualBox (the GUI) and:
- Create an new image Linux - Ubuntu (64bit)
- Select "Use existing hard disk" and if your newly cloned image doesn't appear in the drop-down list, click on the folder icon and find the image in your hard disk (the one you just cloned)
This file contains hidden or 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
| /** | |
| * This file is licensed to you under the Apache License, Version 2.0 (the | |
| * "License"); you may not use this file except in compliance with the | |
| * License. You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software | |
| * distributed under the License is distributed on an "AS IS" BASIS, | |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
This file contains hidden or 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 'cl) | |
| (defun indent-if-blank () | |
| (interactive "*") | |
| (progn | |
| (flet ((error (&REST) nil)) | |
| (indent-according-to-mode)) | |
| (delete-trailing-whitespace-this-line))) | |
| (defun indent-newline-and-indent () |
This file contains hidden or 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
| /* | |
| Copyright 2012 Matthew Henderson | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, software |
This file contains hidden or 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
| ############################################################################ | |
| # _ | |
| # | |_ _ __ ___ _ ___ __ | |
| # | __| '_ ` _ \| | | \ \/ / | |
| # | |_| | | | | | |_| |> < | |
| # \__|_| |_| |_|\__,_/_/\_\ | |
| # | |
| # Cheatsheets: | |
| # https://devhints.io/tmux | |
| # `property not found` issue: |
This file contains hidden or 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
| package play.modules.migrate; | |
| import org.hibernate.dialect.MySQL5Dialect; | |
| import org.hibernate.ejb.Ejb3Configuration; | |
| import org.hibernate.tool.hbm2ddl.DatabaseMetadata; | |
| import play.Play; | |
| import play.db.DB; | |
| import play.db.DBPlugin; | |
| import play.utils.Utils; |
This file contains hidden or 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
| # bash completion for rake | |
| # | |
| # some code from on Jonathan Palardy's http://technotales.wordpress.com/2009/09/18/rake-completion-cache/ | |
| # and http://pastie.org/217324 found http://ragonrails.com/post/38905212/rake-bash-completion-ftw | |
| # | |
| # For details and discussion | |
| # http://turadg.aleahmad.net/2011/02/bash-completion-for-rake-tasks/ | |
| # | |
| # INSTALL | |
| # |
This file contains hidden or 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
| ;; without cake-pallet | |
| "/Users/sritchie/.rvm/gems/ruby-head/gems/cake-0.6.2/lib/bake.jar:/Users/sritchie/.rvm/gems/ruby-head/gems/cake-0.6.2/lib/cake.jar:/Users/sritchie/.rvm/gems/ruby-head/gems/cake-0.6.2/lib/clojure.jar:src:src/clj:lib/dev/pallet-lein-0.4.0.jar:lib/dev/swank-clojure-1.2.1.jar:/Users/sritchie/.cake/lib/dev/*" | |
| ;; with cake-pallet | |
| "/Users/sritchie/.rvm/gems/ruby-head/gems/cake-0.6.2/lib/bake.jar:/Users/sritchie/.rvm/gems/ruby-head/gems/cake-0.6.2/lib/cake.jar:/Users/sritchie/.rvm/gems/ruby-head/gems/cake-0.6.2/lib/clojure.jar:src:src/clj:lib/dev/aopalliance-1.0.jar:lib/dev/bcprov-jdk15-1.44.jar:lib/dev/cake-pallet-0.4.0.jar:lib/dev/clj-http-0.1.1.jar:lib/dev/clj-ssh-0.2.0.jar:lib/dev/commons-codec-1.4.jar:lib/dev/commons-io-1.4.jar:lib/dev/commons-logging-1.1.1.jar:lib/dev/enlive-1.0.0.jar:lib/dev/gson-1.5.jar:lib/dev/guava-r06.jar:lib/dev/guice-2.1-r1201.jar:lib/dev/httpclient-4.0.1.jar:lib/dev/httpcore-4.0.1.jar:lib/dev/inject-1.0.jar:lib/dev/jclouds-blobstore-1.0-beta-8.jar:lib/dev/jclouds |
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>KeepAlive</key> | |
| <true/> | |
| <key>Label</key> | |
| <string>com.rabbitmq.rabbitmq-server</string> | |
| <key>Program</key> | |
| <string>/usr/local/sbin/rabbitmq-server</string> |
This file contains hidden or 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/bash | |
| ### Settings | |
| svn_wk='/srv/tftp/data/' | |
| svn_user='user' | |
| svn_passwd='passwd' | |
| ### Variables | |
| date=`date +"%F %T"` | |
| svn='/usr/bin/svn' |