Skip to content

Instantly share code, notes, and snippets.

View eslutsky's full-sized avatar

Evgeny Slutsky eslutsky

View GitHub Profile

gnome-terminal --tab --profile=default --geometry=95x35+250+60

@eslutsky
eslutsky / refresh_templates.sh
Last active August 11, 2020 13:05
ocp-on-rhv-templates-refresh
#!/bin/bash
for i in {11..19}; do
cat <<__EOF__ >params.yaml
template_name: rhcos-master-$i
template_disk_size: 16GiB
template_memory: 16GiB
template_cpu: 8
nic_profile_name: ovn-vmnet-$i
@eslutsky
eslutsky / etcd_fio_perf.sh
Last active September 29, 2020 14:13 — forked from tuxfight3r/openshift_cli_tricks.MD
openshift cli tricks - using go templates
#!/bin/bash
#following this guide https://access.redhat.com/solutions/4885641
#recommended threshond 10msec - should be below that value
fio_sync_thresh=10000000
while [ 1 ] ; do
cd /var/lib
tempd=$(mktemp -d -p `pwd`)
pushd $tempd
@eslutsky
eslutsky / sampleREADME.md
Last active August 3, 2020 08:19 — forked from FrancesCoronel/sampleREADME.md
A sample README for all your GitHub projects.

FVCproductionsAA

INSERT GRAPHIC HERE (include hyperlink in image)

Repository Title Goes Here

Subtitle or Short Description Goes Here

#!/bin/bash
parentNIC=eth0
newNIC=macvlan0
macAddress=00:1a:4a:23:17:2d
# add new macvlan interface
ip link add dev $newNIC link $parentNIC type macvlan
# change mac address for the NIC
ip link set dev $newNIC address $macAddress
  • on the engine sockets
[root@hosted-engine-07 fd]# ss -ntp | grep 54321
ESTAB      0      0        [::ffff:10.46.16.255]:57846                 [::ffff:10.46.16.44]:54321               users:(("java",pid=2836,fd=592))�
CLOSE-WAIT 1      0        [::ffff:10.46.16.255]:50840                 [::ffff:10.46.16.45]:54321               users:(("java",pid=2836,fd=593))�
STAB      0      0        [::ffff:10.46.16.255]:35584                 [::ffff:10.46.16.46]:54321               users:(("java",pid=2836,fd=611))�
STAB      0      0        [::ffff:10.46.16.255]:57882                 [::ffff:10.46.16.44]:54321           
  • check the FD timestamp