Skip to content

Instantly share code, notes, and snippets.

View C4PT41ND34DP00L's full-sized avatar

Wade Willson C4PT41ND34DP00L

  • USA
View GitHub Profile
@C4PT41ND34DP00L
C4PT41ND34DP00L / StateBoundaries.sql
Created April 22, 2020 16:53 — forked from jakebathman/StateBoundaries.sql
The approximate max/min latitude and longitude for all states and major territories
-- Create the table
CREATE TABLE IF NOT EXISTS `StateBoundaries` (
`State` varchar(10) DEFAULT NULL,
`Name` varchar(255) DEFAULT NULL,
`MinLat` varchar(50) DEFAULT NULL,
`MaxLat` varchar(50) DEFAULT NULL,
`MinLon` varchar(50) DEFAULT NULL,
`MaxLon` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
from wsgiref.simple_server import WSGIServer, WSGIRequestHandler, make_server
from socketserver import ThreadingMixIn
import xbmc
from bottle import route, default_app
class SilentWSGIRequestHandler(WSGIRequestHandler):
"""Custom WSGI Request Handler with logging disabled"""
protocol_version = 'HTTP/1.1'
@C4PT41ND34DP00L
C4PT41ND34DP00L / generate.py
Created February 15, 2022 18:32 — forked from romanvm/generate.py
Script that generates necessary data files to create a custom addon repository for Kodi mediacenter
#!/usr/bin/env python
# coding: utf-8
#
# Copyright (c) 2017, Roman Miroshnychenko <[email protected]>
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is