Skip to content

Instantly share code, notes, and snippets.

View kinow's full-sized avatar
💭
😬

Bruno P. Kinoshita kinow

💭
😬
View GitHub Profile
@kinow
kinow / gist:8936667
Created February 11, 2014 15:11
SchemaSpyCommand
<?php
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
class SchemaSpyCommand extends Command {
/**
* The console command name.
kinow@chuva:~/python/workspace/bc$ make print
# pdflatex \
# -interaction nonstopmode \
# _site/book.tex
cd _site && pdflatex \
book.tex
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian)
restricted \write18 enabled.
entering extended mode
(./book.tex
kinow@chuva:~/python/workspace/bc/_site$ pdflatex
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian)
restricted \write18 enabled.
**book.tex
entering extended mode
(./book.tex
LaTeX2e <2011/06/27>
Babel <3.9h> and hyphenation patterns for 2 languages loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
@kinow
kinow / gist:d5a2221c32dce3aa1076
Created May 19, 2014 04:17
Treemapping Jenkins extension points
library('rjson')
library('portfolio')
download.file(url="https://ci.jenkins-ci.org/view/Infrastructure/job/infra_extension-indexer/ws/extension-points.json", destfile="extension-points.json", method="wget")
extensionPointsJson <- fromJSON(paste(readLines("extension-points.json"), collapse=""))
extensionPoints <- extensionPointsJson$extensionPoints
nExtensionPoints <- length(extensionPointsJson$extensionPoints)
numberOfImplementations <- vector(length = nExtensionPoints)
namesOfTheExtensionPoints <- vector(length = nExtensionPoints)
for (i in seq_along(extensionPoints)) {
@kinow
kinow / gist:b50a5d3b875f2155b7bb
Created September 19, 2014 04:05
QueryBuilder Jena 01
package org.apache.jena.arq;
import org.apache.jena.arq.querybuilder.SelectBuilder;
import org.junit.Test;
public class JenaQueryBuilderSandbox {
@Test
public void testSimple() throws Exception {
SelectBuilder builder = new SelectBuilder()
@kinow
kinow / gist:cec3e897aacf7d1862be
Created September 25, 2014 03:32
weaver build
kinow@chuva:/tmp/1.1_RC3$ MAVEN_OPTS="-Xmx3000m" mvn clean test install site:site site:stage -e -X
Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T15:37:52-03:00)
Maven home: /opt/apache-maven-3.2.1
Java version: 1.8.0_05, vendor: Oracle Corporation
Java home: /opt/jdk1.8.0_05/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-35-generic", arch: "i386", family: "unix"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from /opt/apache-maven-3.2.1/conf/settings.xml
[DEBUG] Reading user settings from /home/kinow/.m2/settings.xml
@kinow
kinow / gist:176fc9431cd0cf691516
Created September 25, 2014 04:07
weaver build 2
[DEBUG] Preparing ruleset: /org/apache/commons/weaver/pmd.xml
[DEBUG] Before: /org/apache/commons/weaver/pmd.xml After: pmd.xml
[DEBUG] The resource '/org/apache/commons/weaver/pmd.xml' was not found with resourceLoader org.codehaus.plexus.resource.loader.FileResourceLoader.
[DEBUG] URLResourceLoader: Exception when looking for '/org/apache/commons/weaver/pmd.xml' at ''
java.net.MalformedURLException: no protocol: /org/apache/commons/weaver/pmd.xml
at java.net.URL.<init>(URL.java:585)
at java.net.URL.<init>(URL.java:482)
at java.net.URL.<init>(URL.java:431)
at org.codehaus.plexus.resource.loader.URLResourceLoader.getResource(URLResourceLoader.java:71)
at org.codehaus.plexus.resource.DefaultResourceManager.getResource(DefaultResourceManager.java:159)
@kinow
kinow / gist:10875c79a94f4fd931c9
Created October 7, 2014 02:51
Jena-Text test
package com.tupilabs.semweb.jena;
import java.util.Iterator;
import org.apache.jena.query.text.EntityDefinition;
import org.apache.jena.query.text.TextDatasetFactory;
import org.apache.lucene.store.Directory;
import org.apache.lucene.store.RAMDirectory;
import com.hp.hpl.jena.query.Dataset;
@kinow
kinow / log build 1948 mapreduce-trunk
Created November 5, 2014 17:10
log build 1948 mapreduce-trunk
This file has been truncated, but you can view the full file.
Started by timer
Building remotely on H7 (Mapreduce Falcon Hadoop Pig Zookeeper Tez Hdfs) in workspace /home/jenkins/jenkins-slave/workspace/Hadoop-Mapreduce-trunk
> git rev-parse --is-inside-work-tree
Fetching changes from the remote Git repository
> git config remote.origin.url https://git-wip-us.apache.org/repos/asf/hadoop.git
Cleaning workspace
> git rev-parse --verify HEAD
Resetting working tree
> git reset --hard
> git clean -fdx
@kinow
kinow / gist:d78a453c6b4c323ddd97
Created November 15, 2014 00:51
maven obfuscator
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>br.eti.kinoshita</groupId>
<artifactId>duke</artifactId>
<version>0.0.1-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>no.priv.garshol.duke</groupId>
<artifactId>duke</artifactId>