Skip to content

Instantly share code, notes, and snippets.

View jkiddo's full-sized avatar
🔥
🥷

Jens Kristian Villadsen jkiddo

🔥
🥷
View GitHub Profile
http://tqi.tiobe.com/tiobeweb/default/TqiLabelGenerator.html#Compliance(AI)=22&Compliance(CS)=90&Compliance(CW)=87&avgCodeCoverage=71&cycloxAverage=4&deadCode=5&duplicatedCode=10&fanOut=20&organization=dsadasdasd&path=asdsadsf&project=asd&print=true
POST http://ccda-scorecard.smartplatforms.org/v1/ccda-scorecard/request with CDA
public static void run(String sourceDoc, String xslDoc, String resultDoc,
Boolean dtdValidation) throws SaxonApiException {
/*
* http://www.cs.duke.edu/courses/fall08/cps116/docs/saxon/samples/java/
* S9APIExamples.java
*/
Processor proc = new Processor(false);
// https://docs.microsoft.com/en-us/aspnet/web-api/overview/advanced/calling-a-web-api-from-a-net-client
// https://docs.microsoft.com/en-us/aspnet/web-api/overview/formats-and-model-binding/bson-support-in-web-api-21
private async Task doPostAsync(byte[] document)
{
var someUrl = "http://localhost:4567";
var parametersToAdd = new Dictionary<string, string> { { "resource", "foo" } };
var newUri = QueryHelpers.AddQueryString(someUrl, parametersToAdd);
package cda.uuid.generator;
import java.nio.charset.Charset;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Objects;
import java.util.UUID;
public class UUIDType5 {
private static final Charset UTF8 = Charset.forName("UTF-8");
@jkiddo
jkiddo / introrx.md
Created June 29, 2017 07:16 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@jkiddo
jkiddo / ICPC-2DK
Last active August 14, 2017 11:47
ICPC-2DK
dake2.dudal.com/icpc/
eg. http://dake2.dudal.com/icpc/icpcserver.php?action=convert&icpc=z02&icd10
A30 Komplet helbredsvurdering (A97)
A31 Delvis helbredsundersøgelse (A97)
A62 Administrativ procedure (A97)
A43 Anden diagnostisk procedure (A98)
A44 Vaccination (A98)
A45 Sundhedsoplysning (A98)
#!/bin/bash
#
# Execute some fairly simple CEC commands
# Can use the "server" if its already running for faster execution
# or will fall back to starting the cec-client in "single pass" mode.
#
# Another terrible hack from Will Cooke. http://www.whizzy.org
#
# Handy site: http://www.cec-o-matic.com/
#

Hacking the SamKnows Whitebox

The SamKnows Whitebox is a free router (TP-Link TL-WDR3600) provided by SamKnows to gather internet speed statistics. Ok that's great, but any person with a small amount of hacker's spirit will want to hack it to install some custom firmware to take advantage of the two gigantic antennas on the back, the USB ports and everything else.

Step 1 : Debug mode

Root access can be obtained via a "debug mode" on the router giving you a direct root shell via telnet, amazingly simple.

  • Disconnect the Whitebox from the internet.
  • Connect your computer directly to the Whitebox via Ethernet to one of the four ethernet ports on the Whitebox.
  • Configure your computer's IP settings to "Manual" setting the computer's IP address to 192.168.1.2, the Subnet Mask to 255.255.255.0 and the Gateway to 192.168.1.1.
  • Turn off the Whitebox.
[
{
"code":"K84",
"text":"Hjertesygdom IKA",
"idc10":[
"di310",
"di311",
"di312",
"di313",
"di318",