This file contains hidden or 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
# | |
# Author:: Tim Dysinger (<[email protected]>) | |
# Author:: Benjamin Black (<[email protected]>) | |
# Author:: Christopher Brown (<[email protected]>) | |
# Copyright:: Copyright (c) 2009 Opscode, Inc. | |
# License:: Apache License, Version 2.0 | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at |
This file contains hidden or 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
ActiveSupport::Notifications.subscribe("skrill_psp:request") do |*args| | |
event = ActiveSupport::Notifications::Event.new(*args) | |
Rails.logger.info "[PUMA payload] #{event.payload[:payload]}" | |
Rails.logger.info "[PUMA response] #{event.payload[:response]}" | |
end |
This file contains hidden or 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
#!/usr/bin/env ruby | |
require 'em-websocket' | |
require 'thor' | |
module Handler | |
def initialize(args) | |
@ws = args | |
end | |
def receive_data(data) |
This file contains hidden or 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
{ | |
"extractors": [ | |
{ | |
"condition_type": "string", | |
"condition_value": "sudo:", | |
"converters": [], | |
"cursor_strategy": "copy", | |
"extractor_config": { | |
"regex_value": "sudo:\\s+(\\S+)\\s+:" | |
}, |
This file contains hidden or 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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'treetop' | |
require 'active_support/all' | |
Treetop.load 'mt940' | |
parser = MT940Parser.new | |
parser.parse(':61:foo:86:bar:86:bza:61:baz:61:fogoo').elements.each do |st| | |
st.elements.each do |st| |
This file contains hidden or 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
java.io.FileNotFoundException: /opt/elasticsearch/logs/graylog2_index_search_slowlog.log (No such file or directory) | |
at java.io.FileOutputStream.open(Native Method) | |
at java.io.FileOutputStream.<init>(FileOutputStream.java:221) | |
at java.io.FileOutputStream.<init>(FileOutputStream.java:142) | |
at org.apache.log4j.FileAppender.setFile(FileAppender.java:294) | |
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165) | |
at org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollingFileAppender.java:223) | |
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307) | |
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172) | |
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104) |
This file contains hidden or 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
oot@ip-172-30-0-137:/opt/ruby-2.1/bin# ./gem install ffi -v '1.9.6' | |
Building native extensions. This could take a while... | |
ERROR: Error installing ffi: | |
ERROR: Failed to build gem native extension. | |
/opt/ruby-2.1/bin/ruby extconf.rb | |
checking for ffi.h... *** extconf.rb failed *** | |
Could not create Makefile due to some reason, probably lack of necessary | |
libraries and/or headers. Check the mkmf.log file for more details. You may | |
need configuration options. |
This file contains hidden or 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
package main | |
import "os/exec" | |
import "fmt" | |
import "net/http" | |
import "io/ioutil" | |
import "bufio" | |
import "os" | |
import "encoding/json" |
This file contains hidden or 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
curl -i -X POST \ | |
-H "Content-Type:application/json" \ | |
-H "Accept:application/json" \ | |
-d \ | |
'' \ | |
'https://fintechtoolbox.com/validate/iban?iban=DE51370501981929807319' |
This file contains hidden or 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
// ==UserScript== | |
// @name Mangopay Notifications | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description simulate mangopay notifications direct from the dashboard | |
// @author Lars Brillert | |
// @include /https://dashboard.sandbox.mangopay.com/Users/\d+/WalletTransactions/\d+/ | |
// @grant none | |
// ==/UserScript== | |
/* jshint -W097 */ |
OlderNewer