Skip to content

Instantly share code, notes, and snippets.

Thynix / gist:9ff588fbdf39125fd84a
Last active Aug 29, 2015
Freenet UPnP class file differences
View gist:9ff588fbdf39125fd84a
public class plugins.UPnP.UPnP extends implements freenet.pluginmanager.FredPluginHTTP,freenet.pluginmanager.FredPlugin,freenet.pluginmanager.FredPluginThreadless,freenet.pluginmanager.FredPluginIPDetector,freenet.pluginmanager.FredPluginPortForward,freenet.pluginmanager.FredPluginBandwidthIndicator,freenet.pluginmanager.FredPluginVersioned,freenet.pluginmanager.FredPluginRealVersioned, {
public plugins.UPnP.UPnP();
0: aload_0
1: invokespecial #1 // Method plugins/UPnP/org/cybergarage/upnp/ControlPoint."<init>":()V
4: aload_0
5: iconst_0
6: putfield #2 // Field isDisabled:Z
9: aload_0
10: new #3 // class java/lang/Object
View gist:5bf9face2f9ae16f9e5f
[echo] Running Findbugs
[findbugs] Executing findbugs FindBugsTask from ant task
[findbugs] Running FindBugs...
[findbugs] The following errors occurred during analysis:
[findbugs] Iterative jump info converged after 21 iterations in static freenet.crypt.ciphers.Rijndael_Algorithm.<clinit>()V, size 3018
[findbugs] Warnings generated: 797
[findbugs] Analysis errors: 1
[findbugs] Calculating exit code...
Thynix /
Created Jul 11, 2015 verification for Thynix on GitHub

Keybase proof

I hereby claim:

  • I am Thynix on github.
  • I am thynix ( on keybase.
  • I have a public key whose fingerprint is CB5F 1BCA BB54 549C 3047 DA3D 22C9 3F5F 4AAA 616E

To claim this, I am signing this object:

View OS X sed confusion
echo Updating wrapper.conf to bouncycastle 1.52
echo "Starting with:"
grep bcprov-jdk15on wrapper.conf
cat wrapper.conf | sed "s/bcprov-jdk15on-147/bcprov-jdk15on-152/" >
cat wrapper.conf | sed "s/bcprov-jdk15on-149/bcprov-jdk15on-152/" >
cat wrapper.conf | sed "s/bcprov-jdk15on-151/bcprov-jdk15on-152/" >
echo "Ending with:"
grep bcprov-jdk15on
mv wrapper.conf
Thynix / log.html
Created Nov 7, 2015 — forked from natronics/log.html
turn weechat logs into html
View log.html
<!doctype html>
<html lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="Nathan Bergey">
<link href=',700|PT+Sans:400,700,400italic' rel='stylesheet' type='text/css'>
<link href="/resources/css/bootstrap.min.css" rel="stylesheet">
<link href="/resources/css/style.css" rel="stylesheet">
Thynix / control.lua
Created Jul 9, 2017
Update to RailPowerSystem 0.1.3 for changes in Factorio 0.15.27
View control.lua
require "constants"
require "libs.dataLibs"
require "libs.railPowerLib"
require "libs.eventsHandler"
require "controls.rail"
require "controls.train"
local function AddFarl()
if remote.interfaces.farl then"farl", "add_entity_to_trigger", straightRailPower)
Thynix /
Created May 12, 2018
Freenet update key transition test
function getURI() {
grep node.updater.URI freenet.ini
function restoreConfig() {
cp freenet.ini-stock freenet.ini
function run() {
View gist:5e7417f8796ff5e610622bff0fdd8743
diff --git a/fcp/ b/fcp/
index c3b03a3..e444469 100644
--- a/fcp/
+++ b/fcp/
@@ -3267,6 +3271,9 @@ def guessMimetype(filename):
if filename.endswith(".tar.bz2"):
return ('application/x-tar', 'bzip2')
+ if filename.endswith('.weechatlog'):
Thynix /
Last active Nov 6, 2018
Script to allow disabling JRE ECDSA for a Java 7 Docker jar build
# Disable ECDSA to avoid `Exception in thread "main" EC parameters error`
# when running ./gradlew jar; see
sed -i 's/RSA keySize < 1024, DSA keySize < 1024, EC keySize < 224/RSA keySize < 1024, DSA keySize < 1024, EC keySize < 224, ECDSA/' /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/security/
./gradlew jar