Skip to content

Instantly share code, notes, and snippets.

View pixiekat's full-sized avatar
✈️
Dreaming of Scotland

Katie pixiekat

✈️
Dreaming of Scotland
View GitHub Profile
@mary-ext
mary-ext / bluesky-osa.md
Last active August 14, 2026 01:31
Bluesky's age assurance sucks, here's how to work around it.

Bluesky's age assurance sucks, here's how to work around it.

Bluesky has implemented age verification measures in response to regional laws that restrict access, prompting users to verify their age through Epic Games' Kids Web Services before they can access adult content.

This sucks, but thankfully there are ways to work around it.

Before diving in: I encourage you to read this entire document, including the

@BraINstinct0
BraINstinct0 / OhMyPoshInstall.sh
Last active April 21, 2025 13:13
Oh My Posh install & update script for AMD64-based linux
echo "Installing 'Oh My Posh'..."
sudo wget https://www.github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-linux-amd64 -O /usr/local/bin/oh-my-posh
sudo chmod +x /usr/local/bin/oh-my-posh
echo "Oh My Posh installation complete. Version:"
oh-my-posh --version
@GAS85
GAS85 / http2_apache2_ubuntu20.04.md
Last active July 20, 2026 12:03
How to Enable HTTP/2 in Apache 2.4 on Ubuntu 20.04

Based on https://gist.github.com/GAS85/8dadbcb3c9a7ecbcb6705530c1252831

Requirements

  • A self-managed VPS or dedicated server with Ubuntu 20.04 running Apache 2.4.xx.
  • A registered domain name with working HTTPS (TLS/SSL). HTTP/2 only works alongside HTTPS because most browsers, including Firefox and Chrome, don’t support HTTP/2 in cleartext (non-TLS) mode.

Step 1: Install Apache2

Per default it will be apache2 version 2.4.41 what is enought for http2 support.

@atnbueno
atnbueno / template.user.js
Last active May 22, 2025 11:17
My starting point for Violentmonkey userscripts
// ==UserScript==
// @name Website tweaks
// @version 1.4
// @author Antonio Bueno <atnbueno@gmail.com>
// @namespace userscripts.atnbueno.com
// @match http://www.example.com/*
// @require https://cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js
// @require https://cdn.jsdelivr.net/npm/toastify-js
// @resource toastifyCSS https://cdn.jsdelivr.net/npm/toastify-js/src/toastify.min.css
// @grant GM_addStyle
@cesarmiquel
cesarmiquel / drupal-8-cheatsheet.md
Last active December 6, 2025 04:14
Drupal 8/9/10 Cheatsheet

Drupal 8/9/10 Cheatsheet

[Update 2024] - Take a look at Drupal at your fingertips. Lot's of great stuff there.

Files, Images and Media

// Load file object
$file = File::load($fid);
@matthewjberger
matthewjberger / instructions.md
Last active July 5, 2026 10:19
Install a nerd font on ubuntu

1.) Download a Nerd Font

2.) Unzip and copy to ~/.fonts

3.) Run the command fc-cache -fv to manually rebuild the font cache

@jacerider
jacerider / D8 | Programmatically Create Field.md
Last active February 15, 2024 01:37
Programmatically create a field in Drupal 8.
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\field\Entity\FieldConfig;

$bundles = ['user'];

$fields['user_picture'] = [
  'type' => 'image',
  'entity_type' => 'user',
  'bundle' => 'user',
@tylermakin
tylermakin / Multipart MIME Email.md
Last active August 5, 2026 13:30
Multipart MIME Email Guide

Multipart MIME Email Guide

This is a guide on how to send a properly formatted multipart email. Multipart email strings are MIME encoded, raw text email templates. This method of structuring an email allows for multiple versions of the same email to support different email clients.

// Example Multipart Email:
From: sender@example.com
To: recipient@example.com
Subject: Multipart Email Example
Content-Type: multipart/alternative; boundary="boundary-string"
@Rich-Harris
Rich-Harris / service-workers.md
Last active August 7, 2026 09:39
Stuff I wish I'd known sooner about service workers

Stuff I wish I'd known sooner about service workers

I recently had several days of extremely frustrating experiences with service workers. Here are a few things I've since learned which would have made my life much easier but which isn't particularly obvious from most of the blog posts and videos I've seen.

I'll add to this list over time – suggested additions welcome in the comments or via twitter.com/rich_harris.

Use Canary for development instead of Chrome stable

Chrome 51 has some pretty wild behaviour related to console.log in service workers. Canary doesn't, and it has a load of really good service worker related stuff in devtools.