Skip to content

Instantly share code, notes, and snippets.

@gilmotta
gilmotta / mp3playlist
Created October 25, 2022 18:34 — forked from guymac/mp3playlist
Example of using HTML5 as a music playlist. This html would be put in a directory and all the mp3 files that it references in a subdirectory called mp3. The whole thing can be written to CD-R where this html serves as the music playing application (and MP3 CD-Rs will autoplay in most non-interactive devices).
<html>
<head>
<title>EDM Favorites Volume 4</title>
<script type="text/javascript">
//<![CDATA[
(function(){
// audioElement = HTML5 Audio
AudioHandler = function(audioElement)
@gilmotta
gilmotta / copy_large_file.py
Created June 22, 2021 00:51 — forked from jlinoff/copy_large_file.py
Python example that shows how to copy a large file showing progress.
#!/usr/bin/env python
'''
Copy a large file showing progress.
MIT License
Copyright (c) 2015 Joe Linoff
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
@gilmotta
gilmotta / ntp_update_time.py
Created December 30, 2020 04:05 — forked from nihal111/ntp_update_time.py
A python script to update system time in Windows by attempting to fetch time from multiple NTP servers from a defined list.
import socket
import struct
import sys
import time
import datetime
import win32api
# List of servers in order of attempt of fetching
server_list = ['ntp.iitb.ac.in', 'time.nist.gov', 'time.windows.com', 'pool.ntp.org']