Skip to content

Instantly share code, notes, and snippets.

View digitalsparky's full-sized avatar
😀

Matt Spurrier digitalsparky

😀
View GitHub Profile

Keybase proof

I hereby claim:

  • I am digitalsparky on github.
  • I am digitalsparky (https://keybase.io/digitalsparky) on keybase.
  • I have a public key whose fingerprint is B9A2 0280 F7E8 E892 B58F 5944 8C36 F330 41B1 0C03

To claim this, I am signing this object:

@digitalsparky
digitalsparky / DONATE.md
Created November 29, 2019 06:33
Donation README.md

Like my stuff?

Would you like to buy me a coffee or send me a tip? While it's not expected, I would really appreciate it.

Paypal Buy Me A Coffee

@digitalsparky
digitalsparky / DockerCleanupScripts.md
Created September 28, 2021 23:44 — forked from johnpapa/DockerCleanupScripts.md
Docker Cleanup Scripts

Docker - How to cleanup (unused) resources

Cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@digitalsparky
digitalsparky / gist:e336a1c1653e74b1cf00773f96b897e2
Created December 7, 2021 21:29
Find sid-updates for Chris
#!/bin/bash
for file in $(find . -iname "*.list" -type f); do
grep -i sid-updates $file > /dev/null 2>&1
if [[ $? -eq 0 ]]; then
echo "FOUND IN: $file"
fi
done
@digitalsparky
digitalsparky / enable_wayland_popos.sh
Last active December 31, 2021 16:34
Enable Wayland on Pop_OS!
#!/bin/bash
set -e
GDMFILE="/etc/gdm3/custom.conf"
GDMBACKUPSUFFIX=".bak"
GDMBACKUPFILE="${GDMFILE}${GDMBACKUPSUFFIX}"
if [ ! -f "${GDMFILE}" ]; then
echo "GDM Config file missing, are you sure you're using GDM?"
exit 1
@digitalsparky
digitalsparky / App.vue
Created January 14, 2022 14:30 — forked from ErikCH/App.vue
App.vue for Renderless Component Video
<script lang="ts" setup>
import FetchJson from "./components/fetch-json.vue";
// import { useFetch } from "@vueuse/core";
const url = "https://api.thecatapi.com/v1/images/search";
// const { isFetching: loading, error, data: response } = useFetch(url).json();
</script>
<template>
<h3>Random Cat Pics!</h3>
<script setup lang="ts">
import { ref, useSlots, getCurrentInstance } from "vue";
const props = defineProps<{ url: string }>();
const slots = useSlots();
let res = ref("");
let loading = ref(true);
fetch(props.url)
@digitalsparky
digitalsparky / popos-install-xanmod-edge.sh
Last active February 4, 2022 18:54
PopOS Xanmod Edge Install
#!/bin/bash
set -e
for field in $(cat /proc/cmdline); do
if [[ "${field}" = root=* ]]; then
UUID=$(echo $field | awk -F= '{print $3}')
break
fi
done
@digitalsparky
digitalsparky / DisableIPv6.sh
Last active February 20, 2022 14:17
Disable IPv6 on Linux
#!/bin/bash
# set -x
##
# This is only needed in some occasions, please don't use this unless you know what you're doing.
# Installs/Uninstalls sysctl configuration disable IPv6 at the kernel level
#
# @AUTHOR: Matt Spurrier (@DigitalSparky) | https://digitalsparky.com | https://github.com/digitalsparky
# @LICENSE GPLv3
##
@digitalsparky
digitalsparky / disable-snapd.sh
Created June 10, 2022 16:37
Disable Snapd via CLI
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
systemctl disable snapd.service
systemctl disable snapd.socket
systemctl disable snapd.seeded
systemctl disable snapd.snap-repair.timer
systemctl stop snapd.service