Skip to content

Instantly share code, notes, and snippets.

@olivier-m
olivier-m / adb.sh
Created August 10, 2013 12:05
Remove all Google apps from an android phone. List of delete files from http://forum.xda-developers.com/showthread.php?t=1969755
# With your phone in debug mode, etc.
adb start-server
adb remount
adb shell < remove.sh
@jeremyfelt
jeremyfelt / open-source-search-compare.md
Last active July 19, 2023 01:28
Comparing open source search solutions
@gabonator
gabonator / blueDht22.ino
Created November 11, 2015 08:38
DHT22 over bluetooth with timers
#include <SoftwareSerial.h>
#include <TimerOne.h>
#include <DHT.h>
// Deklaracia softwaroveho serioveho portu a pinoch 2 a 3
SoftwareSerial btSerial(2, 3); // RX, TX
// Premenne sekundoveho casovaca
volatile int nSecondsPassed = 0;
int nLastSecond = 0;
@gabonator
gabonator / posta_service.js
Created August 24, 2016 07:36
nodejs API for requesting delivery changes on Slovenska posta online service (eph.posta.sk)
// http://eph.posta.sk/
login = "YourLogin";
password = "YourPassword";
reportUrl = "http://api.mypage.com/postaservice/?";
var request = require('request');
var fs = require('fs');
var crypto = require('crypto');
var cookies;
@gabonator
gabonator / mavlink_sygic.js
Created October 13, 2016 12:59
Mavlink drone to sygic connector, uses GPS coordinates from 3DR drone streamed over 433 MHz link in sygic navigation
@gabonator
gabonator / urlrater.js
Created December 9, 2016 17:44
nodejs script for retreiving movie ratings from csfd and imdb movie databases
function titleByUrl(url)
{
var extensions = [/*"rar", "zip",*/ "iso"];
var stopper = ["dabing", "dub", "cz", "sk", "3d", "hdtv", "1080i", "1080p", "webrip",
"rar", "mkv", "avi", "mp4", "iso", "zip"]
var title = url;
var file = title.substr(title.lastIndexOf("/")+1);
var tokens = file.split("-");
var i;
@gabonator
gabonator / index.html
Last active July 20, 2018 04:54
Driver na radiacny kotol ORK 100
<html>
<head>
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/highcharts-more.js"></script>
</head>
<style>
#schemecontainer {width:600px; height:580px; float:left; margin-right:20px;}
@gabonator
gabonator / Base64.cpp
Created January 1, 2018 20:38
Wemos D1 ESP8266 websocket oscilloscope and pulse counter
#include "Base64.h"
const char b64_alphabet[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"abcdefghijklmnopqrstuvwxyz"
"0123456789+/";
/* 'Private' declarations */
inline void a3_to_a4(unsigned char * a4, unsigned char * a3);
inline void a4_to_a3(unsigned char * a3, unsigned char * a4);
inline unsigned char b64_lookup(char c);