Skip to content

Instantly share code, notes, and snippets.

View 0xPr0xy's full-sized avatar
🎯
Focusing

Peter IJlst 0xPr0xy

🎯
Focusing
View GitHub Profile
@0xPr0xy
0xPr0xy / test.html
Last active November 6, 2024 17:14
test.html
<html>
<head>
<script>
function trigger() {
if (typeof Mobile != 'undefined' && typeof Mobile.OnFlowEnd == "function") {
let textNode = document.createTextNode("Result: 1"); document.body.appendChild(textNode);
//Mobile.OnFlowEnd("receive userId");
}
if (typeof webkit != 'undefined' && typeof webkit.messageHandlers.OnFlowEnd != 'undefined') {
let textNode = document.createTextNode("Result: 2"); document.body.appendChild(textNode);
@0xPr0xy
0xPr0xy / test.html
Created November 6, 2024 15:23
test.html
<html>
<head>
<title>Test</title>
</head>
<body>
<p><button onclick="OnFlowEnd.postMessage('hello')">test</button></p>
</body>
</html>
Detecting chip type... ESP32
BLOCK0 ( ) [0 ] read_regs: 00000080 a3c75990 0033c9c9 0000a001 00000732 00200000 00000004
BLOCK1 (flash_encryption) [1 ] read_regs: 08001000 00000000 00000000 00000000 00000040 00000040 00008000 40000820
BLOCK2 (secure_boot_v1 s) [2 ] read_regs: 00400000 00000000 00000000 00000000 00000000 00000001 00000000 00000001
BLOCK3 ( ) [3 ] read_regs: 00000000 00000010 10008000 00000000 00000000 00020000 00000000 40000000
EFUSE_REG_DEC_STATUS 0x00000000
espefuse.py v3.3-dev
q --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-omx-rpi --enable-mmal --enable-neon --enable-rpi --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
2020-12-28_16:39:56.10716 avdevice configuration: --prefix=/usr --extra-version='1~deb10u1+rpt1' --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopen
//
// CertificatePinner.swift
// BenuApp
//
// Created by Peter IJlst | The Mobile Company on 02/10/2018.
// Copyright © 2018 The Mobile Company. All rights reserved.
//
import WebKit
import Alamofire
@0xPr0xy
0xPr0xy / BoundCode.swift
Created July 3, 2018 11:51
composition over inheritance with viewcontroller lifecycle awareness
class UIViewControllerLifecycleBound: UIViewController {
public let lifecycleBindings = LifecycleBound()
init() {
super.init(nibName: nil, bundle: nil)
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
@0xPr0xy
0xPr0xy / Package.swift
Created December 20, 2017 14:30
Package swift
// swift-tools-version:4.0
import PackageDescription
let package = Package(
name: "VaporBlog",
products: [
.library(name: "App", targets: ["App"]),
.executable(name: "Run", targets: ["Run"])
],

Keybase proof

I hereby claim:

  • I am 0xpr0xy on github.
  • I am 0xpr0xy (https://keybase.io/0xpr0xy) on keybase.
  • I have a public key ASCxVDxwL81Orq161jRIWV8-fD2hfdSVCjImsxFIcAVVcAo

To claim this, I am signing this object:

@0xPr0xy
0xPr0xy / Cursor.php
Created March 3, 2016 12:52
Cursor.php
/**
* Wrapper method for MongoCursor::current().
*
* @see http://php.net/manual/en/iterator.current.php
* @see http://php.net/manual/en/mongocursor.current.php
* @return array|null
*/
public function current()
{
$current = $this->mongoCursor->current();
@0xPr0xy
0xPr0xy / assembla-tickets-to-changelog
Last active February 25, 2016 12:01
changelog.js
jQuery('table.tickets tbody tr').each(function(){
// get the ticket number
var numberSelector = '.number .list-column-wrapper p';
var numberElem = jQuery(this).find(numberSelector).first();
var number = jQuery(numberElem).text();
// get the summary
var summarySelector = '.summary .list-column-wrapper';
var summaryElem = jQuery(this).find(summarySelector).first();
var summary = jQuery(summaryElem).text();
// get the assignee