Skip to content

Instantly share code, notes, and snippets.

View LeoDJ's full-sized avatar

LeoDJ

View GitHub Profile
@LeoDJ
LeoDJ / banggood_compactCart_bookmarklet
Last active June 25, 2017 01:54
Banggood Compact Shopping Cart Bookmarklet
javascript:(function(){$(document.head).append('<style>.cart_main_list dt {display: none;}.cart_main_list dd ul {height: 75px;min-height: 0;}.cart_main_list dd ul .td_product a.img {margin-top: -20px;}.cart_main_list dd .ul_total {display: none;}.cart_main {margin-bottom: 0px;border: 0;padding: 0;}.cart_main_list dd ul .td_filter {display: none;}.cart_main_list dd ul .td_product_btn {display: none;}</style>')})()
@LeoDJ
LeoDJ / doorStatus.php
Last active March 16, 2017 22:46
A simple PHP persistance key/val store // Simply set the $secret to your password of choice and host the .php file on a server, then call the .php file with ?help for more information
<?php
header('Access-Control-Allow-Origin: https://yourDomain.tld');
$secret = "yourSecret"; //set you secret for write access here
error_reporting(E_ALL);
ini_set('display_errors', true);
global $filePath, $secret;
$filePath = "doorStatusData.json";
function readDataFile() { //read data from persistance file
global $filePath;
@LeoDJ
LeoDJ / doorStatus.php
Created March 14, 2017 21:01
A simple PHP persistance key/val store // Simply set the $secret to your password of choice and host the .php file on a server, then simply call the .php file with the given parameters
<html>
<head>
<title>doorStatus</title>
</head>
<body>
<?php
error_reporting(E_ALL);
ini_set('display_errors', true);
global $filePath, $secret;
$filePath = "doorStatusData.json";
@LeoDJ
LeoDJ / ScanMyOpelCAN_LogDecrypt.java
Created March 7, 2017 21:50
ScanMyOpelCAN Android App log decryption [tags decoding deobfuscation =:A:?:B>=7=:;]
import java.util.*;
import java.lang.*;
import java.io.*;
class Decrypt
{
public static char[] d(byte[] bArr) { //reverse engineered obfuscation pattern
int length = bArr.length / 2;
if (bArr.length % 2 != 0) {
length++;
@LeoDJ
LeoDJ / ESPWebSock.ino
Created August 18, 2016 21:35 — forked from bbx10/ESPWebSock.ino
ESP8266 Web server with Web Socket to control an LED
/*
* ESP8266 Web server with Web Socket to control an LED.
*
* The web server keeps all clients' LED status up to date and any client may
* turn the LED on or off.
*
* For example, clientA connects and turns the LED on. This changes the word
* "LED" on the web page to the color red. When clientB connects, the word
* "LED" will be red since the server knows the LED is on. When clientB turns
* the LED off, the word LED changes color to black on clientA and clientB web

Keybase proof

I hereby claim:

  • I am LeoDJ on github.
  • I am leodj (https://keybase.io/leodj) on keybase.
  • I have a public key whose fingerprint is 3191 D9C9 5D64 ECF7 F1DE A832 91FC E46D 6401 3A5B

To claim this, I am signing this object: