Skip to content

Instantly share code, notes, and snippets.

View furycd001's full-sized avatar
😶
Sometimes....

Jonny Sherwood-Bowes furycd001

😶
Sometimes....
View GitHub Profile
# Semi-Automated Workflow to Add Belfast Giants Fixtures to Google Calendar..
This guide walks you through extracting all upcoming fixtures from the [Belfast Giants Game Centre](https://www.belfastgiants.com/game-centre), saving them to a CSV file, and importing them into Google Calendar — **no login, APIs, or scraping frameworks required!**
---
## What You’ll Need..
- Firefox or Chrome
- Python 3 installed
@furycd001
furycd001 / extract.sh
Created April 9, 2025 10:03
Recursively extract archives in a directory, placing files from root-level zip archives into directories named after the archive, and extracting other archives normally....
#!/usr/bin/env bash
ex () {
local archive="$1"
local archive_name=$(basename "$archive" | sed 's/\.[^.]*$//') # Extract name without extension
if [ -f "$archive" ]; then
case "$archive" in
*.zip)
# Check if the zip contains files in the root
@furycd001
furycd001 / quote.sh
Created September 17, 2024 06:16
A simple script that fetches a random quote & displays it in a notification....
#!/usr/bin/env bash
# Fetch a random quote from the quotable API
response=$(curl -sk https://api.quotable.io/random)
# Extract the quote and author
quote=$(echo "$response" | jq -r '.content')
author=$(echo "$response" | jq -r '.author')
# Format the quote and author with padding and bold text
#!/bin/env bash
INSTANCE="https://fosstodon.org" # Replace with your Mastodon instance URL
# Function to fetch and display the timeline
function display_timeline {
# Fetch the public timeline using curl and the Mastodon API
toot_timeline=$(curl -s "$INSTANCE/api/v1/timelines/public" | jq -r '.[] | .content? | gsub("<[^>]*>"; "")' | head -n 20)
# Loop through the toot texts and display them
@furycd001
furycd001 / userContent.css
Last active April 21, 2023 12:49
Minimal twitter userContent.css....
/* Newtab */
@-moz-document url("about:blank") {
body {
background-color: #272b35 !important;
}
}
@-moz-document url("about:newtab") {
body {
background-color: #272b35 !important;

Adding a progress bar to GNU Core Utilities copy & move.

Advanced Copy is an awesome mod for GNU Core Utilities that adds a handy progress bar to cp & mv. This can be super helpfully when copying or moving large files or directories, because you'll be able to see how far along the process is.

The install process is extremely simple. Just follow the commands below typing them into a terminal & then logout / log back in to finish..

  • Download GNU Core Utilities....

wget http://ftp.gnu.org/gnu/coreutils/coreutils-8.32.tar.xz

  • Extract the downloaded file & move into the directory....

In TF2 you can bind a single key to crouch jump.

The console command for jump is +jump & the command for crouch is +duck

A + in front of any command means that it will execute for as long as the button is being pressed if at all possible..

You can combine jump & duck to be used with a single key super easily. To do so simple launch TF2, open the console & then type the following three lines in one by one, pressing enter after each one.

  • alias +cjump "+jump;+duck"
@furycd001
furycd001 / conkypanel.md
Last active January 15, 2020 15:51
Adding conky to xfce4-panel....

Here's how I was able to output conky to a text file and then add it to my xfce4-panel using xfce4-genmon-plugin. Simply follow the steps below if you'd like to do the same.

PLEASE NOTE THAT YOUR CONKY MUST BE A SINGLE LINE OR IT WILL OUTPUT INCORRECTLY TO THE PANEL

1. Add the following to conky.conf....

out_to_x no
out_to_console yes