Skip to content

Instantly share code, notes, and snippets.

Steve Dougherty Thynix

Block or report user

Report or block Thynix

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Thynix
Thynix / gist:9ff588fbdf39125fd84a
Last active Aug 29, 2015
Freenet UPnP class file differences
View gist:9ff588fbdf39125fd84a
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
View gist:5bf9face2f9ae16f9e5f
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 Jul 11, 2015
Keybase.io verification for Thynix on GitHub
View keybase.md

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:

View OS X sed confusion
#!/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 Nov 7, 2015 — forked from natronics/log.html
turn weechat logs into html
View log.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 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
remote.call("farl", "add_entity_to_trigger", straightRailPower)
@Thynix
Thynix / test-update-uri.sh
Created May 12, 2018
Freenet update key transition test
View test-update-uri.sh
#!/bin/bash
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/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 Nov 6, 2018
Script to allow disabling JRE ECDSA for a Java 7 Docker jar build
View build.sh
# 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
You can’t perform that action at this time.