Skip to content

Instantly share code, notes, and snippets.

View sonictruth's full-sized avatar
🙃
0

Alexandru Constantin sonictruth

🙃
0
View GitHub Profile
@sonictruth
sonictruth / chiupimouse.c
Last active June 16, 2023 12:25
ESP32 Chiupimouse
#include <wifiboy32.h>
#include <BleMouse.h>
#include "wb32-demo2.h"
BleMouse bleMouse("ChiupiMouse", "Chiupix", 90);
uint16_t key;
uint16_t lastKey;
bool enabled = false;
long lastDoTime = 0;
@sonictruth
sonictruth / index.php
Last active November 25, 2022 14:03
Open Weather PHP caching proxy
<?
$origin = @$_SERVER['HTTP_ORIGIN'];
$lat = round(floatval($_GET['lat']),2);
$lon = round(floatval($_GET['lon']),2);
if($lat > 90 || $lat < -90 || $lon > 180 || $lon < -180 ) {
die('Invalid coordinates' . $lat . 'x' . $lon);
}
@sonictruth
sonictruth / channels.m3u
Last active January 15, 2022 15:45
channels
#EXTM3U
#EXTINF:0,Aljazeera 1
http://aljazeera-eng-hd-live.hls.adaptive.level3.net/aljazeera/english2/index1296.m3u8
#EXTINF:0,Al Jazeera 2
http://aljazeera-eng-hd-live.hls.adaptive.level3.net/aljazeera/english2/index.m3u8
#EXTINF:0 type="stream" , TeleM Botosani
http://webmobile.xdev.ro:81/tv11/playlist.m3u8
#EXTINF:0 type="stream" , Somax
http://webmobile.xdev.ro:81/tv12/playlist.m3u8
#EXTINF:0 type="stream" , Publika TV
// Talking console
//
// Support: http://caniuse.com/#search=SpeechSynthesisUtterance
//
// Copy paste the code into dev console or
// use http://mrcoles.com/bookmarklet/ to create a bookmarklet.
/* ✂️ ......................................................................................... */
if(console.log.name !== 'talkLog') {
console.l = console.log;