Skip to content

Instantly share code, notes, and snippets.

@alex6dj
alex6dj / fast_firefox.md
Created January 30, 2025 18:03 — forked from RubenKelevra/fast_firefox.md
Make Firefox fast again
@alex6dj
alex6dj / SimpleMarkdown.cs
Created January 20, 2025 14:58 — forked from baltermia/SimpleMarkdown.cs
Simple Markdown Sketch
using System.Collections.Generic;
namespace SimpleMarkdown;
class Testing
{
public static void Test()
{
// either use .With or set MarkdownBuilder.DefaultParseMode to globally set it once
string nice = "Hey!".Bold().Link("https://google.com/").With(ParseMode.Markdown);
@alex6dj
alex6dj / Generator.cs
Created January 20, 2025 14:48
Some extensions methods to format text for use in Telegram bots
using Telegram.Bot.Types.Enums;
namespace tmdbQueryBot.Markdown;
/// <summary>
/// https://core.telegram.org/bots/api#markdownv2-style
/// </summary>
public static class Generator
{
public static ParseMode OutputMode { get; set; } = ParseMode.Html;
@alex6dj
alex6dj / btrfs-fi-show.sh
Created August 27, 2024 18:50 — forked from fandingo/btrfs-fi-show.sh
Simple wrapper script, so btrfs fi show output uses more relevant udev paths
#!/usr/bin/env bash
# MIT License
# Copyright (c) 2024 fandingo <reddit.com/u/fandingo>
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights to
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
@alex6dj
alex6dj / docker-compose.yml
Created May 19, 2024 06:17 — forked from x1unix/docker-compose.yml
pihole+traefik
version: "3"
services:
traefik:
image: traefik:v2.10
container_name: 'traefik'
command:
- '--log.level=DEBUG'
- '--api.insecure=true'
- '--api.dashboard=true'
@alex6dj
alex6dj / NetFileSystemWatcher.cs
Created January 23, 2024 16:44 — forked from dbeuchler/NetFileSystemWatcher.cs
Network file system watcher
using System;
using System.ComponentModel;
using System.IO;
using System.Timers;
namespace NetFileSystemWatcher
{
public enum ConnectionState
{
/// <summary>
@alex6dj
alex6dj / renew-gpgkey.md
Last active June 9, 2023 15:40 — forked from krisleech/renew-gpgkey.md
Renew Expired GPG key

Renew GPG key

Given that your key has expired.

$ gpg --list-keys
$ gpg --edit-key KEYID

Use the expire command to set a new expire date:

@alex6dj
alex6dj / ffmpeg.md
Created March 15, 2023 12:19 — forked from nonwip/ffmpeg.md
Convert video files to MP4 through FFMPEG

This is my personal list of functions that I wrote for converting mov files to mp4!

Command Flags

Flag Options Description
-codec:a libfaac, libfdk_aac, libvorbis Audio Codec
-quality best, good, realtime Video Quality
-b:a 128k, 192k, 256k, 320k Audio Bitrate
-codec:v mpeg4, libx264, libvpx-vp9 Video Codec
@alex6dj
alex6dj / readme.md
Created September 15, 2022 00:59 — forked from ZacharyPatten/readme.md
GitHub Repository Checklist (C#)

GitHub Repository Checklist (C#)

Have a repository on GitHub? Planning on making a repository on GitHub? This checklist is intended to introduce you to various features that may help you make the most of your GitHub repository with specific recommendations for C# repositories.

Checklist

These are only suggestions.
They may not be appropriate for all repositories.
They are in no particular order.
Click each item to expand for more information.

@alex6dj
alex6dj / btrfs-scrub-individual.py
Created April 9, 2022 02:36 — forked from GodTamIt/btrfs-scrub-individual.py
btrfs-scrub-individual.py
#! /usr/bin/env python3
import argparse
import re
import subprocess
import sys
from typing import List, NoReturn, Set
PATH_REGEX = re.compile("path\s+(?P<path>[^\s]+)")