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).
Can be used for streaming data (webcam or screen capture) from the Windows to WSL
Run from a WSL terminal
ip route list default | awk '{print $3}'
// Package main is intended to provide a working example of how to properly | |
// read from a net.Conn without losing data or integrity. The data is generated | |
// from alphabetical characters rather than simply rand to prevent the | |
// generation of an `EOF` | |
package main | |
import ( | |
"crypto/md5" | |
"fmt" | |
"io" |
" VIM Configuration File | |
" Description: Optimized for C/C++ development, but useful also for other things. | |
" Author: Gerhard Gappmeier | |
" | |
" set UTF-8 encoding | |
set enc=utf-8 | |
set fenc=utf-8 | |
set termencoding=utf-8 | |
" disable vi compatibility (emulation of old bugs) |
I recently switched over to neovim (see my screenshots at the bottom). Below is my updated config file.
It's currently synchronized with my .vimrc
config except for a block of neovim-specific terminal key mappings.
This is still a work in progress (everyone's own config is always a labor of love), but I'm already extremely pleased with how well this is working for me with neovim. While terminal mode isn't enough to make me stop using tmux, it is quite good and I like having it since it simplifies my documentation workflow for yanking terminal output to paste in a markdown buffer.
These days I primarily develop in Go. I'm super thrilled and grateful for fatih/vim-go,
This guide instructs you in how to unbrick an Amazon Kindle Paperwhite. The consequences of following it are your own responsibility. This method (opening the Kindle and using the serial interface) should be a last resort and should only be considered if other methods fail
/*---------------------------------------------------------------------*/ | |
/* --- STC MCU Limited ------------------------------------------------*/ | |
/* --- To be downloaded from the ISP chip (limited STC15 series), for example using the main chip -----------------*/ | |
/* --- Mobile: (86)13922805190 ----------------------------------------*/ | |
/* --- Fax: 86-755-82905966 -------------------------------------------*/ | |
/* --- Tel: 86-755-82948412 -------------------------------------------*/ | |
/* --- Web: www.STCMCU.com --------------------------------------------*/ | |
/* If you want to use this code in the program, in the program, using the information and procedures specified macro crystal technology */ | |
/* If you want to quote this code in the article, please indicate in the article the use of information technology and procedures Wang Jing */ | |
/*---------------------------------------------------------------------*/ |
## Tested the blue pill on 10/09/2018
## 1. install pre-requisites
sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa
sudo apt update
sudo apt install gcc-arm-embedded
# If it reports error message of conflict to gcc-arm-none-eabi, which is likely if upgrading from 4.x to 5+, please uninstall it first with:
# "sudo apt-get remove gcc-arm-none-eabi"
sudo apt -y install lib32z1 lib32ncurses5 lib32bz2-1.0
This is a collection of code snippets for various features on the STM8S family microcontrollers (specifically the STM8S003F3). These are written against the STM8S/A SPL headers and compiled using SDCC.
Some of this controller's functions aren't particularly intuitive to program, so I'm dumping samples for future reference here. These are based on the STM8S documentation: