Skip to content

Instantly share code, notes, and snippets.

View wooyey's full-sized avatar

Łukasz Kwiek wooyey

  • Poland
View GitHub Profile
@wooyey
wooyey / vbox_fixes.md
Created November 14, 2020 16:02
VBoxClient: Failed to register resizing support, rc=VERR_INVALID_FUNCTION

Problem with screen resize:

When getting error in dmesg:

VBoxClient: Failed to register resizing support, rc=VERR_INVALID_FUNCTION

Reinstall guest addition properly:

# apt-get install build-essential module-assistant gcc make perl dkms
@wooyey
wooyey / OhMyZSH.md
Created November 15, 2020 10:55
OH My ZSH Setup

Installation

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Plugins

git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
@wooyey
wooyey / gist:a56e5c77d411dd4f7db2c4f686cec2ec
Created March 14, 2021 17:59
List installed Debian packages
dpkg-query -f '${binary:Package}\n' -W > packages_list.txt
@wooyey
wooyey / onepanel.md
Last active March 22, 2022 08:30
One Panel

OnePanel and Kuberenets

Minikube

memory cgroup issue (not needed?)

GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1"
sudo update-grub
@wooyey
wooyey / linux_kernel.md
Last active November 22, 2021 09:23
Linux kernel howtos

Howtos for Linux kernel

Make deb package, compile

Needed packages for PopOS (Ubuntu?):

sudo apt-get install build-essential bc kmod cpio flex libncurses5-dev libelf-dev libssl-dev bison dwarves zstd
@wooyey
wooyey / tcpdump.md
Last active November 30, 2021 12:44
Tcpdump magic

PCAP gathering

To get pcap files for IP <ip> in <seconds> chunks with limit of maximum <files_number> files to not eat all disk space:

sudo tcpdump -W <files_number> -Z root -n -s0 -G <seconds> -i <interface> -w <some_name>.%Y-%m-%d.%H:%M:%S.pcap host <ip>
@wooyey
wooyey / partition_resize.md
Last active April 15, 2022 19:44
Linux partition resize
qemu-img resize image.qcow2 +20G

New to delete and create both: extended and lvm partition where new LVM starts on same sector as old one:

fdisk /dev/sda
@wooyey
wooyey / ai_knowledge_base.md
Last active September 6, 2022 15:07
AI knowledge
@wooyey
wooyey / 3d_setup.adoc
Created December 11, 2022 17:01
3D Printer

eTPU

  • bild plate temp: 40

  • adhesion type: skirt

  • retraction speed: 25

  • retraction distance: 1

  • Infill density: 20

  • Infill pattern: concentric

  • Fan speed: 60%

  • Wall thickness: 2

@wooyey
wooyey / librealsesne.md
Last active December 14, 2022 14:05
Lib RealSense Compilation

CUDA compilation

Ubuntu 18.04

apt-get update \
apt-get install git libssl-dev libusb-1.0-0-dev libudev-dev pkg-config libgtk-3-dev \
  libglfw3-dev libgl1-mesa-dev libglu1-mesa-dev \
  wget nvidia-cuda-dev nvidia-cuda-toolkit
wget https://github.com/Kitware/CMake/releases/download/v3.25.1/cmake-3.25.1-linux-x86_64.tar.gz
tar zxvf cmake-3.25.1-linux-x86_64.tar.gz