Skip to content

Instantly share code, notes, and snippets.

View fLipE23's full-sized avatar
🏠
Working from home

Sergey fLipE23

🏠
Working from home
View GitHub Profile
@fLipE23
fLipE23 / logstash-pg-es.md
Created February 3, 2022 11:35 — forked from eriknovak/logstash-pg-es.md
Instructions for setting up the Logstash configuration for synching PostgreSQL with Elasticsearch

Populating Elasticsearch Index with Logstash

Logstash is a free and open server-side data processing pipeline that ingests data from a multitude of sources, transforms it, and then sends it to your favorite "stash."

This section describes how one can use it on UNIX to migrate data from a PostgreSQL database to elasticsearch.

The Prerequisites

const HDWalletProvider = require("truffle-hdwallet-provider");
require('dotenv').config(); // Store environment-specific variable from '.env' to process.env
module.exports = {
/**
* Networks define how you connect to your ethereum client and let you set the
* defaults web3 uses to send transactions. If you don't specify one truffle
* will spin up a development blockchain for you on port 9545 when you
* run `develop` or `test`. You can ask a truffle command to use a specific
@fLipE23
fLipE23 / Pagination.vue
Created February 27, 2020 12:02
Vue pagination
<template>
<nav>
<ul class="pagination">
<li>
<a @click="paginationNumberClick(-1)"
aria-label="Previous">
<span aria-hidden="true">&laquo;</span>
</a>
</li>
@fLipE23
fLipE23 / BtnGroup.vue
Created February 3, 2020 12:17
custom vue-input :: btn-group
<template>
<div class="btn-group " role="group">
<button type="button" :class="getClassForOption(option)"
v-for="option in options"
@click="setValue(option)">{{option.title}}</button>
</div>
</template>
<script>
@fLipE23
fLipE23 / Words.vue
Created May 30, 2019 21:30
Компонент для работы с фразами из wordstat ( https://ideaweb.site/tools/seo-words )
<template>
<div class="container minuses-finder">
<div class="row justify-content-center">
<div class="col-md-12">
<div class="card card-default">
<div class="card-header">Минусовка seo-фраз</div>
<div class="card-body">
<div class="row mb-5">
<div class="col-6">
<textarea rows="10"
@fLipE23
fLipE23 / GeneratePricelist.php
Last active May 30, 2019 17:24
команда для генерации прайс-листов
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
/**********
* Формирование файлов - документация: https://phpspreadsheet.readthedocs.io
**********/