Skip to content

Instantly share code, notes, and snippets.

View itsprdp's full-sized avatar

Pradeep Gangadharaiah itsprdp

View GitHub Profile
# Getting started with Chef-Server tutorial:
## What is Vagrant ?
#####You can read about it [here](http://docs.vagrantup.com/v2/getting-started/) .
## What is Chef-Server ?
#####You can read about it [here](http://docs.opscode.com/chef_overview.html ).
### Step 1 : Create Virtual Machines using Vagrant
inputs = %w[
CollectionSelectInput
DateTimeInput
FileInput
GroupedCollectionSelectInput
NumericInput
PasswordInput
RangeInput
StringInput
TextInput
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
fix:
/usr/libexec/git-core/git-rebase--interactive
-git rev-list $merges_option --pretty=oneline --abbrev-commit\
+git rev-list $merges_option --pretty=">%h (%an <%ae>) %s"\
result:
1 pick 19f43c1 (Yuri Dyachenko <yurial@gplvote.org>) add: gcrypt::noerr
2 pick 990a7e8 (Yuri Dyachenko <yurial@gplvote.org>) add: gcrypt::throwif( err ) throw if err != noerr
3 pick cb03f3b (Yuri Dyachenko <yurial@gplvote.org>) add: ext::move<T> move semantic
--- git-rebase--interactive.old 2011-06-11 13:17:48.000000000 +0400
+++ git-rebase--interactive 2012-04-17 12:44:09.000000000 +0400
@@ -951,7 +951,7 @@
REVISIONS=$ONTO...$HEAD
SHORTREVISIONS=$SHORTHEAD
fi
- git rev-list $MERGES_OPTION --pretty=oneline --abbrev-commit \
+ git rev-list $merges_option --pretty=">%h (%an <%ae>) %s"\
--abbrev=7 --reverse --left-right --topo-order \
$REVISIONS | \
@itsprdp
itsprdp / byebug_as_debugger.rb
Last active August 29, 2015 14:10
byebug as debugger monkey patch
module Rails
module Rack
class Debugger
def initialize(app)
@app = app
# clear ARGV so that rails server options aren't passed to IRB
ARGV.clear
require 'byebug'
@itsprdp
itsprdp / moz-styles.css
Created December 1, 2014 09:11
Mozilla Firefox Specific Styles selector
/*
* Common styles across all browsers
*/
.selector {
/*
* Normal styles
*/
}
@itsprdp
itsprdp / d3-line-graph-with-dual-y-axis
Created February 13, 2015 10:22
d3 line graph with dual y axis
<!DOCTYPE html>
<meta charset="utf-8">
<head>
<style>
path {
fill: none;
}
.axis {
@itsprdp
itsprdp / service.conf.erb
Created February 13, 2015 12:19
Delayed Job Upstart Script (Capistrano)
# Ubuntu upstart file at /etc/init/service.conf
pre-start script
mkdir -p /var/log/"#{fetch: application_name}"/
end script
respawn
respawn limit 15 5
start on runlevel [2345]
@itsprdp
itsprdp / dual-y-axes-chart.markdown
Last active August 29, 2015 14:15
Dual Y Axis Chart using highcharts.