Skip to content

Instantly share code, notes, and snippets.

View Thynix's full-sized avatar
🏠
Working from home

Steve Dougherty Thynix

🏠
Working from home
View GitHub Profile
@Thynix
Thynix / gist:9ff588fbdf39125fd84a
Last active August 29, 2015 14:08
Freenet UPnP class file differences
public class plugins.UPnP.UPnP extends plugins.UPnP.org.cybergarage.upnp.ControlPoint 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,plugins.UPnP.org.cybergarage.upnp.device.DeviceChangeListener {
public plugins.UPnP.UPnP();
Code:
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
libdep-findbugs:
[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]
[findbugs] Warnings generated: 797
[findbugs] Analysis errors: 1
[findbugs] Calculating exit code...
@Thynix
Thynix / keybase.md
Created July 11, 2015 22:40
Keybase.io verification for Thynix on GitHub

Keybase proof

I hereby claim:

  • I am Thynix on github.
  • I am thynix (https://keybase.io/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:

#!/bin/bash
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/" > wrapper.conf.new
cat wrapper.conf | sed "s/bcprov-jdk15on-149/bcprov-jdk15on-152/" > wrapper.conf.new
cat wrapper.conf | sed "s/bcprov-jdk15on-151/bcprov-jdk15on-152/" > wrapper.conf.new
echo "Ending with:"
grep bcprov-jdk15on wrapper.conf.new
mv wrapper.conf.new wrapper.conf
@Thynix
Thynix / log.html
Created November 7, 2015 20:54 — forked from natronics/log.html
turn weechat logs into html
<!doctype html>
<html lang="en">
<head>
<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="natronics.org">
<meta name="author" content="Nathan Bergey">
<link href='http://fonts.googleapis.com/css?family=Arvo:400,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
Thynix / control.lua
Created July 9, 2017 14:40
Update to RailPowerSystem 0.1.3 for changes in Factorio 0.15.27
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
remote.call("farl", "add_entity_to_trigger", straightRailPower)
@Thynix
Thynix / test-update-uri.sh
Created May 12, 2018 15:35
Freenet update key transition test
#!/bin/bash
function getURI() {
grep node.updater.URI freenet.ini
}
function restoreConfig() {
cp freenet.ini-stock freenet.ini
}
function run() {
diff --git a/fcp/node.py b/fcp/node.py
index c3b03a3..e444469 100644
--- a/fcp/node.py
+++ b/fcp/node.py
@@ -3267,6 +3271,9 @@ def guessMimetype(filename):
"""
if filename.endswith(".tar.bz2"):
return ('application/x-tar', 'bzip2')
+
+ if filename.endswith('.weechatlog'):
@Thynix
Thynix / build.sh
Last active November 6, 2018 01:39
Script to allow disabling JRE ECDSA for a Java 7 Docker jar build
# Disable ECDSA to avoid `Exception in thread "main" javax.net.ssl.SSLException: java.security.ProviderException: java.security.InvalidKeyException: EC parameters error`
# when running ./gradlew jar; see https://github.com/docker-library/openjdk/issues/117#issuecomment-307222367
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/java.security
./gradlew jar
// Lines of text - specify 1 or 2.
// Remove or comment out one of the example lines to specify 1.
lines=[
"Test",
"Tag",
];
// Additional optional customization follows:
fonts=[
"Impact",