Skip to content

Instantly share code, notes, and snippets.

@baltermia
baltermia / SimpleMarkdown.cs
Last active January 20, 2025 14:59
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);
@RubenKelevra
RubenKelevra / fast_firefox.md
Last active April 26, 2026 20:37
Make Firefox fast again
@GodTamIt
GodTamIt / btrfs-scrub-individual.py
Last active July 6, 2024 12:37
btrfs-scrub-individual.py
#! /usr/bin/env python3
"""
Script that helps invoke scrub on individual disks in a multi-disk btrfs
filesystem.
This is helpful for configurations that use erasure coding, (i.e. RAID5/RAID6),
where scrubbing a single disk involves reading data from the other disks. By
default, scrub runs concurrently on every disk in the filesystem, which can
result in huge amounts of I/O for such a configuration.
@ZacharyPatten
ZacharyPatten / readme.md
Last active February 3, 2023 15:58
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.

@mubix
mubix / GetProcessList.cs
Created January 17, 2020 21:09
Get a process listing with the command line arguments
using System;
using System.Linq;
using System.Diagnostics;
using System.Management;
namespace GetProcessList
{
public static class Program
{
static void Main(string[] args)
@krisleech
krisleech / renew-gpgkey.md
Last active April 18, 2026 20:06
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:

@firomero
firomero / json
Created February 1, 2017 21:12
Provincias de Cuba
"Provincias": [{
"id": "1",
"nombre": 'Pinar del Río',
"municipios":["Consolación del Sur", "Guane", "La Palma", "Los Palacios", "Mantua", "Minas de Matahambre", "Pinar del Río", "San Juan y Martínez", "San Luis", "Sandino", "Viñales"]
}, {
"id": "2",
"nombre": 'Artemisa',
"municipios":[
"Alquízar", "Artemisa", "Bauta", "Caimito", "Guanajay", "Güira de Melena", "Mariel", "San Antonio de los Baños", "Bahía Honda", "San Cristóbal", "Candelaria"]
}, {
@bdrupieski
bdrupieski / SimpleFluentInterface.cs
Last active March 17, 2022 02:51
Simple fluent interface in C#
using System;
using System.Collections.Generic;
namespace SimpleFluentInterface
{
class Program
{
static void Main(string[] args)
{
string s = ListEnrollmentsSelectBuilder.Create()
@yallie
yallie / ipctest.cs
Created February 24, 2016 12:28
Sample IPC server for wrapping around the static class
// Compile this code using: csc ipctest.cs /r:Zyan.Communication.dll
// First run — starts server.
// Second run — starts client.
using System;
using System.Linq;
using System.Text;
using Zyan.Communication;
using Zyan.Communication.Protocols.Ipc;
@wonderful-panda
wonderful-panda / MainWindow.xaml
Created January 29, 2015 15:00
[WPF]ListView.SelectedItemsとListViewItem.IsSelectedの挙動を確認するテストプログラム
<Window x:Class="WpfTraning.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:my="clr-namespace:WpfTraning"
Height="300" Width="400">
<Window.DataContext>
<my:ViewModel/>
</Window.DataContext>
<Grid>
<Grid.RowDefinitions>