Skip to content

Instantly share code, notes, and snippets.

View igalic's full-sized avatar
🔇
dnd

Mina Galić igalic

🔇
dnd
View GitHub Profile
@igalic
igalic / -
Created December 21, 2015 20:36
diff --git a/Rakefile b/Rakefile
index db37966..fe3a2b5 100644
--- a/Rakefile
+++ b/Rakefile
@@ -44,15 +44,34 @@ Blacksmith::RakeTask.new do |t|
# just do the tagging [:clean, :tag, :bump_commit]
end
-desc 'Offload release process to Travis.'
-task travis_release: [
@igalic
igalic / logstash.conf
Last active November 25, 2020 08:37
Error: Cannot use more than 1 filter worker because the following plugins don't work with more than one worker: multiline, multiline, multiline
input {
# Redis
redis {
host => "127.0.0.1"
type => "redis-input"
data_type => "list"
key => "logstash"
}
lumberjack {
port => "1337"
[2] pry(main)> Facter::Util::Resolution.exec('/usr/share/elasticsearch/bin/elasticsearch --version')
=> "Version: 2.0.0, Build: de54438/2015-10-22T08:09:48Z, JVM: 1.8.0_66"
[3] pry(main)> Facter::Util::Resolution.exec('/usr/share/elasticsearch/bin/elasticsearch -v')
=> ""
[4] pry(main)>
@igalic
igalic / gist:aeec43ed9bf4d7489954
Created November 4, 2015 13:46
modelize: npm i
igalic@levix ~/s/b/modelize (master=) [1]> npm i
npm WARN install Couldn't install optional dependency: Unsupported
> phantomjs@1.9.18 install /home/igalic/src/bw/modelize/node_modules/phantomjs
> node install.js
Looks like an `npm install -g`; unable to check for already installed version.
Downloading https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2
Saving to /tmp/phantomjs/phantomjs-1.9.8-linux-x86_64.tar.bz2
Receiving...
@igalic
igalic / mix release
Last active October 30, 2015 11:13
===> Missing beam file elf_format <<"I DONT CARE">>
igalic@levix ~/s/c/plog (master ⚡=)> cat rel/vm.args
--disable-hipe
igalic@levix ~/s/c/plog (master ⚡=)> begin; set -x MIX_ENV prod ; mix release ; end
==> Building release with MIX_ENV=prod.
==> Generating relx configuration...
==> Generating sys.config...
==> Generating vm.args...
==> Generating boot script...
==> Performing protocol consolidation...
==> Conform: Loading schema...
@igalic
igalic / erlrun.sh
Last active October 29, 2015 22:11
#!/usr/bin/env bash
script_dir="$(dirname "$(readlink -f "$0")")"
show_help() {
cat << EOF
Usage: "${0##*/}" [-h] ...
-h|--help display this help and exit
--erlapp_path Mountpoint where apps will be placed in rumprun (Default: /apps/erlang)
@igalic
igalic / documentation.md
Created October 29, 2015 15:52
How documentation works

This space, which contains important information about the following section is completely invisible to people reading your documentation.

curl https://docker.io | sudo bash

This space is also invisible, and should contain even less important invisible because people reading your documentation won't see it either.

@igalic
igalic / -
Created October 27, 2015 20:54
configure:14885: checking setns.h usability
conftest.c:145:19: fatal error: setns.h: No such file or directory
#include <setns.h>
| #include <setns.h>
configure:14885: checking setns.h presence
conftest.c:112:19: fatal error: setns.h: No such file or directory
#include <setns.h>
| #include <setns.h>
configure:14885: checking for setns.h
configure:14897: checking for setns
@igalic
igalic / -
Created October 27, 2015 18:19
igalic@levix ~/s/r/r/erlang (master=) [2]> make V=1
make -C build V=1
make[1]: Entering directory '/home/igalic/src/rump/rumprun-packages/erlang/build'
*
* Cross compiling Erlang/OTP-18 for: x86_64-rumprun-netbsd
*
test X"$ERTS_SKIP_DEPEND" = X"true" || (cd erts/emulator && ERL_TOP=/home/igalic/src/rump/rumprun-packages/erlang/build make generate)
make[2]: Entering directory '/home/igalic/src/rump/rumprun-packages/erlang/build/erts/emulator'
make -f x86_64-rumprun-netbsd/Makefile generate
make[3]: Entering directory '/home/igalic/src/rump/rumprun-packages/erlang/build/erts/emulator'
AllCops:
Exclude:
- vendor/**/*
- pkg/**/*
- spec/fixtures/**/*
# Configuration parameters: AllowURI, URISchemes.
Metrics/LineLength:
Max: 328