Skip to content

Instantly share code, notes, and snippets.

View rm77's full-sized avatar
💭
(to be) or not (to be) = (to be)

Roy rm77

💭
(to be) or not (to be) = (to be)
  • surabaya, indonesia
View GitHub Profile
@extremecoders-re
extremecoders-re / qemu-networking.md
Last active September 3, 2025 00:10
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

@asvignesh
asvignesh / Build_seed_iso
Created January 6, 2018 07:42
Samples to create a cloud-init configuration ISO.
$ genisoimage -output seed.iso -volid cidata -joliet -rock user-data meta-data
@labseven
labseven / readme.md
Last active December 11, 2024 06:53
Linux USRP install instructions

Installation:

`

sudo add-apt-repository ppa:ettusresearch/uhd

sudo apt-get update

sudo apt-get install libuhd-dev libuhd003 uhd-host gnuradio

@fabiand
fabiand / qemu-pod.yaml
Last active September 18, 2024 22:38
Connecting qemu to the pod's network
apiVersioin: v1
kind: Pod
metadata:
name: qemu
spec:
securityContext:
runAsUser: 0
volumes:
- name: host-dev
hostPath:
@dghubble
dghubble / kubeception.md
Last active April 24, 2025 02:03
Running QEMU/KVM and Nested Kubernetes on Bare-Metal Kubernetes
@kekru
kekru / Remote API via daemon.json.md
Last active May 19, 2025 06:11
Enable Docker Remote API via daemon.json
@UdaykiranGudepu
UdaykiranGudepu / app.py
Last active July 17, 2024 09:04
Flask REST ful service basics with basic authentication - ( Python 3, IDE - pycharm, HTTPBasicAuth )
#! usr!bin
from flask import Flask, jsonify, abort, make_response, url_for
from flask import request
from socket import *
from flask_httpauth import HTTPBasicAuth
sock = socket(AF_INET, SOCK_STREAM)
sock.setsockopt(SOL_SOCKET, SO_REUSEADDR,1)
sock.bind(('0.0.0.0',0))
@jiuzhuaxiong
jiuzhuaxiong / wpa_cli
Created July 11, 2016 03:15 — forked from buhman/00 wpa_cli passphrase network
wpa_cli example; it might be worth mention that you can tab-complete all wpa_supplicant commands
[zack@leto ~]$ sudo tee << EOF /etc/wpa_supplicant.conf > /dev/null
ctrl_interface=/run/wpa_supplicant
EOF
[zack@leto ~]$ sudo wpa_supplicant -iwlp1s0 -Dnl80211 -c/etc/wpa_supplicant.conf -B
Successfully initialized wpa_supplicant
[zack@leto ~]$ sudo wpa_cli
wpa_cli v2.0
Copyright (c) 2004-2012, Jouni Malinen <[email protected]> and contributors
This software may be distributed under the terms of the BSD license.
@subfuzion
subfuzion / curl.md
Last active October 11, 2025 00:58
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

sudo modprobe 8021q
lsmod | grep 8021q
ip link add link eth1 name eth1.10 type vlan id 10
https://dougvitale.wordpress.com/2011/12/21/deprecated-linux-networking-commands-and-their-replacements/