Skip to content

Instantly share code, notes, and snippets.

View bradfa's full-sized avatar
⚔️

Andrew Bradford bradfa

⚔️
View GitHub Profile
@bradfa
bradfa / mips64el-debian-qemu-exact-steps.md
Last active June 14, 2023 11:14
mips64el Debian QEMU install

Installing Debian Stretch mips64el Using QEMU

We're going to emulate the mips64el "malta" machine and install Debian Stretch using QEMU on a amd64 Debian Buster host.

Likely you need your user to be in the "libvirt" group and have installed these packages (or a subset of such):

sudo apt install qemu-system-mips virt-manager libguestfs-tools
@bradfa
bradfa / .restic.excludes
Last active December 22, 2021 18:21
Restic Notes
# Exclude poky default build dir
git/poky/build
# Exclude our sstate, downloads, and build output dirs
mr-oe-*/sstate-cache
mr-oe-*/downloads
mr-oe-*/*-oe-build/tmp-*
git/poky-wrap/titan
git/poky-wrap/downloads
git/poky-wrap/sstate-cache
# Exclude virt-manager and downloads dirs
@bradfa
bradfa / virt-manager.notes.md
Last active September 19, 2022 23:36
virt-manager notes

"Hardware" Notes

  • Need OVMF UEFI firmware for 64 bit machines installed. Be sure guest is using UEFI firmware! You can't change this after you create a machine in virt-manager!
  • Be sure using i440FX chipset.
  • Enable a qemu-ga channel for guest. Make a VirtIO serial controller.
  • Make sure your hard disk is using VirtIO, not IDE.
  • Be sure you have the VirtIO floppy image for Windows 7 install, you'll need to load drivers so installer can see the VirtIO disk.
  • Bridging to main Ethernet interface works fine, depsite the warnings. Use the VirtIO ethernet type.
  • The VirtIO 0.1.141 drivers work well for me in Win 7 Pro 64 bit.
  • To avoid the NVIDIA "Code 43" error, see the Arch Linux wiki about modifying the hypervisor name. Or somehow find older NVIDIA drivers prior to version 337 that work with your card.
  • Remove the "sound" device, sound pass through sucks. Just pass through a USB sound card/device but this isn't needed at install time.
@bradfa
bradfa / vimium.conf
Created May 31, 2018 16:54
Vimium configuration
keymappings:
# Insert your preferred key mappings here.
map d removeTab
custom search engines:
amazon: https://www.amazon.com/s/?field-keywords=%s Amazon
debian: https://packages.debian.org/search?keywords=%s Debian
google: https://www.google.com/search?q=%s Google
wikipedia: https://www.wikipedia.org/w/index.php?title=Special:Search&search=%s Wikipedia
@bradfa
bradfa / curl-for-win_improvements.md
Last active April 26, 2024 12:02
curl-for-win improvements needed

The list of debian/ubuntu prereq packages is incomplete, you at least need to add:

  • python3-pip
  • curl
  • time
  • cmake
  • g++-mingw-w64

You also need both i386 and amd64 arches setup in dpkg so the proper packages for both arches are pulled in by apt, such as for wine and mingw.

@bradfa
bradfa / TI's toolchain build script
Last active September 27, 2018 19:25
Attempt at modernizing Debian's MSP430 toolchain
This is from TI's MSP430 "GCC Sources" source distribution:
# This directory contains the sources for gcc, newlib, binutils, and gdb used
# to build the "msp430-gcc" binary toolchain packages distributed by TI.
#
# The following example script demonstrates how these sources can be used to
# build a toolchain from these sources. It has been developed on a CentOS 7
# machine, and may need to be adapted for use on other platforms, such as
# Microsoft Windows.
#
@bradfa
bradfa / 2017-goals-reflection.md
Created December 14, 2017 23:32
2017 goals reflection

I have previously set goals for myself for 2017. I've not done very well in achieving all of them, but here's a run-down anyways:

Goal 1 was to begin the process of becoming a Debian Developer. I've failed completely at this, I don't believe that I've contributed at all in any way to Debian in 2017.

Goal 2 was to contribute to a website to track my smaller accomplishments. I've actually done a pretty good job of this as I have fairly regularly updated my accomplishments site.

Goal 3 was to continue to run my NTP server(s). Except for a few month stint, I've been running at least 1 NTP server in India in the NTP global pool. My server stats for those who care.

@bradfa
bradfa / Exact Steps: Modern MSP430 GCC Build.md
Last active February 24, 2024 00:44 — forked from 0/msp430-elf.md
Building a GCC cross-compiler for the MSP430.
@bradfa
bradfa / android-studio setup.md
Last active November 10, 2017 18:21
Android Studio in a chroot Setup

Android Studio in a chroot Setup on Debian

Install schroot, debootstrap, and the ubuntu-archive-keyring (needed for debootstrap to validate downloaded Ubuntu files):

sudo apt install schroot debootstrap ubuntu-archive-keyring

Create a clean Ubuntu 14.04 amd64 chroot using debootstrap:

@bradfa
bradfa / mythtv-todo.md
Last active September 2, 2017 18:39
MythTV To Do List
  • Make github repo for scripts and push it
  • Make transcode to h264 single threaded or better yet allow command line param to set threads used
  • Transcode script to be able to output different (SD) resolution as needed
  • Transcode script to be able to retranscode something which it already ran on, ie same infile and outfile names.
  • Enable 2 jobs simultaneous on backend
  • Clean up channel list
  • Connect mythweb with frontend
  • Setup samba share readonly
  • Create another userjob to transcode and downsize to SD quality (for kids shows, and if we can get same infile/outfile working, can retranscode a bunch)
  • Make sure DVD playback works smoothly and with all types of DVDs (saw choppy-ness on Frozen and Baby Signing Time wouldn't play)