Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Focusing

Dauren Akilbekov akilbekov

🏠
Focusing
View GitHub Profile
@akilbekov
akilbekov / migration
Last active Jun 4, 2020
RHEL 7.7 to CentOS 7.7
View migration
URLBASE=http://vault.centos.org/7.7.1908/os/x86_64/Packages/
cd /tmp
mkdir TMP
cd TMP
wget $URLBASE/centos-indexhtml-7-9.el7.centos.noarch.rpm \
$URLBASE/centos-release-7-7.1908.0.el7.centos.x86_64.rpm \
$URLBASE/yum-3.4.3-163.el7.centos.noarch.rpm \
$URLBASE/yum-plugin-fastestmirror-1.1.31-52.el7.noarch.rpm
subscription-manager remove --all
yum remove rhnlib abrt-plugin-bugzilla redhat-release-notes\* subscription-manager\*
View inputs.2008.conf
###### OS Logs ######
[WinEventLog://Application]
disabled = 0
start_from = oldest
current_only = 1
checkpointInterval = 5
renderXml=true
index = wineventlog
@akilbekov
akilbekov / input.conf
Created Aug 29, 2019
Windows inputs and props conf, general
View input.conf
# Copyright (C) 2019 Splunk Inc. All Rights Reserved.
###### OS Logs ######
[WinEventLog://Application]
disabled = 0
start_from = oldest
current_only = 1
checkpointInterval = 5
renderXml=true
index = wineventlog
@akilbekov
akilbekov / README.md
Created Jul 13, 2016 — forked from joshdover/README.md
Idiomatic React Testing Patterns
View README.md

Idiomatic React Testing Patterns

Testing React components seems simple at first. Then you need to test something that isn't a pure interaction and things seem to break down. These 4 patterns should help you write readable, flexible tests for the type of component you are testing.

Setup

I recommend doing all setup in the most functional way possible. If you can avoid it, don't set variables in a beforeEach. This will help ensure tests are isolated and make things a bit easier to reason about. I use a pattern that gives great defaults for each test example but allows every example to override props when needed:

You can’t perform that action at this time.