Skip to content

Instantly share code, notes, and snippets.

View timku's full-sized avatar

Tim timku

  • SpreadMaster
  • Benelux
View GitHub Profile
@timku
timku / readmailbox.php
Created August 4, 2025 07:51
On linux read emailboxes and diplay email, also allow for deleting invidual or all emails
<?php
/**
* PHP Script to read an Ubuntu user's mailbox, now with added functionality:
* - Lists available mailboxes in /var/mail.
* - Allows switching between mailboxes.
* - Adds buttons to delete individual messages or all messages.
* - Allows access from any common local IP range.
*
* This version uses Tailwind CSS for a modern, responsive layout.
*
#!/usr/bin/env python
import datetime
from dateutil import parser
import subprocess
import json
from influxdb import InfluxDBClient
# influx configuration - edit these
ifuser = "telegraf"
@timku
timku / backup.bat
Last active October 29, 2020 13:10
Windows backup/restore Wifi settings for all access points
@echo off
if not exist data mkdir data
netsh wlan export profile key=clear folder=data
echo -------
echo DONE
echo -------
pause
@timku
timku / ObjectTable.cshtml
Last active January 22, 2020 10:06
ObjectTable.cshtml for dotnet core, dump your object into a table
<!--
Tim Kuperus
Works for dotnet core
Name this ObjectTable.cshtml and place it in your views folder
-->
@model object
@{
ViewBag.Title = "Object Information";
}
@timku
timku / World.js
Last active April 5, 2024 08:34
World
.<script>
eval(z='p="<"+"pre>"/* ,.oq#+ ,._, */;for(y in n="zw24l6k\
4e3t4jnt4qj24xh2 x/* =<,m#F^ A W###q. */42kty24wrt413n243n\
9h243pdxt41csb yz/* #K q##H######Am */43iyb6k43pk7243nm\
r24".split(4)){/* dP cpq#q##########b, */for(a in t=pars\
eInt(n[y],36)+/* p##@###YG=[#######y */(e=x=r=[]))for\
(r=!r,i=0;t[a/* d#qg `*PWo##q#######D */]>i;i+=.05)wi\
th(Math)x-= /* aem1k.com Q###KWR#### W[ */.05,0>cos(o=\
new Date/1e3/* .Q#########Md#.###OP A@ , */+x/PI)&&(e[~\
~(32*sin(o)*/* , (W#####Xx######.P^ T % */sin(.5+y/7))\