An introduction to curl
using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
# Start the old vagrant | |
$ vagrant init centos-6.3 | |
$ vagrant up | |
# You should see a message like: | |
# [default] The guest additions on this VM do not match the install version of | |
# VirtualBox! This may cause things such as forwarded ports, shared | |
# folders, and more to not work properly. If any of those things fail on | |
# this machine, please update the guest additions and repackage the | |
# box. |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
require 'chef' | |
Chef::Config.from_file(File.join(File.dirname(__FILE__), '.chef', 'knife.rb')) | |
vms = { | |
"testbox" => { | |
:box => "precise64", | |
:ipaddress => "192.168.33.10", |
These instructions are an amalgamation of those posted at http://jdevel.wordpress.com/2011/03/26/running-opengrok-on-windows/ and my own experience. | |
To setup OpenGrok on Windows running under Tomcat: | |
1. Download OpenGrok binary. Just go to OpenGrok Home and download the latest (0.10, currently) binary | |
2. Download ctags. Just go to ctags, download windows zip file and extract it somewhere. | |
3. Edit web.xml. You need to extract lib/source.war somewhere and modify WEB-INF/web.xml slightly. I’ve modified the CONFIGURATION param to point to my generated configuration.xml file(more about it later) and added SRC_ROOT and DATA_ROOT to point to folder with sources to index and folder that OpenGrok should keep it’s data in (I’m not sure if these two are needed if you pass in configuration.xml) | |
<context-param> | |
<param-name>CONFIGURATION</param-name> | |
<param-value>D:/GrokTest/configuration.xml</param-value> |
An introduction to curl
using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
# A two-line colored Bash prompt (PS1) with Git branch and a line decoration | |
# which adjusts automatically to the width of the terminal. | |
# Recognizes and shows Git, SVN and Fossil branch/revision. | |
# Screenshot: http://img194.imageshack.us/img194/2154/twolineprompt.png | |
# Michal Kottman, 2012 | |
RESET="\[\033[0m\]" | |
RED="\[\033[0;31m\]" | |
GREEN="\[\033[01;32m\]" | |
BLUE="\[\033[01;34m\]" |