Skip to content

Instantly share code, notes, and snippets.

View kekneus373's full-sized avatar

kekneus373

View GitHub Profile
@kekneus373
kekneus373 / drop-truncate.md
Created July 30, 2026 17:22
[Bash] Replacement for truncate

If you want an alternative to the truncate command in Bash for reducing a file’s size or emptying it, there are several safe and portable methods.

  1. Using Shell Redirection
# Empty a file
> filename.txt
  • Creates the file if it doesn’t exist.
  • Sets size to 0 if it exists.
@kekneus373
kekneus373 / w80-w7-wv-clear-networks.md
Last active July 30, 2026 09:31
[Windows][<=8.0] Clear Saved Network Connection Profiles

windows 7 clear network connections

To clear old network connections and profiles in Windows 7, you can use the built-in Network and Sharing Center or the Command Prompt for wireless networks.

Method 1: Remove Wireless Network Profiles

  1. Open Network and Sharing Center (via Control Panel or right-clicking the network icon).
  2. Click Manage wireless networks in the left pane.
  3. Right-click the network you wish to remove and select Remove network.
  4. Confirm the action by clicking OK in the warning dialog.
@kekneus373
kekneus373 / sniff-broadcast.txt
Created July 30, 2026 09:21
[Wireshark] Filter / Display *cast Network Packets
In Wireshark, you can filter broadcast traffic using display filters that match broadcast MAC or IP addresses.
Here are the most common filters:
1. Ethernet Broadcast (Layer 2)
eth.dst == ff:ff:ff:ff:ff:ff
Matches packets sent to the all-hosts broadcast MAC address.
Works for ARP, DHCP, and other L2 broadcast protocols.
2. IPv4 Broadcast (Layer 3)
@kekneus373
kekneus373 / beep-cheatsheet.md
Created July 17, 2026 14:48
Master the beeps on your Linux box

Setup & Most Common Patterns

🧩 1) Check if your board has a PC speaker

Most pre-2015 consumer boards have either:

  • A 2-pin SPEAKER header on the motherboard
  • Or a tiny onboard piezo buzzer (rare but exists)
@kekneus373
kekneus373 / nextcloud-vfs-linux.md
Created July 17, 2026 07:40
[Nextcloud] Enable VFS Option in Linux Client

To enable virtual folder support in Nextcloud on Linux, add the line showExperimentalOptions=true to the [General] section of the nextcloud.cfg file located in ~/.config/Nextcloud/. After that, restart the app or log out and back into your desktop session for the changes to take effect.

Source

@kekneus373
kekneus373 / mount-squashfs-ro.md
Created July 15, 2026 16:21
[OpenWRT] Mount SquashFS partition read-only from an image

Mount a SquashFS image read-only on NixOS

Below are concise, modern steps to mount a SquashFS image read-only on NixOS, plus NixOS-specific configuration tips and common gotchas.


Quick one-shot commands (recommended)

  1. Make sure the kernel has squashfs and loop support: sudo modprobe squashfs loop
@kekneus373
kekneus373 / why-dd-conv-fsync.md
Created July 15, 2026 16:20
[dd] `conv=fsync` flag purpose

This conversation was generated with Duck.ai (https://duck.ai) using OpenAI's GPT-5.4 nano Model. AI chats may display inaccurate or offensive information (see https://duckduckgo.com/duckai/privacy-terms for more info).


User prompt 1 of 1 - 7/14/2026, 10:25:44 PM: do i need conv=fsync flag when writing/saving openwrt combined image to/from cf card using dd?

GPT-5.4 nano: Providing advice on dd commands

@kekneus373
kekneus373 / owrt-kmod-squashfs.md
Created July 10, 2026 12:11
[OpenWRT] Cannot add `kmod-*` packages in squashfs custom-built image
@kekneus373
kekneus373 / desktop-dir-missing.md
Created July 8, 2026 19:30
[Windows] Desktop folder missing from user, but does exist

Desktop Folder Missing From User Profile Windows 10

The Desktop folder is typically located at C:\Users\[YourUsername]\Desktop, but it may appear missing due to being hidden, relocated by OneDrive, or a temporary profile issue. To quickly verify access, open File Explorer and paste %userprofile%\desktop into the address bar.

If the folder is truly missing from your profile, try these solutions:

  • Show Hidden Files: In File Explorer, go to View > Options > View and enable Show hidden files, folders, and drives.
  • Check OneDrive: OneDrive may have moved the folder to C:\Users\[YourUsername]\OneDrive\Desktop. Check this path or disable Desktop backup in OneDrive settings. This is what happened in my case.
  • Fix Name Conflicts: Create a new folder named "Desktop" in C:\Users\[YourUsername]; if a conflict exists, Windows will prompt you to merge or rename the existing folder.
@kekneus373
kekneus373 / winpe-reboot.md
Created July 8, 2026 19:24
[WinPE] Reboot

Reboot From WinPE

To reboot from a Windows PE environment, you can use the command-line tool Wpeutil or the graphical interface.

Command Line Methods:

  • Wpeutil Reboot: The most reliable method is to open the command prompt and run wpeutil reboot. This command is included in the minimal Windows PE footprint, whereas the standard shutdown.exe tool is often missing and will result in a "command not found" error.
  • Graphical Interface: You can also click the Power icon in the bottom-right corner of the screen and select Restart.

Automated/Scripted Reboots: