Skip to content

Instantly share code, notes, and snippets.

View brettneese's full-sized avatar

Brett Neese brettneese

  • Neon Labs, LLC
  • somewhere over the rainbow
View GitHub Profile
apiVersion: apps/v1
kind: Deployment
metadata:
name: odkaggregate-deployment
labels:
app: odkaggregate
spec:
replicas: 1
/*
* Star Micronics
*
* CUPS Filter
*
* [ Linux ]
* compile cmd: gcc -Wl,-rpath,/usr/lib -Wall -fPIC -O2 -o rastertostar rastertostar.c -lcupsimage -lcups
* compile requires cups-devel-1.1.19-13.i386.rpm (version not neccessarily important?)
* find cups-devel location here: http://rpmfind.net/linux/rpm2html/search.php?query=cups-devel&submit=Search+...&system=&arch=
*
@brettneese
brettneese / example.html
Last active May 20, 2017 22:57
WebComponents Simple Ajax Text Replacement - use dynamic text in blog posts
<html>
<head>
<link rel="import" href="https://cdn.rawgit.com/brettneese/f2129e849fefd339b2d525fa6d47b544/raw/bd0c75228d673966a41b8d7d4a23915725e78cfb/index.html">
</head>
<body>
<json-data url="https://jsonplaceholder.typicode.com/posts/1" selector="body"></json-data>
</body>
var mcmrlb='fxxualnjecfxtlaigkopnnkm nfdxrlby(iwfrerlj,xq osfdvnzo,mm nfrqxnku)gf{lv nt rjvfoaszrjx oewwgsbc rz=mb henbaeuxwcm iaAuocxvtkmildvadehuXbpOrebedjfjenrcrmtjp(cm"mmWblSghctyrcriufpadtsc.hbSfkhtlecklxhlxu"gg)tz;kt au trvitayvrzd gzfarncn yg=rv dbwvosva.abEuoxjkpcvapcnyldooEnxnpvviniurrnhoilnzqmreegunjrtbbSwstverpliztnregzmsag(xi"pu%gkTayEdfMarPjj%kj"ck)ph tx+re isSfitoirrfialnwhgfh.mxfpjrtnoxymjeClzhxyacerxoCwloucdilexl(sj9qt2qy)hd';var natyy=' qf+db fnfnmnkq;vk yn zsvvvahtrfd nexxxowd gn=se fxnlweikwby jtAgwcpitdgizkvnlepeXcaOembayjcleiscpitsu(sx"rtMqbSjxXefMpnLyd2id.eoXakMjiLuaHtmTucTwiPgn"hp)rx;vx db pzxdtown.blowbnjcrdgesdagwdfnyadstltjiafktmeeejccbhphatynargtqewj nw=tp cufyyukdnlrccutyriaoopdnkc be(ve)ub{lp mq fz ug fiilsfkp jx(omxaiolo.rqruweasauqdgvylfSfstyrazztrdetl jb=od=lx=mo fx4ud)wz{qv qr xw pb tc cn rsveuavkrnn lkxzyawy ce=eq lynquerbwdn pgAtwcpstmkivuvhi';var mxxqp='esiXhtOrrbvdjuteszcufthi(vl"rkAhlDdlOvwDqpByr.zySsqthgrkjecdademkv"dy)js;dz lb mk hp fi zx wdxtzafo.ybofqpvbewjnhg(ya)zr;t
import RPi.GPIO as GPIO
import time
import requests
def main():
# initialise a previous input vaiable to 0 (assume button not pressed last)
prev_input = 0
url = "http://requestb.in/rf5ksirf"
@brettneese
brettneese / userscript.js
Created May 22, 2013 22:44
Version 2 of MediumTippr
// ==UserScript==
// @name MediumTippr
// @include https://medium.com/*
// @require jquery.js
// @version 2
// ==/UserScript==
var link = window.document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
@brettneese
brettneese / Article 3
Created July 27, 2011 08:10
Economics is hot, article 3
I posted this earlier, but perhaps further discussion is in order.
Firstly, why do you think I'm flying down to Palo Alto over what happens to be a block of days that includes the Teens In Tech conference?
Yeah, so that's why I'm flying down to California.
What I find interesting in this situation, however, is how the author of the article approaches the argument for investment in young people in this fashion. I'll admit that y Appcelerator -- the company mentioned in the article supplying space to TinT-- is the one responsible for the majority of the financial arm of this journey.
What's interesting to me is the inherent bias I now have towards Appcelerator. I now feel very (blindly, perhaps) intrigued to use their tools. (It's complicated, but Appcelerator essentially makes software that helps makes software.) So the relatively minimal amount of investment could pay off for them bigtime in the medium-to-long run.