Skip to content

Instantly share code, notes, and snippets.

View omares's full-sized avatar
💭
🚀

Ota Mares omares

💭
🚀
View GitHub Profile
{:message=>"Grok compile", :field=>"facility", :patterns=>["%{real_facility}"], :level=>:info, :file=>"/usr/share/java/logstash/lib/logstash-1.1.9-monolithic.jar!/logstash/filters/grok.rb", :line=>"275", :method=>"register"}
{:message=>"regexp: /facility", :pattern=>"%{real_facility}", :level=>:debug, :file=>"/usr/share/java/logstash/lib/logstash-1.1.9-monolithic.jar!/logstash/filters/grok.rb", :line=>"277", :method=>"register"}
filter {
grok {
pattern => "%{TIMESTAMP_ISO8601:timestamp} %{LOGLEVEL:severity} %{NOTSPACE} %{NUMBER:duration}s %{NOTSPACE} %{GREEDYDATA:message}"
tags => ["webservice-requests"]
}
mutate {
add_field => ["shipper_timestamp", "%{@timestamp}"]
}
date {
match => ["timestamp", "ISO8601"]
[deployment]$ pwd
/home/deployment/.npm/pty.js/0.2.1
[deployment]$ ls -lah
insgesamt 28K
drwxrwxr-x 3 deployment deployment 4,0K 13. Mär 18:22 .
drwxrwxr-x 4 deployment deployment 4,0K 13. Mär 17:41 ..
drwxrwxr-x 5 deployment deployment 4,0K 13. Mär 18:22 package
-rw-r--r-- 1 deployment deployment 13K 13. Mär 18:22 package.tgz
[deployment]$ ls -lah package
insgesamt 56K
spawn = require('child_process').spawn
Q = require 'q'
# A capistrano command wrapper providing various helper methods for easier usage.
#
# Dependencies:
# child_process
# q: 0.9.x
class Capistrano
args = []
php-tools:master ➜❯ composer install
Loading composer repositories with package information
Installing dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for omares/phpcpd 1.4.1@dev -> satisfiable by omares/phpcpd 1.4.1.
- omares/phpcpd 1.4.1 requires sebastian/finder-facade dev-master -> no matching package found.
Potential causes:
file { "/etc":
backup => true,
ensure => "present",
owner => "root",
group => "root",
mode => 0644,
recurse => true,
source => [
"puppet:///modules/rebuy_sandbox/etc"
]
[27-May-2014 14:10:18] WARNING: [pool rebuy] child 3963 said into stderr: "NOTICE: PHP message: PHP Fatal error: Uncaught exception 'Exception' with message 'test exception' in /foo/htdocs/index.php:4"
@omares
omares / unittest.csproj
Last active August 29, 2015 14:21
csproj file for reactiveui unit tests
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectTypeGuids>{A3F8F2AB-B479-4A4A-A458-A89E7DC349F1};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<ProjectGuid>{AE49A030-178E-485A-8683-3ACE79E091FE}</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>RebuyApp.ReactiveTests</RootNamespace>
<MonoMacResourcePrefix>Resources</MonoMacResourcePrefix>
private TypeInfo getPageTypeForViewModel(INavigatableViewModel viewModel)
{
// hier will er ein cast auf TypeInfo
return from type in assembly.DefinedTypes
where type.GetCustomAttribute<ViewForAttribute>()?.ViewModelType == viewModel.GetType()
select type;
}
var t = typeof(INavigateHere<>).GetTypeInfo();
var test = from type in assembly.DefinedTypes
where t.IsAssignableFrom(type)
select type;