This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | |
<html> | |
<head> | |
<meta name="generator" content="HTML Tidy for Windows (vers 14 February 2006), see www.w3.org"> | |
<title> | |
My Exhibit's Title | |
</title> | |
<link href="exhibit-data.js" type="application/json" rel="exhibit/data"> | |
<script src="http://static.simile.mit.edu/exhibit/api-2.0/exhibit-api.js" type="text/javascript"> | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static ${loggerType:newType(org.slf4j.Logger)} log = ${factoryType:newType(org.slf4j.LoggerFactory)}.getLogger(${enclosing_type}.class); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" standalone="no"?> | |
<templates> | |
<template autoinsert="true" context="java-members" deleted="false" description="Slf4j Logger" enabled="true" name="log">private static ${loggerType:newType(org.slf4j.Logger)} log = ${factoryType:newType(org.slf4j.LoggerFactory)}.getLogger(${enclosing_type}.class); | |
</template> | |
<template autoinsert="true" context="java-members" deleted="false" description="Slf4j Instance level Logger" enabled="true" name="log-instance">private ${loggerType:newType(org.slf4j.Logger)} log = ${factoryType:newType(org.slf4j.LoggerFactory)}.getLogger(this.getClass()); | |
| |
public void setLogger(${loggerType} logger) { | |
this.log = logger; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-Dcom.sun.management.jmxremote.port=<bind_port> | |
-Dcom.sun.management.jmxremote.authenticate=false | |
-Dcom.sun.management.jmxremote.ssl=false | |
-Djava.rmi.server.hostname=<host_bind_ip> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl -w | |
use Term::ANSIColor; | |
use POSIX qw(strftime); | |
use Getopt::Long; | |
Getopt::Long::Configure("no_ignore_case"); | |
%colors = ( | |
'DEBUG' => 'yellow', | |
'INFO' => 'green', | |
'WARN' => 'cyan', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################### | |
# .gitignore file for Xcode4 / OS X Source projects | |
# | |
# NB: if you are storing "built" products, this WILL NOT WORK, | |
# and you should use a different .gitignore (or none at all) | |
# This file is for SOURCE projects, where there are many extra | |
# files that we want to exclude | |
# | |
# For updates, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects | |
######################### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* @author <a href="mailto:cedric at vidal dot biz">Cedric Vidal</a> | |
*/ | |
_.mixin({ | |
and : function() { | |
var funcs = arguments; | |
return function() { | |
var args = arguments; | |
return _.all(_.map(funcs, function(f) {return f.apply(this, args);}), _.identity); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# herein we backup our indexes! this script should run at like 3 AM every first day of the month, after logstash | |
# rotates to a new ES index and theres no new data coming in to the old one. we grab metadatas, | |
# compress the data files and backs up to whatever long term storage. | |
. ./config.sh | |
echo "Checking that index exist in ES" | |
if [ `curl -sI $ESURL/$INDEXNAME | grep OK | wc -l` -eq 0 ] | |
then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @ngdoc overview | |
* @name AUTO | |
* @description | |
* | |
* Implicit module which gets automatically added to each {@link AUTO.$injector $injector}. | |
*/ | |
var FN_ARGS = /^function\s*[^\(]*\(\s*([^\)]*)\)/m; | |
var FN_ARG_SPLIT = /,/; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Cedric Vidal | |
email = [email protected] | |
[color] | |
ui = true | |
[alias] | |
lg = log --all --graph --decorate --oneline | |
undo = reset --soft HEAD^ |
OlderNewer