Skip to content

Instantly share code, notes, and snippets.

View fishd72's full-sized avatar
🏠
Working from home

Dave Fisher fishd72

🏠
Working from home
View GitHub Profile
@fishd72
fishd72 / customise.ps1
Created December 12, 2023 15:48
Performs UI customisation on Windows 10 to improve VM performance
$color = 0x0063B1
$CSharpScript = @"
using System;
using System.Runtime.InteropServices;
using Microsoft.Win32;
public class SolidWallpaper
{
public const int SetDesktopWallpaper = 20;
@fishd72
fishd72 / preseed.cfg
Created October 9, 2023 10:30
Debian preseed
d-i debian-installer/locale string en_GB.UTF-8
d-i keyboard-configuration/xkb-keymap select gb
d-i hw-detect/load_firmware boolean false
d-i ethdetect/prompt_missing_firmware boolean false
d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string unassigned-hostname
d-i netcfg/get_domain string unassigned-domain
d-i netcfg/wireless_wep string
d-i mirror/country string manual
d-i mirror/http/hostname string deb.debian.org
@fishd72
fishd72 / repack.sh
Created October 9, 2023 10:28
Debian auto-installer
#!/bin/sh
orig_iso="$HOME/Downloads/debian-12.1.0-amd64-netinst.iso"
new_files="$HOME/Desktop/ISOFILES"
new_iso="$HOME/Desktop/debian-12.1.0-amd64-modified.iso"
mbr_template=isohdpfx.bin
mkdir -p $new_files
xorriso -osirrox on -indev $orig_iso -extract / $new_files
@fishd72
fishd72 / .git-commit-template.txt
Created July 17, 2023 10:33 — forked from adeekshith/.git-commit-template.txt
This commit message template helps you write great commit messages and enforce it across teams.
# <type>: (If applied, this commit will...) <subject> (Max 50 char)
# |<---- Using a Maximum Of 50 Characters ---->|
# Explain why this change is being made
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->|
# Provide links or keys to any relevant tickets, articles or other resources
# Example: Github issue #23
#!/bin/bash
cd /usr/local/src/pwnagotchi
sudo git pull
sudo mkdir /usr/local/lib/python3.7/dist-packages/pwnagotchi/ui/hw/libs/waveshare/v3/
sudo cp /usr/local/src/pwnagotchi/pwnagotchi/ui/display.py /usr/local/lib/python3.7/dist-packages/pwnagotchi/ui/
sudo cp /usr/local/src/pwnagotchi/pwnagotchi/ui/hw/__init__.py /usr/local/lib/python3.7/dist-packages/pwnagotchi/ui/hw/
sudo cp /usr/local/src/pwnagotchi/pwnagotchi/ui/hw/libs/waveshare/v3/epd2in13_V3.py /usr/local/lib/python3.7/dist-packages/pwnagotchi/ui/hw/libs/waveshare/v3/
@fishd72
fishd72 / structure.ansible.yml
Created January 25, 2023 16:28 — forked from ngf-davef-devops/structure.ansible.yml
Playbook to create a default directory & file structure for Ansible projects, create a folder, copy this playbook to it and execute it from within that folder.
---
- hosts: localhost
connection: local
gather_facts: false
become: false
tasks:
- name: Create folder structure
ansible.builtin.file:
path: "{{ item }}"

doc title

Sections

  1. Document details
  2. Document history
  3. Audience
  4. Scope / Background
  5. Standards
  6. Substandards
/9j/4AAQSkZJRgABAQEAeAB4AAD/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wAARCAFUAdADASIAAhEBAxEB/8QAGwAAAgMBAQEAAAAAAAAAAAAAAAECAwQFBgf/xAA7EAACAQIEBAQEBAUDBAMAAAAAAQIDEQQSITEFQVFhEyJCcQYyYqFSgZGxFCMzcsEV4fAHQ4KykqLC/8QAGQEBAQEBAQEAAAAAAAAAAAAAAAECAwQF/8QAIREBAQEBAAIDAAMBAQAAAAAAAAERAiExAxJBBDJRImH/2gAMAwEAAhEDEQA/APRNg2K4rnxte7AxXBiJpguFwYXGmC4NgJsagbI3BsVxq4dwuK4XGh3E2JsTY0SuK4rhcaHcLkbgNErhcjcLjQ2K9guJsmh3HchfUto0KuInko05VJdIrYaVG4ztYX4ZrTSliakaa5xjqzr4fgeAw9mqKnLrN3Gxm9R4+EZzdoRcn2VzRHAYyfyYWq++VntoUoQVoQjFdkkSsifZPs8T/pWP3eFqfoVzwWKp/wBTD1I2+lnuspFxJ96fZ4Fpp2aafcTue4q4ajWTVSlCfujm4jgOEqXdPNSl9Luv0Ynf+rrzDHc6OJ4Ji8OnKmlVivw7/oc9pxbUk01umjc6l9KCEnoSIsogJjYuRKpMSQ2BNCAdgsURaGth2ACLESYrAICVtBMCNgsSsCRUCQch2HYCNgSJWBRAa2ISdizLoVzRUJMbIxWpYkUbvyIu/Q1NLoiLS6GMa1nd+gtTTaPQVl0GGszuRuzU4x6IWWPQmGs92KTuacsegnCPQYay3C5qdOPQXhx6DDWYDR4cegvDiMNUCNHhxF4cRhrOBodKIvDiTKaoC5d4UReHEZTV
@fishd72
fishd72 / TerminalFun.md
Last active July 29, 2022 12:16
Installing lolcat and fortune on Steam Deck

Installing lolcat and fortune on Steam Deck

... for fun and profit ?!

The Steam Deck is great, I'm less than 24 hours in but already loving it. It does have a few quirks compared to a standard Windows or Linux machine though... it has an immutable filesystem... meaning you can't just install packages using pacman as you normally would, and while you can switch this off temporarily to install things, these changes will likely be overwritten during the next software update cycle.

To work around this, I've found versions of lolcat and fortune that are written in python and installed in the /home/deck folder, which should survive any OS updates. Credit for both these tools goes to the original authors:

  1. Install pip using python3 -m ensurepip
@fishd72
fishd72 / Manifesto.txt
Created July 12, 2022 21:06 — forked from macprince/Manifesto.txt
My IT Manifesto
I will work with you to figure out what the thing is that you need,
I will get the thing ordered for you,
I will unbox the thing and set it up for you,
I will help you get started using the thing,
I will maintain the thing in proper working order for you,
I will troubleshoot the thing for you,
I will fix the thing for you (if I can, or find someone who can if I can't),
I will properly dispose of the thing for you when it's no longer useful,
I will replace the thing with another, possibly better thing when the time comes.