Skip to content

Instantly share code, notes, and snippets.

View ksbomj's full-sized avatar
🇺🇦
бах бах і бавовна

Andrii Tarykin ksbomj

🇺🇦
бах бах і бавовна
View GitHub Profile
@ksbomj
ksbomj / comments.md
Created May 16, 2023 15:14 — forked from adamveld12/comments.md
Go Code Review Comments

Go Code Review Comments

This page collects common comments made during reviews of Go code, so that a single detailed explanation can be referred to by shorthands. This is a laundry list of common mistakes, not a style guide.

You can view this as a supplement to http://golang.org/doc/effective_go.html.

Please discuss changes before editing this page, even minor ones. Many people have opinions and this is not the place for edit wars.

@ksbomj
ksbomj / tcpdump cheat sheet
Created March 18, 2023 02:58 — forked from githubfoam/tcpdump cheat sheet
tcpdump cheat sheet
----------------------------------------------------------------------------------------------------
tcpdump -s 0 #capture entire etherner header and IP packet
tcpdump -ni tap55ec3c7f-91 ip6 #locate the ICMPv6 packets
tcpdump -s0 -n -i any -w /tmp/$(hostname)-smbtrace.pcap #if the SMB client or SMB server is a Unix host,Troubleshooting Server Message Block (SMB)
tcpdump -D #Print the list of the network interfaces available on the system and on which tcpdump can capture packet
tcpdump -X -vvv -n -i eth0
@ksbomj
ksbomj / uefi_grub_setup_pve.sh
Created August 29, 2022 11:47 — forked from foundObjects/uefi_grub_setup_pve.sh
Proxmox 5.2/5.3 UEFI grub install
#!/bin/bash
BOOTDEV="/dev/sda"
# PVE 5.3
EFIDEV="/dev/sda2"
# PVE 5.2
# EFIDEV="/dev/sda9"
@ksbomj
ksbomj / vmm_howto.md
Created August 31, 2021 16:36 — forked from tvlooy/vmm_howto.md
OpenBSD VMM howto

OpenBSD VMM howto

Setup

/etc/rc.conf.local

apmd_flags="-A"
dhcpd_flags=vether0
vmd_flags=
ntpd_flags="-s"
@ksbomj
ksbomj / gist:c54a9cf464fb4833a6e1a7532b2e3322
Created June 20, 2021 01:36 — forked from jcs/gist:5573685
macOS FileVault encryption and OpenBSD encrypted softraid on a Macbook Air/Pro

Update (2019-05-06): The Broadcom wireless card in the MacBook Pro works and can be crammed into the Air.

Update (2015-12-04): This document used to be very lengthy as there were many manual steps required to get OpenBSD and Mac OS X working together through Boot Camp Assistant (BCA), which created a hybrid MBR and enabled a legacy BIOS emulation mode which older versions of Windows (and OpenBSD) required. Newer Macbooks stopped supporting older versions of Windows through BCA and now only support Windows 10 since it uses GPT and UEFI. However, now that newer versions of OpenBSD support GPT and UEFI, Boot Camp Assistant is no longer needed at all to boot OpenBSD.

macOS FileVault encryption and OpenBSD encrypted softraid on a Macbook Air/Pro

OpenBSD works pretty well on at least the Mid-2011 Macbook Air (A1370, SandyBridge) and Mid-2013 Macbook Air (Haswell). The new KMS code in 5.4 brings up the MBA's eDP display in 1366x768 with backlight

@ksbomj
ksbomj / Results.md
Created July 27, 2018 20:36 — forked from nkt/Results.md
ReactPHP vs Node.js

wrk -t4 -c400 -d10s http://127.0.0.1:1337/

PHP

Running 10s test @ http://127.0.0.1:1337/
  4 threads and 400 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
 Latency 7.02ms 6.94ms 82.86ms 85.27%