Skip to content

Instantly share code, notes, and snippets.

View abelsromero's full-sized avatar

Abel Salgado Romero abelsromero

View GitHub Profile
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Asciidoctor PDF with theme Maven example 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ asciidoctor-pdf-with-theme-example ---
[INFO] Deleting C:\home\bin\cygwin64\home\ABEL.SALGADOROMERO\github\asciidoctor-maven-examples\asciidoctor-pdf-with-theme-example\target
[INFO]
@abelsromero
abelsromero / request.xml
Created July 26, 2016 10:48
CMIS timestamp auth token generation in SoapUI
USERNAME and PASSWORD are inserted using SoapUI feature
<soapenv:Header>
<wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp wsu:Id="TS-AD11234F3B4CF74705144725809787932">
<wsu:Created>${=TimeZone.setDefault(TimeZone.getTimeZone("UTC")); (new Date()).format("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")}</wsu:Created>
<wsu:Expires>${=(new Date()).format("yyyy-MM-dd'T23:59:59.999Z'")}</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken wsu:Id="UsernameToken-AD11234F3B4CF74705144724950372217">
<wsse:Username>USERNAME</wsse:Username>
def extract(String text) {
(text =~ /([a-z]+)((\.[a-z]+)*?)/).collect { it[0] }
}
/**
* println extract('groovy.grails.ruby.rails')
*
* $> [groovy, grails, ruby, rails]
*/
public class MemoryConsumer {
public static void main(String[] args) {
long seconds = 30000;
long start = System.currentTimeMillis();
Long sillyCounter = 0l;
while (start + seconds > System.currentTimeMillis())
sillyCounter++;
<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>gmaven-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>execute</goal>
</goals>
mvn archetype:generate -DgroupId=org.kata -DartifactId=tictactoe -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
@abelsromero
abelsromero / openTESArena-msys2-build.adoc
Last active July 15, 2017 16:06
First pass of installation and build manual for OpenTESArena

OpenTESArena build manual for MSYS2

@abelsromero
abelsromero / openTESArena-msys2-build.md
Created July 16, 2017 10:31
openTESArena-msys2-build.md
@abelsromero
abelsromero / ReGot_compile_mingw_error.log
Created July 21, 2017 06:18
Compile errors for ReGoth on MinGW with MSYS2
[ 56%] Building C object lib/openal-soft/CMakeFiles/OpenAL32.dir/OpenAL32/alAuxEffectSlot.c.obj
In file included from C:/home/bin/msys64/usr/include/stdio.h:61:0,
from C:/home/bin/msys64/home/my_user/temp/REGoth/lib/openal-soft/OpenAL32/Include/alMain.h:5,
from C:\home\bin\msys64\home\my_user\temp\REGoth\lib\openal-soft\OpenAL32\alAuxEffectSlot.c:28:
C:/home/bin/msys64/usr/include/sys/types.h:129:18: error: conflicting types for 'time_t'
typedef _TIME_T_ time_t;
^~~~~~
In file included from C:/home/bin/msys64/mingw64/x86_64-w64-mingw32/include/stddef.h:7:0,
from C:/home/bin/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/7.1.0/include/stddef.h:1,
from C:/home/bin/msys64/usr/include/stdlib.h:16,
@abelsromero
abelsromero / errors.log
Created July 22, 2017 09:24
ReGoth compilation errors (MSYS2 clean installation)
In file included from C:/home/bin/msys64-regoth/mingw64/include/c++/7.1.0/chrono:42:0,
from C:/home/bin/msys64-regoth/home/my_user/games/REGoth/src/utils/Utils.h:15,
from C:/home/bin/msys64-regoth/home/my_user/games/REGoth/src/components/Entities.h:2,
from C:/home/bin/msys64-regoth/home/my_user/games/REGoth/src/engine/World.h:6,
from C:/home/bin/msys64-regoth/home/my_user/games/REGoth/src/engine/BaseEngine.h:3,
from C:\home\bin\msys64-regoth\home\my_user\games\REGoth\src\audio\AudioWorld.cpp:17:
C:/home/bin/msys64-regoth/mingw64/include/c++/7.1.0/bits/parse_numbers.h:53:21: error: expected nested-name-specifier before '=' token
using __valid = true_type;
^
C:/home/bin/msys64-regoth/mingw64/include/c++/7.1.0/bits/parse_numbers.h:59:21: error: expected nested-name-specifier before '=' token