Skip to content

Instantly share code, notes, and snippets.

@fabiomadge
fabiomadge / index.html
Last active June 24, 2020 16:47
HTML View of Signal database dump of a single conversation
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Chat</title>
<style>
body {
background-color: #121212;
@fabiomadge
fabiomadge / pricewatch.py
Last active August 28, 2016 20:06
Watches www.hotwire.com hotel prices.
import http.client
import xml.etree.ElementTree as ET
import csv
import datetime
import os
import sys
import time
APIKEY = $APIKEY
OUTPUTFIELDS = ['timestamp', 'price']
@fabiomadge
fabiomadge / autoSignup.js
Last active August 28, 2016 21:04
Automatically sign up for a TUMonline course. There is another version, but this seams to be the good one. I don't remember.
function startSignup(){
//extract necessary data from dom
if(document.getElementById("autoSignupFrame") != null){
alert("The script is already running. Please reload and try again to change something.");
return;
}
var firstGroup = document.getElementsByClassName("list")[0].getElementsByClassName("z1")[0].getElementsByTagName("td")[0].getElementsByTagName("a")[0].innerHTML;
var gruppe = window.prompt("Gruppe", firstGroup);
@fabiomadge
fabiomadge / main.c
Created March 3, 2015 09:30
Sensor Normalizer
//
// main.c
// Test
//
// Created by Fabio Madge Pimentel on 28/08/14.
// Copyright (c) 2014 Fabio Madge Pimentel. All rights reserved.
//
#include <stdio.h>
#include <stdint.h>
@fabiomadge
fabiomadge / README.md
Last active August 29, 2015 14:07
Detects signup button and sends SMS
  1. Clone this ifttt recipe

  2. Open this script in the AppleScript Editor

  3. Open the LV-Anmeldung page of the desired course in safari and get back to the editor

  4. Push run and find something else to do

@fabiomadge
fabiomadge / bookmarklet
Last active August 29, 2015 14:07
Auto Booker
javascript:function initiate(){var line=prompt("Please enter the line of your desired group","1");autoSignUp(line);}function autoSignUp(group){if(document.getElementById("InfoDIV")!=null){if(document.getElementById("InfoDIV").style.visibility!="hidden")closeMyAlert();}var groupString=group.toString();var buttonName="btn0000".slice(0,(7-groupString.length))+groupString;if(document.getElementsByName(buttonName).length>0){document.getElementsByName(buttonName)[0].onclick();}else{console.log("Sorry, too late!");return;}if(document.getElementById("InfoDIV")!=null){if(document.getElementById("InfoDIV").style.visibility!="hidden")closeMyAlert();}var d=new Date();console.log(d.getHours()+":"+d.getMinutes()+":"+d.getSeconds()+":"+d.getMilliseconds());if(document.getElementsByTagName('body')[0].innerHTML.indexOf("noch nicht angemeldet")>0){setTimeout(function(){autoSignUp(group);},150);}}initiate();
@fabiomadge
fabiomadge / keybase.md
Created March 24, 2014 20:38
keybase.io/fabio

Keybase proof

I hereby claim:

  • I am fabiomadge on github.
  • I am fabio (https://keybase.io/fabio) on keybase.
  • I have a public key whose fingerprint is B5D6 6A0A 172C 297A 5596 0123 F1F2 0C39 EB80 8316

To claim this, I am signing this object: