This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public gist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "pp" | |
# | |
# A utility to get hash out of the text block | |
# | |
# Every line is delimited by ls == line separator | |
# Records in lines are delimited by rs = record separator | |
# | |
# The hash is returned where key is the first record and | |
# value is array of rest of the values | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Logstash IndexOutOfBoundsException OR Waiting on 0 | |
=================================================== | |
Exception in thread "LogStash::Agent" java.lang.IndexOutOfBoundsException | |
at java.nio.Buffer.checkBounds(Buffer.java:551) | |
at java.nio.HeapByteBuffer.put(HeapByteBuffer.java:181) | |
at org.jruby.RubyEncoding$UTF8Coder.decode(RubyEncoding.java:250) | |
at org.jruby.RubyEncoding.decodeUTF8(RubyEncoding.java:191) | |
.... | |
Waiting on 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to display and enter japanese text on windows gvim. | |
set encoding=utf-8 | |
set guifont=MS_Gothic:h12:b:cANSI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Account><Accountnumber>1234<Description>savings</Account><Account><Accountnumber>1235<Description>Savings1</Account> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.jnativehook.GlobalScreen; | |
import org.jnativehook.NativeHookException; | |
import org.jnativehook.keyboard.NativeKeyEvent; | |
import org.jnativehook.keyboard.NativeKeyListener; | |
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility; | |
import com.fasterxml.jackson.annotation.JsonIgnore; | |
import com.fasterxml.jackson.annotation.JsonProperty; | |
import com.fasterxml.jackson.core.JsonProcessingException; | |
import com.fasterxml.jackson.databind.ObjectMapper; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class kp_ls( | |
#$somevar = $kp_ls::params::somevar, | |
#$somevar1 = $kp_ls::params::somevar1, | |
) inherits kp_ls::params { | |
notify { 'foo': } | |
notify { 'foo1': message => hiera('foo_message') } | |
} |