Step-by-step installtion of cGit on nginx without funky rewrite rules.
This is for :
# Makefile template for shared library | |
CC = gcc # C compiler | |
CFLAGS = -fPIC -Wall -Wextra -O2 -g # C flags | |
LDFLAGS = -shared # linking flags | |
RM = rm -f # rm command | |
TARGET_LIB = libtarget.so # target lib | |
SRCS = main.c src1.c src2.c # source files | |
OBJS = $(SRCS:.c=.o) |
trim() { | |
local var=$@ | |
var="${var#"${var%%[![:space:]]*}"}" # remove leading whitespace characters | |
var="${var%"${var##*[![:space:]]}"}" # remove trailing whitespace characters | |
echo -n "$var" | |
} | |
trim " abc "; |
task collectJars(type: Copy){ | |
into "$buildDir/output/lib" | |
from configurations.testRuntime | |
} | |
//After running | |
gradle collectJars |
pom.withXml { | |
def root = asNode(); | |
root.appendNode( 'url', 'http://hibernate.org' ) | |
def org = root.appendNode( 'organization' ) | |
org.appendNode( 'name', 'Hibernate.org' ) | |
org.appendNode( 'url', 'http://hibernate.org' ) | |
def jira = root.appendNode( 'issueManagement' ) | |
jira.appendNode( 'system', 'jira' ) | |
jira.appendNode( 'url', 'https://hibernate.atlassian.net/browse/HHH' ) | |
} |
pom.withXml { | |
def root = asNode() | |
def deps = new Node(root, 'dependencies') | |
configurations.compile.allDependencies.each { dep -> | |
def node = new Node(deps, 'dependency') | |
new Node(node, 'groupId', dep.group) | |
new Node(node, 'artifactId', dep.name) | |
new Node(node, 'version', dep.version); | |
} | |
} |
//You could do it using the java syntax, e.g.: | |
Properties props = new Properties() | |
props.load(new FileInputStream("/path/file.properties")) | |
//This should work in any groovy script. There might be a more "groovy" way of doing it though, using closures or some other fancy shortcut. |
task snth << { | |
println "************************* before" | |
} | |
task aoeu << { | |
println "**************************** during aoeu" | |
} | |
publish.dependsOn(aoeu) |
class window.Set | |
constructor: (array) -> | |
if not array | |
@values = [] | |
else | |
if array.constructor is Set | |
return new Set array.values | |
if array.constructor is Array |
{_} = require 'underscore' | |
child_process = require 'child_process' | |
async = require 'async' | |
healthCheckInterval = 60 * 1000 | |
bounceInterval = 60 * 1000 | |
bounceWait = bounceInterval + 30 * 1000 | |
delayTimeout = (ms, func) -> setTimeout func, ms | |
class MonitoredChild |