Skip to content

Instantly share code, notes, and snippets.

View kelsS's full-sized avatar
🍵

Kelsey S. kelsS

🍵
View GitHub Profile
@pjobson
pjobson / setup_cypress_wsl2.md
Last active April 24, 2025 04:54
Setting Up Cypress on Ubuntu WSL2
@Davidy22
Davidy22 / Installing Pico on Fedora
Last active March 17, 2025 21:32
Installing Pico on Fedora
One day, I woke up and decided I really wanted a program to read books to me while I lie down or do other things. I did some
research, installed Calibre and fired away and my ears bled because the default text to speech system on Fedora is espeak,
which doesn't have very pleasant voices to listen to. I tried Festival because I saw someone on the internet mention how it
had very good sound quality, and I had a blast picking out a voice I liked but when it came to putting it into use there was
just the small issue of festival being very slow to generate speech, which led to 5 second gaps between every sentence. The
next system I tried was Pico, which I've now settled on because it sounds great and works great, but I am putting pen to
paper today because Fedora does not actually have Pico in its repositories and I want to document the arduous journey it took
to set Pico as the system's default recognised text to speech engine. Mainly for myself in case I ever need to do this again
on a new machine, but also for
@gwillem
gwillem / _cronrat.sh
Last active August 27, 2024 18:17
This is the decoded payload from the CRON loader. Full analysis here: https://sansec.io/research/cronrat
set -eEu
set -o pipefail
trap 'echo "L$LINENO"; O70; exit -1' ERR
O54=4
function O70()
{
if [[ ! -z "${O57+x}" ]]; then
if [[ -f "${O57}" ]]; then
rm -f "${O57}"
fi
@acidtone
acidtone / README.md
Last active September 26, 2024 19:05
<aside> element: What's it for?

Aside: Proper Use

In HTML5, aside is only "related to the content around the aside element".

In HTML 5.1 (CR) the definition became more specific: aside is "related to the content of the parenting sectioning content".

Following the newer definition, the aside element should be inside of the section element to which it is related.

Sectioning elements

  • body
  • header
@douknow
douknow / settings.json
Last active April 10, 2024 09:16
Custom VSCode use 'Operator Mono' font for italic font style and 'Fira Code' for other font styles.(I used theme is Palenight Operator)
{
"window.zoomLevel": 0,
"editor.fontSize": 15,
"editor.fontFamily": "'Fira Code', Menlo, Monaco, 'Courier New', monospace",
"editor.fontLigatures": true,
"editor.lineHeight": 36,
"workbench.colorTheme": "Palenight Operator",
"dart.debugExternalLibraries": false,
"dart.debugSdkLibraries": false,
@Albert221
Albert221 / JetBrains-Mono.css
Last active March 5, 2025 17:39
CSS for using JetBrains Mono on the Web. Simply copy&paste it to your stylesheet.
@font-face {
font-family: 'JetBrains Mono';
src: url('https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff2/JetBrainsMono-Bold-Italic.woff2') format('woff2'),
url('https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff/JetBrainsMono-Bold-Italic.woff') format('woff');
font-weight: 700;
font-style: italic;
font-display: swap;
}
@font-face {
@Treeki
Treeki / TurnipPrices.cpp
Last active April 21, 2025 04:42
AC:NH turnip price calculator
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
// munged from https://github.com/simontime/Resead
namespace sead
{
class Random
{
@callumlocke
callumlocke / .zshrc
Last active April 8, 2025 04:21
ZSH function to auto-switch to correct Node version
####
# ZSH function to auto-switch to correct Node version
# https://gist.github.com/callumlocke/30990e247e52ab6ac1aa98e5f0e5bbf5
#
# - Searches up your directory tree for the closest .nvmrc, just like `nvm use` does.
#
# - If you are already on the right Node version, IT DOES NOTHING, AND PRINTS NOTHING.
#
# - Works correctly if your .nvmrc file contains something relaxed/generic,
# like "4" or "v12.0" or "stable".
@sunnywiz
sunnywiz / sortWL.js
Created October 10, 2019 00:27
SortYoutubeWatchLaterList
// This worked on 2019-10-09 under Chrome in full screen mode.
// Did not work under mobile, they changed ... things?
// You put this in Chrome's Snippets (copy/paste) and then run it from there when you are at the watch later list
// (https://www.youtube.com/playlist?list=WL)
// It will move one video per invocation. I tried to make it do all of them but $$ disappeared.
// Heavily borrowed from many places
// function for triggering mouse events
@mdennis-vpm
mdennis-vpm / gist:22dd508b78ce457220624b7797b58c06
Last active March 8, 2019 18:42
High-Level Bootstrap 4 Container Overview
Bootstrap 4 Default breakpoints (and corresponding fixed-width container sizes):
* xs = 575px and below (100% container, with 15px default left and right paddings)
* sm = 576px – 767px (540px container, with default paddings)
* md = 768px – 991px (720px container, with default paddings)
* lg = 992px – 1199px (960px container, with default paddings)
* xl = 1200px and up (1140px container, with default paddings)
“Container” dimensions are for when non-fluid containers are used.
I personally prefer working with non-fluid containers,
as it leads to massively reduced probability of layout issues.