Skip to content

Instantly share code, notes, and snippets.

View einfallstoll's full-sized avatar

Fabio Poloni einfallstoll

  • Compass Security Schweiz AG
  • Switzerland
View GitHub Profile
@einfallstoll
einfallstoll / jMineSweeper.html
Last active December 11, 2015 02:09
A small MineSweeper written in JavaScript using jQuery.
<!DOCTYPE html>
<head>
<title>jMineSweeper</title>
<script type="text/javascript">
/*! jQuery v1.8.3 jquery.com | jquery.org/license */
(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==="null"?null:+r+""===r?+r:D.test(r)?v.parseJSON(r):r}catch(s){}v.data(e,n,r)}else r=t}return r}function B(e){var t;for(t in e){if(t==="data"&&v.isEmptyObject(e[t]))continue;if(t!=="toJSON")return!1}return!0}function et(){return!1}function tt(){return!0}function ut(e){return!e||!e.parentNode||e.parentNode.nodeType===11}function at(e,t){do e=e[t];while(e&&e.nodeType!==1);return e}function ft(e,t,n){t=t||0;if(v.isFunction(t))return v.grep(e,function(e,r){var i=!!t.call(e,r,e);return i===n});if(t.nodeType)return v.grep(e,function(e,r){return e===t===n});if(typeof t=="string"){var r=v.grep(e,function(e){return e.n
@einfallstoll
einfallstoll / index.js
Last active December 31, 2015 12:49
Brutee is a simple Bruteforcer to test passwords against a HTTP-authentification. (It's also one of the ugliest code I ever wrote, yay)
var Brutee = (function() {
function Brutee(max, load) {
if (typeof max === 'number') {
this.max = max;
} else {
throw new TypeError('type of min must be a number');
}
if (typeof load === 'string') {
@einfallstoll
einfallstoll / convert_to_utf8.js
Created July 10, 2014 06:25
Converts a file to utf-8 in node.js
var fs = require('fs')
if (!process.argv[2]) {
console.log('Please specify a path')
} else {
fs.stat(process.argv[2], function(error, stats) {
if (error) throw error
if (stats.isDirectory()) {
console.log('Now starting conversion...')
### Keybase proof
I hereby claim:
* I am einfallstoll on github.
* I am einfallstoll (https://keybase.io/einfallstoll) on keybase.
* I have a public key whose fingerprint is 975A D553 148B 2EBE 5E06 6DB4 2A67 9907 031C 67AA
To claim this, I am signing this object:
@einfallstoll
einfallstoll / smart.md
Last active August 29, 2015 14:16
Smarte Kreditkarten
@einfallstoll
einfallstoll / Pioneer.md
Last active April 17, 2018 14:14
Pioneer Smart fortwo (ab 2010)

Pioneer SPH-DA120 im Smart fortwo / 451

Dies ist eine kleine Anleitung und ein Erfahrungsbericht zum Pioneer SPH-DA120 (mit CarPlay) in einem Smart fortwo mit allen wichtigen Links und Angaben.

Unter Probleme gibt es übliche Probleme und deren Lösungen.

Erfahrungen / Meinung

Optik

@einfallstoll
einfallstoll / gdb-crash1.txt
Last active August 29, 2015 14:22
valgrind - oracle
Thread 6 (Thread 0x7ffff4c8a700 (LWP 5924)):
#0 0x00007ffff702966c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1 0x00000000009e0a59 in uv_cond_wait (cond=<optimized out>, mutex=<optimized out>) at ../deps/uv/src/unix/thread.c:322
No locals.
#2 0x00000000009e141f in worker (arg=<optimized out>) at ../deps/uv/src/unix/threadpool.c:56
w = <optimized out>
q = <optimized out>
#3 0x00000000009d6c81 in uv__thread_start (ctx_v=<optimized out>) at ../deps/uv/src/uv-common.c:323
entry = 0x9e13e0 <worker>
@einfallstoll
einfallstoll / README.md
Created June 30, 2015 13:30
Reset Spotlight Location (Fix for OS X 10.11 El Capitan)

Installation for GUI Users

  1. Right click the file and choose information and choose to always open this file with Terminal.app

  2. Go to the Terminal.app and do something like this chmod 744 Reset Spotlight.sh

  3. There you go, you can now double click it so reset the Spotlight location

  4. Optional: Uncomment line for the useCount to prevent Spotlight to forget that you already used it

@einfallstoll
einfallstoll / tutorial.markdown
Created May 3, 2016 06:13
How to detect a movie being played in a WKWebView?

How to detect a movie being played in a WKWebView?

I'd like to know wether it's possible to detect a movie being played in the WKWebView?

Additionally I'd like to know the exact URL of the opened stream?

Answer

Since the solution(s) to this question required a lot of research and different approaches, I'd like to document it here for others to follow my thoughts. If you're just interested in the final solution, look for some fancy headings.