Skip to content

Instantly share code, notes, and snippets.

View kageurufu's full-sized avatar
🏠
Working from home

Frank Tackitt kageurufu

🏠
Working from home
View GitHub Profile
@kageurufu
kageurufu / CLA.md
Created November 21, 2016 17:10 — forked from pjcozzi/CLA.md
CLA for MIT license

By making a contribution to any project under the organization Level Playing Field, I certify that:

(a) The contribution was created in whole or in part by me and I have the right to submit it under the MIT license; or

(b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that

import ctypes
kernel32 = ctypes.windll.kernel32
CreateFileW = kernel32.CreateFileW
CloseHandle = kernel32.CloseHandle
CreateFileW.__doc__ = """HANDLE WINAPI CreateFile(
_In_ LPCTSTR lpFileName,
_In_ DWORD dwDesiredAccess,
_In_ DWORD dwShareMode,
var Observable = (function(){
function O(initial) {
this._value = initial;
this._callbacks = [];
return this;
}
O.prototype = {
get: function() { return this.value; },
@kageurufu
kageurufu / module_importer.py
Created August 30, 2017 22:05
Auto-import all files in a module
"""
Import all files and packages under a module into the calling file's
locals, and set __all__ to all imported modules
May be cpython only, due to abuse of ``inspect``
"""
import importlib
import inspect
import os
@kageurufu
kageurufu / pycom-firmware-updater.diff
Created February 6, 2018 15:34
Tweak to pycom-firmware-updater AUR PKGBUILD to make the build nicer
diff --git a/PKGBUILD b/PKGBUILD
index 27f3ffc..dd4e5a5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,9 +13,9 @@ optdepends=('python2-qscintilla-qt4: gui'
'python2-pyserial: gui'
'python2-setuptools: gui'
'python2-requests: gui')
-source=('https://software.pycom.io/findupgrade?product=pycom-firmware-updater&type=all&platform=unix&redirect=true'
+source=("pycom-firmware-updater.${pkgver}.tgz::https://software.pycom.io/findupgrade?product=pycom-firmware-updater&type=all&platform=unix&redirect=true"
<!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
virsh edit macOS
or other application using the libvirt API.
-->
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
<name>macOS</name>
<uuid>c2586d23-21cb-469e-b367-43101a988c38</uuid>
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"
[packages]
flask = "*"
sqlalchemy = "*"
[dev-packages]
@kageurufu
kageurufu / 104j.patch
Created July 13, 2018 20:44
aur/Hyperrouge fix
diff --git a/PKGBUILD b/PKGBUILD
index edd4500..6f6232d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Kyle Keen <[email protected]>
pkgname=hyperrogue
-pkgver=10.0g
-_pkgver=100g
+pkgver=10.4j
@kageurufu
kageurufu / PKGBUILD
Created February 27, 2019 15:36
v8-3.14-bin dev update
# Maintainer: Franklyn Tackitt <[email protected]>
pkgname=v8-3.14-bin
pkgver=3.14.5.8
pkgrel=2
pkgdesc="v8 3.14 binary package from ubuntu xenial"
url="https://github.com/v8/v8"
arch=('x86_64')
license=('BSD new')
depends=()
@kageurufu
kageurufu / PKGBUILD
Created March 19, 2019 01:27
working howdy 2.5.0 pkgbuild without git clone
# Maintainer: boltgolt <[email protected]>
# Maintainer: Kelley McChesney <[email protected]>
pkgname=howdy
pkgver=2.5.0
pkgrel=1
pkgdesc="Windows Hello for Linux"
arch=('x86_64')
url="https://github.com/boltgolt/howdy"
license=('MIT')
depends=(