Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Based on the Windows version by mrsilver76
# https://github.com/mrsilver76/itunes_playlist_exporter
# ASSUMPTIONS
# 1. You have a Plex server.
# 2. You have exported your playlists to a folder of .m3u files.
# 3. You can update configuration values below.
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created April 22, 2024 04:35
Rimworld output log published using HugsLib
Log uploaded on Sunday, April 21, 2024, 9:35:33 PM
Loaded mods:
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Core(Ludeon.RimWorld): (no assemblies)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
Biotech(Ludeon.RimWorld.Biotech): (no assemblies)
HugsLib(UnlimitedHugs.HugsLib)[ov:11.0.3]: 0Harmony(av:2.3.3,fv:1.2.0.1), HugsLib(av:1.0.0,fv:11.0.3)
XML Extensions(imranfish.xmlextensions): XmlExtensions(av:1.3.0,fv:1.7.1)
P-Music(Peppsen.PMusic): (no assemblies)
@victornpb
victornpb / deleteDiscordMessages.js
Last active September 4, 2025 14:43
Delete all your messages from DM or Channel in Discord
/*
This file is now hosted here:
https://github.com/victornpb/undiscord
*/
@jdhao
jdhao / Markdown2PDF.sublime-build
Last active December 28, 2021 02:13
This is a Sublime Text build system which converts Markdown file to PDF using Pandoc and supports both English and Chinese. Features are: numbered section; url color; highlighted inline code and code blocks; build and preview using Sumatra pdf reader
{
"shell_cmd": "pandoc -f markdown-raw_tex --pdf-engine=xelatex -N --highlight-style=espresso -H \"${packages}\"/User/head.tex -V CJKmainfont=\"Noto Sans CJK SC\" -V colorlinks \"${file}\" -o \"${file_path}/${file_base_name}.pdf\" ",
"path": "C:/Users/east/AppData/Local/Pandoc/;%PATH%",
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "text.html.markdown",
"variants":
[
{
@jozsefsallai
jozsefsallai / GoHTML.sublime-syntax
Last active September 8, 2025 13:32
Go HTML template syntax highlighting for Sublime Text
%YAML 1.2
---
name: 'GoHTML'
file_extensions:
- gohtml
- html.go
scope: text.html.gohtml
contexts:
main:
- match: ''
@budparr
budparr / hugo-multiple-where-statmenets.html
Last active June 4, 2024 19:16
multiple where statements Remember that Hugo uses parameters in the range statement from the inside out. Order matters.
{{ range first 3 (where (where .Site.Pages.ByDate.Reverse "Section" "posts") ".Title" "!=" .Title) }}
<!-- latest posts -->
{{ end }}
@annalee
annalee / sample-slack-coc.md
Last active October 1, 2025 14:28
A sample code of conduct for social slack teams.

[SLACKNAME] Code of Conduct

Welcome!

[BRIEF DESCRIPTION OF THE SLACK AND ITS PURPOSE]

The current admins are:

  • [NAMES]
@natelandau
natelandau / .bash_profile
Last active October 27, 2025 14:01
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@S3ak
S3ak / Git commit editior
Last active May 21, 2024 12:52
How to set git commit editor to sublime
Method 1
git config --global core.editor "'c:/program files/sublime text 3/sublime_text.exe' -w"
Method 2
git config --global core.editor "subl -n -w"
Method 3
$ echo 'alias subl="/cygdrive/c/Program\ Files/Sublime\ Text\ 3/sublime_text.exe"' >> ~/.bashrc
@robulouski
robulouski / gmail_imap_dump_eml.py
Last active April 22, 2025 11:58
Very simple Python script to dump all emails in an IMAP folder to files.
#!/usr/bin/env python
#
# Very simple Python script to dump all emails in an IMAP folder to files.
# This code is released into the public domain.
#
# RKI Nov 2013
#
import sys
import imaplib
import getpass