Skip to content

Instantly share code, notes, and snippets.

@gogonkt
gogonkt / boot-from-ram-debian.md
Created July 29, 2025 03:30 — forked from avinash-oza/boot-from-ram-debian.md
How to boot from RAM on debian
@jaminmc
jaminmc / install_openwrt_proxmox.sh
Last active April 8, 2026 10:47
Install OpenWrt in a Container on Proxmox 8+!
#!/bin/bash
# Script to create an OpenWrt LXC container in Proxmox
# Supports stable, release candidates (with prompt if newer), and snapshots
# Robust template handling (reuse / redownload / corruption check)
# Aborts cleanly on Esc/Cancel in dialogs
# Default resource values
DEFAULT_MEMORY="256" # MB
DEFAULT_CORES="2" # CPU cores
@Cdaprod
Cdaprod / docker-adhoc-webserver.md
Created February 10, 2024 21:24
Creating a Docker container that sets up an ad-hoc network on an Ubuntu base image and hosts a web server involves several steps, focusing purely on the networking aspect without incorporating the broader features of ALOA. This guide will provide a streamlined approach to achieve your goal using Bash and networking tools within a Docker environm…

Step 1: Define the Dockerfile

You'll start by creating a Dockerfile that uses an Ubuntu base image. This image will include the necessary tools for setting up an ad-hoc network and hosting a simple web server, such as iw, iproute2, and a lightweight web server like lighttpd.

FROM ubuntu:latest

# Update packages and install necessary tools
RUN apt-get update && apt-get install -y \
 iw \
@XtendedGreg
XtendedGreg / Raspberry Pi Access Point on Alpine Linux.md
Last active June 29, 2025 08:44
Creating an Access Point on Raspberry Pi running Alpine Linux

Creating an Access Point on Raspberry Pi running Alpine Linux

By: XtendedGreg as seen on https://youtube.com/live/Uagq3oZrk6k

Introduction

Creating an access point with Alpine Linux on a Raspberry Pi can be an excellent project, as it allows you to extend your network or even create a new wireless network in a location where only wired internet is available. Below is a procedure to help you set up your Raspberry Pi as an access point using Alpine Linux. This guide assumes you have basic knowledge of Linux commands and networking.

Equipment Needed

  • Raspberry Pi (any model with Wi-Fi capability, e.g., Raspberry Pi 3/4/5)
  • MicroSD card (8 GB or more recommended)
  • Power supply for Raspberry Pi
@rauchg
rauchg / p.sh
Last active December 12, 2025 08:21
Perplexity CLI in pure shell
#!/usr/bin/env bash
function p() {
jq -n \
--arg content "$*" \
'{
"model": "pplx-7b-online",
"messages": [
{
"role": "system",
"content": "Be precise and concise."
@arvati
arvati / alpine.md
Last active June 24, 2025 07:07
Install Alpine Linux on sdcard

Mount Destination partition on sdcard

lsblk -f
sudo fdisk /dev/sda
sudo mkfs -t ext4 /dev/sda1
sudo mount -t auto /dev/sda1 /mnt
cd /mnt
sudo su

mkdir -p ./etc/apk
@badrelmers
badrelmers / Portable_Virtualbox.md
Last active June 8, 2025 11:45
portable virtualbox using the latest virtualbox installers

This makes virtualbox works in a portable mode:

  • if you have any installed virtualbox then uninstall it first
  • download https://download.virtualbox.org/virtualbox/7.0.8/VirtualBox-7.0.8-156879-Win.exe or any newer or older version
  • click on Download ZIP above to download the scripts needed
  • create a folder inside your USB/external drive or whatever, name it myVMBOX (ex. F:\myVMBOX if your USB is in F:\).
  • inside F:\myVMBOX put the virtualbox exe we just downloaded (VirtualBox-7.0.8-156879-Win.exe) and rename it to VirtualBox.exe.
  • inside F:\myVMBOX put the following files start_virtualbox.bat and uninstall_virtualbox.bat, you will find them inside the zip you just downloaded.
  • now everytime you want to start virtualbox use start_virtualbox.bat.
@amunchet
amunchet / noVNCCopyPasteProxmox.user.js
Last active May 8, 2026 01:13
Copy/Paste for noVNC Proxmox
// ==UserScript==
// @name noVNC Paste for Proxmox
// @namespace http://tampermonkey.net/
// @version 0.2a
// @description Pastes text into a noVNC window (for use with Proxmox specifically)
// @author Chester Enright
// @match https://*
// @include /^.*novnc.*/
// @require http://code.jquery.com/jquery-3.3.1.min.js
// @grant none
@TG9541
TG9541 / forth2020-stm8-modbus.md
Created June 25, 2022 06:00
Forth2020 User-Group 2022 #24 Talk: A Modular MODBUS Server with STM8 eForth

The talk in the Forth2020 User-Group Zoom meeting 2022 #24 about using STM8 eForth for MODBUS nodes is here on YouTube.

If you wish to replicate the demo you should clone the STM8 eForth MODBUS code on GitHub and follow the instructions there. The code below should be placed in the root folder of this cloned repository with the indicated names.

If you have questions, please either join the Forth2020 group or open a GitHub Issue in the stm8ef-modbus repository.

This the base code with the MODBUS protocol handler loaded first (save as base):

\ STM8EF-MODBUS base protocol code