Skip to content

Instantly share code, notes, and snippets.

@pashinin
pashinin / pacemaker_install_ubuntu.sh
Last active October 30, 2017 09:24
Installing pacemaker from sources on Ubuntu
#!/bin/bash
# bash <(curl -s https://gist.githubusercontent.com/pashinin/8296c6f2dad1ac075e0cfa4f18d1f56f/raw/pacemaker_install_ubuntu.sh)
# for pacemaker
sudo apt-get install -y libtool uuid-dev libglib2.0-dev libxml2-dev libxslt1-dev libbz2-dev libqpx-dev libqb-dev libcpg-dev libcfg-dev corosync-dev libcmap-dev libquorum-dev
# corosync
# sudo apt-get install -y libnss3-dev mock
@pashinin
pashinin / gist:f98bc62a727fb517b48baf9d443bcebb
Last active February 15, 2024 07:28
windows shit hostnames to block
# -*- mode:conf-unix -*-
### hosts win10 extra
### More info: https://github.com/crazy-max/WindowsSpyBlocker
0.0.0.0 answers.microsoft.com
0.0.0.0 apps.skype.com
0.0.0.0 az361816.vo.msecnd.net
0.0.0.0 az512334.vo.msecnd.net
0.0.0.0 cdn.content.prod.cms.msn.com
0.0.0.0 choice.microsoft.com
@pashinin
pashinin / travis.yml
Last active February 3, 2017 20:34
Travis notes
addons:
postgresql: "9.6"
hosts:
- pashinin.com
# apt:
# sources:
# # - deadsnakes # for python 3.5
# - sourceline: 'ppa:brightbox/ruby-ng'
# - sourceline: 'ppa:nginx/stable'
# packages:
ldd /usr/bin/simplescreenrecorder
linux-vdso.so.1 => (0x00007fffde79b000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fc0cac70000)
libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007fc0ca936000)
libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007fc0ca723000)
libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007fc0ca51d000)
libXi.so.6 => /usr/lib/x86_64-linux-gnu/libXi.so.6 (0x00007fc0ca30d000)
libasound.so.2 => /usr/lib/x86_64-linux-gnu/libasound.so.2 (0x00007fc0ca00c000)
libavformat-ffmpeg.so.56 => /usr/lib/x86_64-linux-gnu/libavformat-ffmpeg.so.56 (0x00007fc0c9c0f000)
libavcodec-ffmpeg.so.56 => /usr/lib/x86_64-linux-gnu/libavcodec-ffmpeg.so.56 (0x00007fc0c87e5000)
@pashinin
pashinin / elasticsearch-results.txt
Last active August 8, 2016 12:38
elasticsearch plugin tests
Results :
Failed tests: testRewritingWildcardsWithShingles_STAR_MIDDLE(com.tcdi.zombodb.query_parser.TestQueryRewriter): expected:<..."value" : "t[^$]*he"[]
testExactPhrasesGetMerged(com.tcdi.zombodb.query_parser.TestQueryRewriter): expected:<...uld" : {
testMoreLikeThis(com.tcdi.zombodb.query_parser.TestQueryRewriter): expected:<..._field" ],
test_CVSIX_2941_NestedGroupRollupWithNonNestedFields_OR(com.tcdi.zombodb.query_parser.TestQueryRewriter): expected:<...ery" : {
testTermRollups(com.tcdi.zombodb.query_parser.TestQueryRewriter): expected:<{
test_MergeLiterals_OR_WithArrays(com.tcdi.zombodb.query_parser.TestQueryRewriter): expected:<{
test_MergeLiterals_AND_NE(com.tcdi.zombodb.query_parser.TestQueryRewriter): expected:<...ust_not" : {
test_RegexProximity(com.tcdi.zombodb.query_parser.TestQueryRewriter): expected:<..."value" : "[0-9]{2}"[
*** /build/zombodb/postgres/src/test/expected/expansions.out 2016-08-01 08:20:46.475002197 +0000
--- /build/zombodb/postgres/results/expansions.out 2016-08-13 12:46:49.435631734 +0000
***************
*** 1,544 ****
select * from zdb_tally('so_posts', 'owner_display_name', '^.*', '( #expand<parent_id=<this.index>id> (title:java) ) ', 1000, 'term');
! term | count
! ------------------------+-------
! | 4010
! 8kb | 1
! a b | 1
test setup ... ok
test so_comments ... ok
test TUTORIAL ... ok
test configure ... ok
test create-indexes ... ok
test mappings ... ok
test update-mappings ... ok
test counts ... ok
test words ... ok
test updates ... ok