Skip to content

Instantly share code, notes, and snippets.

View Wuodan's full-sized avatar
😎
New job, like it a lot

Stefan Kuhn Wuodan

😎
New job, like it a lot
View GitHub Profile
@Wuodan
Wuodan / 00README.md
Last active May 18, 2020 09:55 — forked from natefoo/00README.md
Linux Distribution Detection

Distribution Detection

I am working on adding support for building and distributing (via PyPI) Python Wheels with C Extensions to the Python wheel and pip packages. The discussion on Distutils-SIG continues, but I believe it is fairly certain that some effort to correctly identify Linux distributions will need to be made. I've begun efforts to add this support to wheel.

How you can help

If you have a Linux distribution or version of a listed distribution not in this gist, or one of the ones I have not directly verified, I could use the following:

  • The contents of /etc/os-release, if it exists
@Wuodan
Wuodan / saveAs.js
Last active December 18, 2015 03:28 — forked from MrSwitch/saveAs.js
// window.saveAs
// Shims the saveAs method, using saveBlob in IE10.
// And for when Chrome and FireFox get round to implementing saveAs we have their vendor prefixes ready.
// But otherwise this creates a object URL resource and opens it on an anchor tag which contains the "download" attribute (Chrome)
// ... or opens it in a new tab (FireFox)
// @author Andrew Dodson
// @copyright MIT, BSD. Free to clone, modify and distribute for commercial and personal use.
window.saveAs || ( window.saveAs = (window.navigator.msSaveBlob ? function(b,n){ return window.navigator.msSaveBlob(b,n); } : false) || window.webkitSaveAs || window.mozSaveAs || window.msSaveAs || (function(){
@Wuodan
Wuodan / gist:3104063
Created July 13, 2012 10:13
lsmod |grep iw
halley init.d # lsmod |grep iw
iwlwifi 193213 0
mac80211 259867 1 iwlwifi
cfg80211 169987 2 iwlwifi,mac80211
compat 2139 6 alx,btusb,bluetooth,iwlwifi,mac80211,cfg80211
@Wuodan
Wuodan / gist:3103954
Created July 13, 2012 09:43
net.wlan0 restart
halley init.d # ./net.wlan0 restart
* Bringing down interface wlan0
* Removing addresses
* Stopping wpa_cli on wlan0 ... [ ok ]
* Stopping wpa_supplicant on wlan0 ... [ ok ]
* Bringing up interface wlan0
* Starting wpa_supplicant on wlan0 ...
ioctl[SIOCSIWMODE]: Operation not supported
ioctl[SIOCGIWRANGE]: Operation not supported
ioctl[SIOCGIWMODE]: Operation not supported
@Wuodan
Wuodan / setup.py
Created July 10, 2012 08:26
setup.py of fluxStyle
#!/usr/bin/env python
"""Fluxstyle is a graphical style manager built in python using pygtk and glade.
Fluxstyle is for the fluxbox window manager. Orignal version written by Michael Rice.
Many special thanks to Zan a.k.a. Lauri Peltonen for GUI Improvements & Bug Stomping.
Released under GPL"""
from distutils.core import setup
import distutils.fancy_getopt
import sys
@Wuodan
Wuodan / gist:2934173
Created June 15, 2012 01:43
emerge qemu-kvm
done
make[1]: Entering directory `/var/tmp/portage/app-emulation/qemu-kvm-1.0.1/work/qemu-kvm-1.0.1/x86_64-softmmu'
install -m 755 qemu-system-x86_64 "/var/tmp/portage/app-emulation/qemu-kvm-1.0.1/image//usr/bin"
make[1]: Leaving directory `/var/tmp/portage/app-emulation/qemu-kvm-1.0.1/work/qemu-kvm-1.0.1/x86_64-softmmu'
* The depreciated '/usr/bin/kvm' symlink is no longer installed
* You should use '/usr/bin/qemu-kvm', you may need to edit
* your libvirt configs or other wrappers for qemu-kvm
>>> Completed installing qemu-kvm-1.0.1 into /var/tmp/portage/app-emulation/qemu-kvm-1.0.1/image/