Skip to content

Instantly share code, notes, and snippets.

View lopex's full-sized avatar

Marcin Mielżyński lopex

View GitHub Profile
#!/usr/bin/sh
cat message.xml | \
sed s/_NIP_/jakisnip/ | \
curl -s -d @- -X POST \
-H "Content-Type: text/xml;charset=UTF-8" \
-H "SOAPAction: http://www.mf.gov.pl/uslugiBiznesowe/uslugiDomenowe/AP/WeryfikacjaVAT/2018/03/01/WeryfikacjaVAT/SprawdzNIP" \
https://sprawdz-status-vat.mf.gov.pl | \
xmlstarlet sel \
-N s="http://www.mf.gov.pl/uslugiBiznesowe/uslugiDomenowe/AP/WeryfikacjaVAT/2018/03/01" \
-t -m "//s:WynikOperacji/s:Kod/text()" -c .
$ git df
diff --git a/src/org/joni/Config.java b/src/org/joni/Config.java
index d2dcab2..571c805 100644
--- a/src/org/joni/Config.java
+++ b/src/org/joni/Config.java
@@ -74,7 +74,7 @@ public interface Config extends org.jcodings.Config {
final PrintStream log = System.out;
final PrintStream err = System.err;
- final boolean DEBUG_ALL = false;
monitor | Error in reactor loop escaped: closed stream (IOError)
monitor | org/nio4r/Selector.java:139:in `deregister'
monitor | /usr/local/bundle/gems/puma-4.0.0-java/lib/puma/reactor.rb:295:in `clear_monitor'
monitor | /usr/local/bundle/gems/puma-4.0.0-java/lib/puma/reactor.rb:283:in `block in run_internal'
monitor | org/jruby/ext/thread/Mutex.java:165:in `synchronize'
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-antrun-plugin:1.8:run (rake) @ jruby-tests ---
#include <stdio.h>
#include <string.h>
#include <onigmo.h>
#define SLEN(s) strlen(s)
static OnigRegion region;
int main() {
int r;
static regex_t* reg;
[exec]
[exec] Failures:
[exec]
[exec] 1) An exception that bubbles out when $stderr is redirected logs to the redirected target
[exec] Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
[exec]
[exec] expected: "RuntimeError: No current exception\n"
[exec] got: "WARNING: An illegal reflective access operation has occurred\n"
[exec]
[exec] (compared using ==)
optimize: MAP_SB
anchor: []
sub anchor: []
dmin: 0 dmax: 0
threshold length: 1
map: n = 3
[m, s, t]
stack used: true
templates: 0
optimize: EXACT_BM
anchor: []
sub anchor: []
dmin: 0 dmax: 0
threshold length: 3
exact: [foo]: length: 3
stack used: false
templates: 0
code length: 10
optimize: MAP_SB
anchor: []
sub anchor: []
dmin: 1 dmax: 3
threshold length: 2
map: n = 6
[0, 1, 2, 3, 4, 5]
stack used: true
templates: 0
<TREE>
<List:0x3d4eac69 (ROOT:0x1b6d3586)>
value: <String:0x42a57993 (List:0x3d4eac69)>
flags: SHARED
bytes: 'foo'
tail: <List:0x75b84c92 (NULL)>
value: <Any Char:0x6bc7c054 (List:0x75b84c92)>
tail: <List:0x232204a1 (NULL)>
value: <Any Char:0x4aa298b7 (List:0x232204a1)>