Skip to content

Instantly share code, notes, and snippets.

View diodoe's full-sized avatar

Fabio Giannese (diodœ) diodoe

View GitHub Profile
@phrawzty
phrawzty / 2serv.py
Last active January 21, 2026 12:21
simple python http server to dump request headers
#!/usr/bin/env python2
import SimpleHTTPServer
import SocketServer
import logging
PORT = 8000
class GetHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
@joashp
joashp / PushNotifications.php
Last active February 19, 2025 06:09
Simple PHP script to send Android Push Notification, iOS Push Notification and Windows Phone 8 Push Notification
<?php
// Server file
class PushNotifications {
// (Android)API access key from Google API's Console.
private static $API_ACCESS_KEY = 'AIzaSyDG3fYAj1uW7VB-wejaMJyJXiO5JagAsYI';
// (iOS) Private key's passphrase.
private static $passphrase = 'joashp';
// (Windows Phone 8) The name of our push channel.
private static $channelName = "joashp";
@nickoala
nickoala / 0_python_email.md
Last active March 2, 2026 05:58
Use Python to send and receive emails

Use Python to:

  • send a plain text email
  • send an email with attachment
  • receive and filter emails according to some criteria
@edsiper
edsiper / kubernetes_commands.md
Last active April 8, 2025 09:02
Kubernetes Useful Commands
(function() {
/**
* Creates array of timing entries from Resource Timing Interface
*/
function getTimings() {
var entries = [];
var resources = [];
if (window.performance.getEntriesByType !== undefined) {
resources = window.performance.getEntriesByType("resource");