Skip to content

Instantly share code, notes, and snippets.

View extremecoders-re's full-sized avatar
🐶
🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶🐶

extremecoders-re

🐶
🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶 🐶🐶
View GitHub Profile
@extremecoders-re
extremecoders-re / README.md
Last active April 13, 2024 18:43
Using VSCode with a conda go environment
$ conda create -n goenv go
$ conda activate goenv
(goenv) $ conda install -c conda-forge gxx_linux-64  # Required for the vscode go extension

Note the current goroot path

(goenv) $ go env GOROOT
@extremecoders-re
extremecoders-re / vmware-no-vmem.md
Last active April 6, 2024 08:09
Boost VMWare Performance by disabling vmem files.

Prevent creation of vmmem files in VMware (Windows)

Issue

VMWare creates .vmem files to back the guest RAM. On the host this causes disk thrashing especially during powering on and off the guest.

Solution

Add the following lines to the .vmx file to prevent creation of .vmem files. This will reduce disk IO and VM performance will improve especially on non-SSD disks.

@extremecoders-re
extremecoders-re / qemu-networking.md
Last active March 31, 2024 17:19
Setting up Qemu with a tap interface

Setting up Qemu with a tap interface

There are two parts to networking within QEMU:

  • The virtual network device that is provided to the guest (e.g. a PCI network card).
  • The network backend that interacts with the emulated NIC (e.g. puts packets onto the host's network).

Example: User mode network

@extremecoders-re
extremecoders-re / openwrt-qemu.md
Last active March 22, 2024 13:20
Running OpenWRT ARM under QEMU

Environment

The steps shown below are done on a Ubuntu VM using Qemu 3.0

$ qemu-system-arm -version
QEMU emulator version 3.0.0
Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers

To quit Qemu at any time press Ctrl+a x, i.e. Ctrl+a and then x

@extremecoders-re
extremecoders-re / wifi-calling-android.md
Created December 23, 2019 07:45
Turn on WiFi calling using ADB

Some Android Phones support WiFi calling but there's no option in the UI to turn on this feature. For such phones, you can use one of following techniques

Show WiFI Calling Dialog using ADB

In Setting App

$ am start -a android.intent.action.MAIN -n com.android.settings/.Settings\$WifiCallingSettingsActivity
@extremecoders-re
extremecoders-re / Missing-virtio-drivers-fix.md
Last active January 2, 2024 15:07
Windows VPS on SolusVM not booting due to VirtIO drivers not being loaded at boot time

This writeup describes the process to fix Windows not booting on a VirtIO disk. The VPS only boots when changing the "Disk Driver" to IDE on SolusVM. When the disk device is VirtIO windows fails to boot with an INACCESSIBLE_BOOT_DEVICE error.

The issue was likely caused due to installation of OSFMount software previously.

Creating a full disk image

Before starting, a full disk image of the VPS may be taken for safety. Enable rescue mode in SolusVM. It will then display the SSH connection credentials. Connect to the server using the same credentials from another server which has sufficient disk space to store the full disk image. Run lsblk to list the disk drives attached to the system. To inspect the disk manually, run mount in readonly mode as shown.

# mount -o ro /dev/vda1 /mnt
@extremecoders-re
extremecoders-re / esp32-development.md
Last active July 28, 2023 11:27
PlatformIO VSCode Setup (Linux) & ESP32 self notes

IDEs/Tools for ESP32 development

PlatformIO based tools can work both with Arduino as well as Espressif libraries.

@extremecoders-re
extremecoders-re / avr.cfg
Created October 23, 2017 10:51
IDA config file for ATmega328
.ATmega328
; Ida avr.cfg (c) THANATOS
SUBARCH=5
RAM=2048
ROM=32768
EEPROM=1024
; MEMORY MAP