Skip to content

Instantly share code, notes, and snippets.

@micahbolen
micahbolen / convert-posts.py
Created June 16, 2015 21:49
Download And Convert Facebook Page Posts To Markdown For Use With Jekyll (a blog-aware static site generator)
'''
Purpose: Download And Convert Facebook Page Posts (including pictures) To Markdown For Use With Jekyll (a blog-aware static site generator)
Requires the script to be run in the root directory of your blog and assumes the presence of
a _posts directory as well as an uploads directory (for storing images).
Usage: run the script in the root directory of your blog and push new posts to GitHub
'''
import os
@saihtaM
saihtaM / hdhomerun-socat.service
Last active September 25, 2026 17:54
HDHomeRun (legacy) streaming over VPN/VLANs using socat for port forwarding.
# This helps clients communicate with HDHR works across all VLANs and more, run this on a server with access to the clients prefix (because we need to see the broadcast).
[Unit]
Description=HDHomeRun socat port forwarding service
After=network.target
[Service]
ExecStartPre=/bin/sleep 5
ExecStart=/bin/bash -c '/usr/bin/socat udp4-recvfrom:65001,broadcast,fork udp4-sendto:HDHOMERUN-IP-HERE:65001 & /usr/bin/socat tcp4-listen:65001,reuseaddr,fork tcp4:HDHOMERUN-IP-HERE:65001'
Restart=always
RestartSec=3
@zkochan
zkochan / gist:f5775a9e2e2918775cfdf856bf2a0ad8
Last active September 25, 2026 17:54
Fix a pnpm bug with your coding agent
I want to contribute a bug fix to pnpm (https://github.com/pnpm/pnpm).
1. Set up
- Fork and clone the repo: `gh repo fork pnpm/pnpm --clone`, then cd into it.
- Read CONTRIBUTING.md and any AGENTS.md / CLAUDE.md files, and follow them.
They explain how to install dependencies, build, run tests, and add changesets.
2. Pick an issue
- List open bugs that nobody is working on yet:
gh issue list -R pnpm/pnpm --state open --label "type: bug" --limit 100 \
@areebmajeed
areebmajeed / litecoin-install.sh
Created October 22, 2017 06:09
A script to install Litecoin
#!/bin/bash
apt-get update;
apt-get upgrade;
apt-get install git pkg-config libevent-dev build-essential autoconf libssl-dev libboost-dev libboost-chrono-dev libboost-filesystem-dev libboost-program-options-dev libboost-system-dev libboost-test-dev libboost-thread-dev libtool -y;
apt-get install libdb5.3++-dev libdb5.3-dev libqrencode-dev bsdmainutils -y;
wget http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.8.tar.gz && tar -zxf download.php\?file\=miniupnpc-1.8.tar.gz && cd miniupnpc-1.8/;
make && make install && cd .. && rm -rf miniupnpc-1.8 download.php\?file\=miniupnpc-1.8.tar.gz;
@SHJordan
SHJordan / xfce4_wsl2_rdp.md
Last active September 25, 2026 17:45
Setup Ubuntu Desktop (XFCE4) on WSL2 via RDP

Setup Ubuntu Desktop (XFCE4) on WSL2 via RDP

This guide covers how to install the XFCE4 desktop environment on WSL2 (Ubuntu) and connect to it using Windows Remote Desktop.

It specifically addresses two common issues on WSL2:

  1. Black Screen: Caused by incorrect color depth settings.
  2. Session Closing Immediately: Caused by conflicts between XRDP and WSLg environment variables (DBUS / XDG).

1. Update and Install Packages

@mcandre
mcandre / lg-c6-oled-guidance.md
Last active September 25, 2026 18:03
LG C6 OLED Guidance

LG C6 OLED Guidance

Summary

Rant/Manual for least bad experience with Plex videos and general usage on LG C6, and other OLED TV's.

If you hate when Google Maps' dark mode is randomly light mode for search results, if you want "smart" devices to just be dumb and perform their core function reliably, if you use subs and/or dubs, then this guide is for you.

Ads

Bun + Next.js 16 + Turbopack + Prisma 7 Compatibility Issues

We hit a blocking issue deploying a Next.js 16 app with Prisma 7 in a Docker container using oven/bun:1-alpine. The issue forced us to switch to Node.js + pnpm.

The Problem

When running bun run dev (which invokes next dev with Turbopack, the default bundler in Next.js 16), Turbopack generates hashed external module references that Bun's runtime cannot resolve.

Error

@henriquebastos
henriquebastos / postfix.sh
Created March 19, 2014 17:13
Postfix installed and basic setup
#################
# Validate Args #
#################
if [ "$#" -ne 2 ]; then
echo "Usage: $0 FQDN EMAIL"
exit 1
fi
# Postfix
@crtr0
crtr0 / resources.md
Created March 13, 2018 18:30
Financial independence and budgeting resources
@DmitriiNazimov
DmitriiNazimov / commitConvention.md
Last active September 25, 2026 17:37 — forked from bibendi/gist:7941823
Оформление коммитов #git

Как писать коммиты

Источники

В качестве основы используется Angular Git commit Message Convention - это наиболее авторитетный источник. Все остальные вариации конвенций по коммитам ссылаются на эту.

Также достаточно авторитетным источником является conventionalcommits.org

Ниже находится краткая выжимка того, как я понял эти конвенции.

Шаблон коммита