Skip to content

Instantly share code, notes, and snippets.

@thisismikekelly
thisismikekelly / hugo.yaml
Created March 3, 2024 15:32
Hugo GitHub Action
# Sample workflow for building and deploying a Hugo site to GitHub Pages
name: Deploy Hugo site to Pages
on:
# Runs on pushes targeting the default branch
push:
branches:
- main
# Allows you to run this workflow manually from the Actions tab
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active March 3, 2026 20:40
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for quests which require you to play a game! Use the desktop app to complete those.

How to use this script:

  1. Accept a quest under the Quests tab
  2. Press Ctrl+Shift+I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter:
@nommiin
nommiin / input.cpp
Last active March 3, 2026 20:38
A basic shim for adding keyboard support to Minecraft Console Edition
#include "stdafx.h"
#include <Windows64\4JLibs\inc\4J_Input.h>
#include <Common\App_enums.h>
#include <Windows.h>
C_4JInput InputManager;
void C_4JInput::Initialise(int iInputStateC, unsigned char ucMapC, unsigned char ucActionC, unsigned char ucMenuActionC)
@sindresorhus
sindresorhus / esm-package.md
Last active March 3, 2026 20:37
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.

Here's how to compile and install the fairydust branch of the Asahi Linux kernel, to test out experimental DisplayPort over USB-C support. I wrote this for Gentoo, though it can be adapted for Asahi Fedora Remix, too.

  1. Clone the sources
git clone -b fairydust --single-branch --depth 1 https://github.com/AsahiLinux/linux.git
cd linux
  1. Read the current kernel config into .config. I recommend updating and booting to the same Linux release that fairydust is based on, in my case 6.18.5.
@l1kus-freedom
l1kus-freedom / !instruction.txt
Last active March 3, 2026 20:31
Инструкция по обходу блокировок\на случай интернет-шатдауна в РФ.
Сохраните себе данную инструкцию (Download ZIP) и распространите.
В РФ постепенно усиляется цензура и блокируются различные интернет-ресурсы. Нельзя исключать тот факт, что в один момент могут войти в постоянную практику локальные шатдауны и ограничению доступа во внешний Интернет.
В этой инструкции будут рекомендации по обходу блокировок на момент 05.09.2025, а также рекомендации на случай интернет-изоляции в РФ. Желательно предварительно установить и настроить весь софт — во время шатдауна у вас не будет такой возможности.
Для начала, рекомендую установить на ПК браузер Firefox или любой другой браузер с интерфейсом настройки прокси.
========================================================================================================================================
ОБХОД БЛОКИРОВОК
* Обход блокировок по DPI (Windows)
github.com/ValdikSS/GoodbyeDPI - не обновляется, плохо обходит блокировки без настройки, однако, может работать в некоторых случаях;
github.com/bol-van/zapret-win-bundle - оригинальный гит
@Klerith
Klerith / testing-configuration.md
Last active March 3, 2026 20:30
Configuración de Vitest + React Testing Library
@scyto
scyto / proxmox.md
Last active March 3, 2026 20:28
my proxmox cluster

ProxMox Cluster - Soup-to-Nutz

aka what i did to get from nothing to done.

note: these are designed to be primarily a re-install guide for myself (writing things down helps me memorize the knowledge), as such don't take any of this on blind faith - some areas are well tested and the docs are very robust, some items, less so). YMMV

Purpose of Proxmox cluster project

Required Outomces of cluster project

@c0m4r
c0m4r / radxa_rock5c_lite.md
Last active March 3, 2026 20:26
Radxa ROCK 5C Lite - all you need to know in one place