Skip to content

Instantly share code, notes, and snippets.

View CodeAsm's full-sized avatar
🌏
Doing my coding thingies

CodeAsm CodeAsm

🌏
Doing my coding thingies
View GitHub Profile
@extremecoders-re
extremecoders-re / qemu-networking.md
Last active April 8, 2026 08:28
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

@chrisdone
chrisdone / init
Created January 1, 2018 23:57
init file for qemu + linux + net
#!/bin/sh
mount -t devtmpfs devtmpfs /dev
mount -t proc none /proc
mount -t sysfs none /sys
mkdir -p /var/run/
mkdir -p /etc/network/if-down.d
mkdir -p /etc/network/if-post-down.d
mkdir -p /etc/network/if-post-up.d
@bhuvankrishna
bhuvankrishna / EasyCAP-SMI-2021CBE-debian9.md
Last active September 27, 2024 08:03
Configure EasyCAP SMI-2021CBE TV tuner card with debian 10

Configure EasyCAP SMI-2021CBE TV tuner card with debian 10

Identifying the device

check the device ID with this command lsusband the output should look like this.

Bus 001 Device 008: ID 1c88:0007 Somagic, Inc. SMI Grabber (EasyCAP DC60+ clone) (no firmware) [SMI-2021CBE]

Prepare for installing the driver

If you get this same output with lsusb then follow on with these link's

  1. Somagic HOwTO linux
  2. Download the latest tar's and not the deb's
anonymous
anonymous / bootlog.txt
Created March 18, 2017 02:11
ubee DDW3611 bootlog
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2017.03.17 21:30:14 =~=~=~=~=~=~=~=~=~=~=~=
BCM338031 TP0
1
Sync:1
346890
MemSize: 64 M
BootLoader Version: 10.1.2 Release Gnu spiboot reduced DDR drive
Build Date: Dec 23 2009
@tayfie
tayfie / 4chan-wget-scraping.md
Created March 14, 2017 04:36
how to scrape images from 4chan using wget

How To Scrape Images from 4chan Using Wget

This guide is to save other sorry plebs from needing to RTFM in figuring out how to use wget to scrape images from 4chan and other imageboards. There are lots of image downloaders in existence, but they are usually outdated and broken. You will save time following this guide to learn how to use a powerful and general purpose tool instead.

What Is Wget?

Wget is a command-line file downloader that can handle just about any file downloading task normal and power users will ever need to do. It has versions available for Windows, Mac, and Linux. If it is not already installed on your machine, install it now.

Basic syntax

@plainspooky
plainspooky / MEMDUMP.BAS
Created January 20, 2016 14:36
Just trying my skills in MSX-BASIC :-)
10 SA!=&H7DAD:EA!=&H7FFF:COLOR 15,4,4:KEY OFF:SCREEN 0:IF PEEK(&H2D)=0 THEN W%=40:GOTO 20 ELSE PRINT "Display in [4]0 or [8]0 columns?"
15 K$=INPUT$(1):IF K$="4" THEN W%=40 ELSE IF K$="8" THEN W%=80 ELSE 15
20 WIDTH W%:CLS:C%=0:I%=0:J%=0:K%=0
25 IF W%=80 THEN MX%=16:CH%=7:CA%=58:CC%=78 ELSE MX%=8:CH%=5:CA%=29:CC%=38
30 DEF FN H$(I%)=RIGHT$("0"+HEX$(I%),2):DEF FN W$(I!)=RIGHT$("000"+HEX$(I!),4)
40 FOR I!=SA! TO EA!:J%=PEEK(I!):C%=C% XOR J%:IF K%=0 THEN LOCATE 0:PRINT FN W$(I!);
45 LOCATE 3*K%+CH%:PRINT FN H$(J%);" ";
50 LOCATE K%+CA%:IF J%<32 THEN PRINT "."; ELSE PRINT CHR$(J%);
55 K%=K%+1:IF K%=MX% THEN LOCATE CC%:PRINT FN H$(C%);:K%=0
60 IF CSRLIN>22 THEN PRINT "Scroll?";:K$=INPUT$(1):CLS
@emarsk
emarsk / xorg_depgraph.dot
Last active March 8, 2021 11:28
Xorg graphviz dependency graph, as in BLFS book. To generate the image: "dot -Tpng xorg_depgraph.dot >xorg_depgraph.png".
// Xorg dependency graph (dot)
// BLFS 7.8
//
// style=solid : required
// style=dashed : recommended
// style=dotted : optional
// style=solid arrowhead=dot color=grey : required at runtime
strict digraph xorg {
label="Xorg dependencies
@TutorialDoctor
TutorialDoctor / fuzzypy.py
Created September 1, 2015 19:34
A Fuzzy Logic Experiment with Python
# Fuzzy Logic experiment (WIP)
# By the Tutorial Doctor
# Objects are not always in one of two states (true or false), but rather in several states at one time.
#(val-min)/(max-min)
#---------------------------------------------------------------------------
#VARIABLES
#------------------------------------------------------------------------------
cold =(1,213)
@fboris
fboris / stm_native_bootloader.md
Last active April 27, 2026 11:31
dfu-util command for uploading firmware on ST devices
  1. Let device to enter dfu-mode. And use dfu-util to get available devices

sudo dfu-util -l

It will show like...

Found DFU: [0483:df11] ver=2100, devnum=32, cfg=1, intf=0, alt=3, name="@Device Feature/0xFFFF0000/01*004 g", serial="3262355B3231"
Found DFU: [0483:df11] ver=2100, devnum=32, cfg=1, intf=0, alt=2, name="@OTP Memory /0x1FFF7800/01*512 g,01*016 g", serial="3262355B3231"
Found DFU: [0483:df11] ver=2100, devnum=32, cfg=1, intf=0, alt=1, name="@Option Bytes  /0x1FFFC000/01*016 g", serial="3262355B3231"
@preshing
preshing / build_cross_gcc
Last active March 17, 2026 11:33
A shell script to download packages for, configure, build and install a GCC cross-compiler.
#! /bin/bash
set -e
trap 'previous_command=$this_command; this_command=$BASH_COMMAND' DEBUG
trap 'echo FAILED COMMAND: $previous_command' EXIT
#-------------------------------------------------------------------------------------------
# This script will download packages for, configure, build and install a GCC cross-compiler.
# Customize the variables (INSTALL_PATH, TARGET, etc.) to your liking before running.
# If you get an error and need to resume the script from some point in the middle,
# just delete/comment the preceding lines before running it again.