Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Frank Tackitt kageurufu

🏠
Working from home
View GitHub Profile
@kageurufu
kageurufu / dom.py
Last active May 30, 2019
Ultra-minimal Python to HTML DOM renderer, using MarkupSafe for escaping
View dom.py
import html
from markupsafe import Markup
class InvalidVoidTag(Exception):
pass
VOID_TAGS = {
@kageurufu
kageurufu / PKGBUILD
Created Mar 19, 2019
working howdy 2.5.0 pkgbuild without git clone
View PKGBUILD
# Maintainer: boltgolt <boltgolt@gmail.com>
# Maintainer: Kelley McChesney <kelley@kelleymcchesney.us>
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=(
@kageurufu
kageurufu / PKGBUILD
Created Feb 27, 2019
v8-3.14-bin dev update
View PKGBUILD
# Maintainer: Franklyn Tackitt <franklyn@tackitt.net>
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 / 104j.patch
Created Jul 13, 2018
aur/Hyperrouge fix
View 104j.patch
diff --git a/PKGBUILD b/PKGBUILD
index edd4500..6f6232d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Kyle Keen <keenerd@gmail.com>
pkgname=hyperrogue
-pkgver=10.0g
-_pkgver=100g
+pkgver=10.4j
View Pipfile
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"
[packages]
flask = "*"
sqlalchemy = "*"
[dev-packages]
View macOS.xml
<!--
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>
@kageurufu
kageurufu / pycom-firmware-updater.diff
Created Feb 6, 2018
Tweak to pycom-firmware-updater AUR PKGBUILD to make the build nicer
View pycom-firmware-updater.diff
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"
@kageurufu
kageurufu / module_importer.py
Created Aug 30, 2017
Auto-import all files in a module
View module_importer.py
"""
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
View observable.js
var Observable = (function(){
function O(initial) {
this._value = initial;
this._callbacks = [];
return this;
}
O.prototype = {
get: function() { return this.value; },
View winfs.py
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,
You can’t perform that action at this time.