Skip to content

Instantly share code, notes, and snippets.

View akilbekov's full-sized avatar
🏠
Focusing

Dauren Akilbekov akilbekov

🏠
Focusing
View GitHub Profile
@akilbekov
akilbekov / migration
Last active June 4, 2020 08:01
RHEL 7.7 to CentOS 7.7
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\*
@akilbekov
akilbekov / inputs.2008.conf
Last active October 19, 2021 20:03
DC splunk
###### OS Logs ######
[WinEventLog://Application]
disabled = 0
start_from = oldest
current_only = 1
checkpointInterval = 5
renderXml=true
index = wineventlog
@akilbekov
akilbekov / input.conf
Created August 29, 2019 12:30
Windows inputs and props conf, general
# 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 July 13, 2016 19:22 — forked from joshdover/README.md
Idiomatic React Testing Patterns

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: