Skip to content

Instantly share code, notes, and snippets.

View vuolter's full-sized avatar
🍫

Walter Purcaro vuolter

🍫
View GitHub Profile
@dankrause
dankrause / ssdp.py
Last active July 8, 2024 02:05
Tiny python SSDP discovery library with no external dependencies
# Copyright 2014 Dan Krause
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@spiwn
spiwn / README.txt
Created February 21, 2012 13:50
A simple python utility to change a process' priority
A very simple script to change a process' priority in native python 3.#
Works on Windows only (for now)
Todo:
Make it less hacky, more portable (should extract values from the api and use them instead of the hardcoded ones)
Add documentation
@paulmillr
paulmillr / dart.md
Last active January 7, 2025 21:10
Leaked internal google dart email

---------- Forwarded message ----------

From: Mark S. Miller <[email protected]>
Date: Tue, Nov 16, 2010 at 3:44 PM
Subject: "Future of Javascript" doc from our internal "JavaScript Summit"
last week
To: [email protected]
@romuald
romuald / property.py
Created July 25, 2011 14:22
Python 2.5 compatibility hack for property.setter, property.deleter
# Python 2.5 compatibility hack for property.setter, property.deleter
import __builtin__
if not hasattr(__builtin__.property, "setter"):
class property(__builtin__.property):
__metaclass__ = type
def setter(self, method):
return property(self.fget, method, self.fdel)
def deleter(self, method):
@myusuf3
myusuf3 / uninstall.sh
Created April 21, 2011 03:06
how to cleanly uninstall python packages installed with python setup.py
# Next time you need to install something with python setup.py -- which should be never but things happen.
python setup.py install --record files.txt
# This will cause all the installed files to be printed to that directory.
# Then when you want to uninstall it simply run; be careful with the 'sudo'
cat files.txt | xargs sudo rm -rf