Skip to content

Instantly share code, notes, and snippets.

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

frank waldheim efwe

🏠
Working from home
View GitHub Profile
addCoverage: () ->
callback = (response) =>
points = new L.glify.Points({map: @map, click: @pointClicked, data: response, color: 'black'})
$.get '/map/coverage', callback, 'json'

Keybase proof

I hereby claim:

  • I am efwe on github.
  • I am efwe (https://keybase.io/efwe) on keybase.
  • I have a public key whose fingerprint is 4F21 6173 10D2 ED2F CBF0 F831 C47F 7AD1 A2DA 482A

To claim this, I am signing this object:

@efwe
efwe / Weblogic 12.2.1 error
Created November 13, 2015 10:22
While deploying my application (which runs fine on 10.3) on the new Weblogic 12.2.1 i receive this error. It tries to connect to port 7100 but there is noone listening...
Caused By: java.net.ConnectException: Tried all: '2' addresses, but could not connect over HTTP to server: 'localhost', port: '7100'
failed reasons:
[0] address:'localhost/127.0.0.1',port:'7100' : java.net.ConnectException: Connection refused: no further information
[1] address:'localhost/0:0:0:0:0:0:0:1',port:'7100' : java.net.ConnectException: Connection refused: no further information
at weblogic.net.http.HttpClient.openServer(HttpClient.java:408)
at weblogic.net.http.HttpClient.openServer(HttpClient.java:511)
at weblogic.net.http.HttpClient.New(HttpClient.java:313)
at weblogic.net.http.HttpClient.New(HttpClient.java:292)
at weblogic.net.http.HttpURLConnection.connect(HttpURLConnection.java:295)
@efwe
efwe / poopoo
Last active November 8, 2015 17:18
This is the 💩💩 program. It acts as a password pager reading the sensitive information from a gpg encrypted json file. It assumes, that the file is formatted like the test.json below. All you need to know is your master password and a part of the id you're looking for.
💩💩 () { /usr/local/bin/gpg -q -d ~fw/.data.json.gpg | jq '.accounts | .[] as $a | $a.id | if test("^.*'$1'.*$")==true then $a else null end | select (.!=null)'}
@efwe
efwe / SpringBeanResolver.java
Last active August 29, 2015 14:25
Resolve beans from classes which are not beans
@Component
public class SpringBeanResolver
{
@Autowired
private ApplicationContext applicationContext;
private static SpringBeanResolver instance;
private SpringBeanResolver()
{
@efwe
efwe / gist:0efdfc72baab007c4d87
Created October 1, 2014 05:39
first and last two trackpoints.
<trkpt lat="50.8024286292" lon="20.4709493648">
<ele>132.80</ele>
<time>2014-09-28T09:41:53Z</time>
<extensions>
<gpxtpx:TrackPointExtension>
<gpxtpx:hr>114</gpxtpx:hr>
</gpxtpx:TrackPointExtension>
</extensions>
</trkpt>
<trkpt lat="50.8026127797" lon="20.4715069290">
@efwe
efwe / gpx_parser.rb
Created September 30, 2014 14:09
My GPX parser
require 'nokogiri'
require 'date'
require 'geo-distance'
#
class GpxParser
attr_accessor :doc , :creators
@efwe
efwe / gist:9413273
Created March 7, 2014 15:14
idea 13 - gradle integration
2014-03-07 16:13:02,638 [ 249122] INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from D:\java\jdk1.7.0_11
2014-03-07 16:13:03,671 [ 250155] INFO - .project.GradleProjectResolver - Gradle project resolve error
org.gradle.tooling.GradleConnectionException: Could not fetch model of type 'BasicIdeaProject' using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.0-bin.zip'.
at org.gradle.tooling.internal.consumer.ResultHandlerAdapter.onFailure(ResultHandlerAdapter.java:55)
at org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor$1$1.run(DefaultAsyncConsumerActionExecutor.java:57)
at org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:66)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
at org.gradle.tooling.internal.consu
@efwe
efwe / gist:9390873
Created March 6, 2014 14:24
traceroute6 -v -m 64 target.fauad.de
traceroute6 to traceroute.fauad.de (2001:470:1f0b:1d0f:23::ff) from 2a01:4f8:d13:b0b::2, 64 hops max, 12 byte packets
1
16 bytes from 2a00:1450:4001:809::1009 to 2a01:4f8:d13:b0b::2: icmp type 129 (Echo Reply) code 0
0000: 531884a1 00030743 00000000 00000000
16 bytes from 2a00:1450:4001:809::1009 to 2a01:4f8:d13:b0b::2: icmp type 129 (Echo Reply) code 0
0000: 531884a2 000303ac 00000000 00000000
16 bytes from 2a00:1450:4001:809::1009 to 2a01:4f8:d13:b0b::2: icmp type 129 (Echo Reply) code 0
0000: 531884a3 0002fcc6 00000000 00000000
@efwe
efwe / gist:9390376
Created March 6, 2014 14:03
/etc/rc.conf freeBSD 10 - hetzner - ipv6
ipv6_default_interface="re0"
ifconfig_re0_ipv6="inet6 2a01:4f8:d13:b0b::2 prefixlen 64"
ipv6_defaultrouter="2a01:4f8:d13:b0b::1"