Skip to content

Instantly share code, notes, and snippets.

View FirefighterBlu3's full-sized avatar

David Ford FirefighterBlu3

View GitHub Profile
@FirefighterBlu3
FirefighterBlu3 / CSS animated linear gradient text
Last active March 10, 2017 01:57
Animated linear gradient background of text using only CSS
<html>
<head>
<style>
.dbox {
border: 1px solid black;
width: 10cm;
text-align: center;
padding:3em;
margin: auto;
}
@FirefighterBlu3
FirefighterBlu3 / wampcams.py
Created January 19, 2017 23:14
free threaded WAMP client that runs separate from any main process
#!/usr/bin/env python
__version__ = '1.5'
__released__ = '2016-Jul-6 12:50A EST'
__author__ = 'david@blue-labs.org'
__license__ = 'Apache 2.0'
import asyncio
import configparser
import sys
from pyroute2.netlink import nla
from pyroute2.netlink import NLA_F_NESTED
from pyroute2.netlink import NLA_F_NET_BYTEORDER
from pyroute2.netlink.nfnetlink import nfgen_msg
NFT_TABLE_MAXNAMELEN = 32
NFT_CHAIN_MAXNAMELEN = 32
NFT_USERDATA_MAXLEN = 256
NFT_MSG_NEWTABLE = 1
@FirefighterBlu3
FirefighterBlu3 / bs4-no-html-translations.py
Created January 24, 2016 01:40
Prevent BeautifulSoup from translating HTML charrefs and entities
import bs4.dammit
import bs4.builder._htmlparser
from bs4 import BeautifulSoup
# when analyzing spam, we always run into situations where the sender tries
# hard to obfuscate their input in order to sneak by spam detecting engines.
# instead of "ABC", they'll use HTML Entity references; &#65;&#66;&#67; in
# order to extract the viewer readable segments, we need a parser. most
# parsers try to be smart and clean things up. BeautifulSoup and lxml are
# two common parsers. lxml is largely compiled C so we can't tweak it very

Keybase proof

I hereby claim:

  • I am FirefighterBlu3 on github.
  • I am firefighterblu3 (https://keybase.io/firefighterblu3) on keybase.
  • I have a public key whose fingerprint is 7664 60A8 14AE 0D00 66C3 EE92 2AC2 7DE0 1E1D FAD6

To claim this, I am signing this object: