Skip to content

Instantly share code, notes, and snippets.

View winash's full-sized avatar

Ashwin winash

  • Acceldata
  • Bangalore
View GitHub Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@winash
winash / gist:5856669
Last active November 8, 2019 12:10
grails restful controller template
<%=packageName ? "package ${packageName}\n\n" : ''%>
import grails.converters.JSON
import grails.converters.XML
import org.springframework.dao.DataIntegrityViolationException
class ${className}Controller {
static allowedMethods = [list:'GET',
show:'GET',
edit:['GET', 'POST'],
@winash
winash / gist:5080671
Last active December 14, 2015 11:39
Gradle task for intellij Idea
//Create a simple java project to generate the iml file first
task idea << {
// change this to the name of your module file
def moduleFileName = "<your project name>.iml"
def root = new XmlParser().parse(moduleFileName)
def newModuleRootManager = root.component.find {it.'@name' == 'NewModuleRootManager'}
// if there is already a module library in place we should remove it
@winash
winash / str_match.c
Created September 23, 2012 13:27
String match contains all UDF for mysql
#ifdef STANDARD
/* STANDARD is defined, don't use any mysql functions */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#ifdef __WIN__
typedef unsigned __int64 ulonglong;/* Microsofts 64 bit types */
typedef __int64 longlong;
#else
typedef unsigned long long ulonglong;