Skip to content

Instantly share code, notes, and snippets.

View sza-1's full-sized avatar

Sergey Zolotorev sza-1

View GitHub Profile
from decimal import Decimal; x, s, n = Decimal(1000), Decimal(5), 10; print([(x * (1 + s / 100) ** n) for n in range(1, n - 1)])
@sza-1
sza-1 / virt-install
Created July 10, 2021 18:52 — forked from smurugap/virt-install
Virt Install to start a VM with macvtap interface
virt-install \
--name=centos-compute-$i \
--ram=32768 \
--vcpus=16 \
--cpu host-model-only \
--os-type linux \
--os-variant centos7.0 \
--import \
--disk path=/var/lib/libvirt/images/centos74-compute-$i.qcow2,bus=virtio,cache=none,format=qcow2,bus=virtio \
--network type=direct,source=enp6s0f0,source_mode=bridge,model=virtio \
@sza-1
sza-1 / 8x1080.md
Created November 3, 2018 19:12 — forked from epixoip/8x1080.md
8x Nvidia GTX 1080 Hashcat Benchmarks
@sza-1
sza-1 / gdbinit
Created March 15, 2017 11:21 — forked from CocoaBeans/gdbinit
.gdbinit - A user-friendly gdb configuration file
# INSTALL INSTRUCTIONS: save as ~/.gdbinit
#
# DESCRIPTION: A user-friendly gdb configuration file.
#
# REVISION : 7.3 (16/04/2010)
#
# CONTRIBUTORS: mammon_, elaine, pusillus, mong, zhang le, l0kit,
# truthix the cyberpunk, fG!, gln
#
# FEEDBACK: https://www.reverse-engineering.net
for i in {1..10}; do
(> /dev/tcp/database/5432) > /dev/null 2>&1 && break || \
printf . && sleep 1
done