Skip to content

Instantly share code, notes, and snippets.

Jens Kristian Villadsen jkiddo

Block or report user

Report or block jkiddo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View hacking-the-whitebox.md

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.
View cecsimple
#!/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/
#
@jkiddo
jkiddo / ICPC-2DK
Last active Aug 14, 2017
ICPC-2DK
View 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)
@jkiddo
jkiddo / introrx.md
Created Jun 29, 2017 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
View introrx.md
View UUIDv5
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");
View c# client
// 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);
View Saxon.Java
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);
View cda scorecard
POST http://ccda-scorecard.smartplatforms.org/v1/ccda-scorecard/request with CDA
View tiobe.txt
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
You can’t perform that action at this time.