Skip to content

Instantly share code, notes, and snippets.

@TronPaul
TronPaul / AttributeFactoryHelpers.java
Created February 27, 2020 06:07
Substitutions needed to run Lucene 8.4.1 on a GraalVM native image
package org.apache.lucene.util;
import java.lang.reflect.Constructor;
import java.lang.reflect.UndeclaredThrowableException;
public final class AttributeFactoryHelpers {
static final AttributeFactory DEFAULT = new DefaultAttributeFactory();
static final Constructor<? extends AttributeImpl> findAttributeImplCtor(Class<? extends AttributeImpl> clazz) {
try {
@TronPaul
TronPaul / requirements.txt
Created January 13, 2016 04:45
csgo-music-player requirements.txt
Flask==0.10.1
itsdangerous==0.24
Jinja2==2.8
MarkupSafe==0.23
Pillow==3.1.0
PyAutoGUI==0.9.33
PyMsgBox==1.0.3
PyScreeze==0.1.8
python3-xlib==0.15
PyTweening==1.0.3
@TronPaul
TronPaul / kibana
Last active August 29, 2015 14:27
Kibana init.d
#!/bin/sh
#
# /etc/init.d/kibana4_init -- startup script for kibana4
# bsmith@the408.com 2015-02-20; used elasticsearch init script as template
# https://github.com/akabdog/scripts/edit/master/kibana4_init
#
### BEGIN INIT INFO
# Provides: kibana4_init
# Required-Start: $network $remote_fs $named
# Required-Stop: $network $remote_fs $named
@TronPaul
TronPaul / master
Last active August 29, 2015 14:27
PIllar troubles v2015.8
gitfs_env_whitelist:
- base
- production
gitfs_remotes:
- https://github.com/TronPaul/unpro-salt.git
- https://github.com/TronPaul/sun-java-formula.git
- https://github.com/TronPaul/sensu-formula.git
- https://github.com/TronPaul/rabbitmq-formula.git
- https://github.com/saltstack-formulas/nfs-formula.git
@TronPaul
TronPaul / TODO.md
Last active August 29, 2015 14:23
clojure torrent library/client

TODO:

  • actual downloading
  • DHT discovery
@TronPaul
TronPaul / gist:c8bab63529b89ef23b63
Created May 27, 2015 21:54
Create xa-datasource request
{
"address": [
{
"subsystem": "datasources"
},
{
"xa-data-source": "DefaultPool"
}
],
"driver-name": "oracle",
@TronPaul
TronPaul / plan.md
Last active August 29, 2015 14:07
twitch plays defcon

Requirements

ICBM

  • launch nukes at cities/installments w/ an icbm site
  • switch icbm site to launch or defense mode
  • target nuke

Placement

@TronPaul
TronPaul / proposal.rst
Last active August 29, 2015 14:05
UGC proposal

I would like to develop a rest interface for the UGC’s league data. UGC is a free league, staffed by volunteers and has limited resources for development projects. With a restful interface, third-party developers would be able to use UGC data to develop tools and services that would assist the UGC community. Various community members have created small tools already, but developing these tools is difficult as data must be retrieved by parsing UGC web pages. These web pages are not guaranteed to remain the same, and they contain superfluous formatting and rendering data.

Requirements:

  • Rest interfaces for
@TronPaul
TronPaul / method.md
Last active August 29, 2015 13:57
Pixel Art

pixel_art (convert image to pixel art)
desired number of colors, size, original_image -> pixel art

  1. resize image using nearest neighbor
  2. reduce colors with low pixel count (< X% of pixels)
  3. while desired number of colors < number of colors
    1. reduce similar adjacent colors
    2. reduce similar non-adjacent colors
  4. Dither
@TronPaul
TronPaul / char_info.rst
Last active August 29, 2015 13:56
Star Wars: Edge of the Empire Notes

Character

Overview

Name: Ace Azzamean