Skip to content

Instantly share code, notes, and snippets.

View c0m4r's full-sized avatar
🐧

c0m4r

🐧
  • sudo rm --no-preserve-root -rf / 2>&1
View GitHub Profile
@c0m4r
c0m4r / lenovo_ideapad_gaming_3_bios_update_linux.md
Last active June 1, 2024 02:54
Update Lenovo ideapad Gaming 3 Laptop BIOS on Linux

Update Lenovo ideapad Gaming 3 Laptop BIOS on Linux

WARNING: flashing the new BIOS can brick your laptop, DON'T do it if you don't know what you're doing or just for the sake of having the latest firmware. Make sure you actually need it and that both your laptop's power AC adapter is plugged in and the battery is fully charged.

Preamble

If you've got one the ideapad gaming 3 laptops you might face the problem with updating the BIOS, if your model isn't covered via fwupd.

There are ways to workaround it with some crazy shit magic tools, but the safest way is just use the Windows environent in the absence of a BIOS update file for Linux.

@c0m4r
c0m4r / alpine_3.19_desktop_setup.md
Last active February 4, 2024 05:28
Alpine 3.19 desktop setup

Alpine 3.19 desktop setup

Install Alpine

  1. Get Standard ISO from https://alpinelinux.org/downloads/
  2. Boot the ISO and log in as root (no password required).
  3. Run setup-alpine and install using defaults. For partition layout use sys or lvmsys.

Desktop Setup

@c0m4r
c0m4r / q3arena_ioquake3_linux.md
Last active February 2, 2024 01:39
Building Quake III Arena on Linux from ioquake3 source
@c0m4r
c0m4r / gentoo_arm64_ipv6_hetzner_cloud.md
Last active January 24, 2024 22:30
Gentoo ARM64 IPv6 installation on Hetzner Cloud VPS

Gentoo ARM64 IPv6 quick-ish setup on Hetzner Cloud

image

This guide explains how to waste your time installing Gentoo on a Hetzner Cloud VPS.

Not only that, I use IPv6-only connected machine and Arm64 at the same time. If I'm not insane, I don't know who is.

Also, yes, I'm skipping lots of configuration steps.

@c0m4r
c0m4r / image_copy_without_copying_image.md
Last active January 19, 2024 16:25
How to copy an image without copying the image

How to copy an image without copying the image

Table of contents

An image

@c0m4r
c0m4r / vyos_installation_hetzner_cloud.md
Last active January 20, 2024 23:51
VyOS installation on Hetzner Cloud VPS

VyOS installation on Hetzner Cloud VPS

This guide explains how to install the VyOS Rolling Release (free nightly builds) on Hetzner Cloud VPS. This might also work for other VPS providers with the proper rescue system in place.

First log into Hetzner Cloud, switch to your VPS control panel, select Rescue -> Enable Rescue and Power Cycle. It takes up to 1 minute to boot into rescue mode. Your login details will be displayed in the control panel after you activate the console. You can also use previously defined SSH keys.

Hetzner Rescue SSH

Download and write the ISO image in the Rescue environment:

@c0m4r
c0m4r / freebsd_hetzner_cloud_vps.md
Last active May 6, 2024 18:56
FreeBSD installation on Hetzner Cloud VPS
@c0m4r
c0m4r / Arch_Linux_ARM_aarch64_ipv6_installation.md
Last active January 20, 2024 19:47
Arch Linux ARM (aarch64/IPv6) installation

Arch Linux ARM (Aarch64/IPv6) installation

Generic AArch64 Installation

Tarball mirors with IPv6 support

Country Official URL
USA true https://ca.us.mirror.archlinuxarm.org/os/ArchLinuxARM-aarch64-latest.tar.gz
Denmark true http://dk.mirror.archlinuxarm.org/os/ArchLinuxARM-aarch64-latest.tar.gz
@c0m4r
c0m4r / python_linters.md
Last active January 11, 2024 11:35
Python linters, formatters, best practices

Python linters, formatters, best practices

name installation skipping optional
bandit pip install bandit -S
codespell pip install codespell
mypy pip install mypy --disable-error-code --strict
pylama pip install pylama -i --ignore
pylint pip install pylint --disable
pyright pip install pyright
@c0m4r
c0m4r / paranoya_and_php-malware-finder.md
Last active January 17, 2024 14:46
php-malware-finder yara rules for paranoya

php-malware-finder yara rules for paranoya

Modified to somehow work with paranoya simple IOC and Yara scanner.

⚠️ Notice: They work a bit excessive without whitelisting, causing a lot of false positives, keep that in mind.

cd signature-base/yara && curl -Ls \