Skip to content

Instantly share code, notes, and snippets.

View digitalsparky's full-sized avatar
😀

Matt Spurrier digitalsparky

😀
View GitHub Profile
@digitalsparky
digitalsparky / gist:329e69997a4478fcb7a24b9b79a87dc4
Created December 21, 2022 19:41
Mastodon/ActivityPub Relays
These relays do not require authorization and appear to be reliable:
There are *many* relays, just gotta do some searching and go from there.
Note: To get to the larger relays you will need to contact that relay operator to be added to the allow list.
https://relay.fedibird.com/inbox
https://relay.wagnersnetz.de/inbox
https://relay.intahnet.co.uk/inbox
https://relay.beckmeyer.us/inbox
@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
@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 / 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
<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 / 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>
@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 / 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 / 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 / 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