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 / Fix_KDE_emoji.sh
Created February 27, 2025 11:31
This script, based on this source (https://dev.to/darksmile92/get-emojis-working-on-arch-linux-with-noto-fonts-emoji-2a9) should fix emojis showing in apps like Tokodon.
#!/bin/sh
set -e
if [[ $(id -u) -ne 0 ]] ; then echo "Please run as root" ; exit 1 ; fi
echo "Setting up Noto Emoji font..."
# 1 - install noto-fonts-emoji package
pacman -S noto-fonts-emoji --needed
# pacman -S powerline-fonts --needed
echo "Recommended system font: inconsolata regular (ttf-inconsolata or powerline-fonts)"
# 2 - add font config to /etc/fonts/conf.d/01-notosans.conf
[[ -e /etc/fonts/local.conf ]] && cp /etc/fonts/local.conf /etc/fonts/local.conf.bak
@fishd72
fishd72 / backup.sh
Created July 1, 2024 17:24
Start of a backup solution for Valheim dedicated server
#!/bin/bash
now=$(date +"%y%m%d")
status=$(systemctl check moddedvalheim.service)
if [ "$status" == "active" ]; then
echo "Seems like the server is still active!"
exit 1
else
echo "Backup starting..."
@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 cp -r /usr/local/src/pwnagotchi/pwnagotchi/* /usr/local/lib/python3.7/dist-packages/pwnagotchi/
sudo cp /usr/local/src/pwnagotchi/bin/pwnagotchi /usr/local/bin/pwnagotchi
@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/xAA7EAACAQIEBAQEBA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