Skip to content

Instantly share code, notes, and snippets.

View ShreeMandadi's full-sized avatar

Shree Mandadi ShreeMandadi

  • San Diego, CA, USA
View GitHub Profile
# This File is maintained on GITHUB
# Please edit only at http://gist.github.com/73344
# Setup File at wget http://gist.github.com/raw/73344/.rcsetup
# Shree Mandadi..
# RVM Aliases
alias ruby='rvm ruby'
alias rake='rvm rake'
alias gem='rvm gem'
@skorks
skorks / integertoenglish.rb
Created November 3, 2010 11:53
converting integers to english
#!/usr/bin/env ruby
NTW = {
1 => "one",
2 => "two",
3 => "three",
4 => "four",
5 => "five",
6 => "six",
7 => "seven",
@troex
troex / unicorn.sh
Created April 4, 2011 20:57
Unicorn start/stop/restart script for Debian
#!/bin/sh
### BEGIN INIT INFO
# Provides: unicorn
# Required-Start: $local_fs $remote_fs mysql
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: unicorn initscript
# Description: Unicorn is an HTTP server for Rack application
### END INIT INFO
@canweriotnow
canweriotnow / unicorn
Created July 5, 2011 17:38
/etc/init.d script for unicorn
#!/bin/sh
#
# init.d script for single or multiple unicorn installations. Expects at least one .conf
# file in /etc/unicorn
#
# Modified by jay@gooby.org http://github.com/jaygooby
# based on http://gist.github.com/308216 by http://github.com/mguterl
#
## A sample /etc/unicorn/my_app.conf
##
@rhoegg
rhoegg / mule
Last active July 21, 2017 03:03
RHEL init.d script for Mule ESB
#!/bin/bash
# RHEL Mule Init Script
#
# chkconfig: 2345 65 64
# description: Mule ESB service
. /etc/init.d/functions
#
if [ -f /etc/sysconfig/mule ]; then
. /etc/sysconfig/mule
Printed object: [['id3' : 'value3', 'id2' : 'value2', 'id1' : 1], ['id3' : ['id3' : 'value3', 'id2' : 'value2', 'id1' : 'value1'], 'id2' : 'value2', 'id1' : 'value1'], ['id3' : 'value3', 'id2' : 'value2', 'id1' : 'value1']]
@albinkjellin
albinkjellin / mule-postgresql-ssl.xml
Last active August 29, 2015 14:27
Sample config for setting up ssl jdbc with postrgresql with the mulesoft database connector
<db:generic-config name="Generic_Database_Configuration" doc:name="Generic Database Configuration" driverClassName="org.postgresql.Driver" url="jdbc:postgresql://${db.host}:${db.port}/testssl?user=${db.user}&amp;password=${db.password}&amp;sslmode=verify-full&amp;sslrootcert=${app.home}/classes/rds-combined-ca-bundle.pem"/>
<http:listener-config name="HTTP_Listener_Configuration" host="0.0.0.0" port="8081" doc:name="HTTP Listener Configuration"/>
<flow name="postgress-ssl">
<http:listener config-ref="HTTP_Listener_Configuration" path="/trigger" doc:name="HTTP"/>
<db:select config-ref="Generic_Database_Configuration" doc:name="Database">
<db:parameterized-query><![CDATA[select * from test;]]></db:parameterized-query>
</db:select>
<object-to-string-transformer doc:name="Object to String"/>
</flow>