Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@passcod
passcod / CARETAKERS.md
Last active December 29, 2021 17:28
Caretaker maintainership in a nutshell

Caretaker Maintainership

(If this file is included in a project, you can find the list of current caretakers at the bottom.)

In a small classical open-source project, maintainers do a lot, and if maintainers don't have time to do a lot, usually the project stalls. Finding new maintainers is hard because few people actively want to take over all the responsibilities of a project. There must be a different way.

With Caretaker Maintainership, "Maintainers" become "Caretakers". Caretakers' only mandatory responsibility is to grant Releasers commit and publish access to the project.

use async_io::Timer;
use async_std::task::{spawn, Context, Poll};
use std::{future::Future, pin::Pin, time::Duration};
/// Awaits a future or spawns it out after a duration of time.
///
/// If timeout is reached, the future is not dropped, but instead is spawned out as a free task,
/// and `None` is returned.
///
/// # Examples
/* Public Domain (or CC0) */
a.media-image[title]::after,
a.media-item[title]::after {
content: 'ALT';
position: absolute;
bottom: 0.2em;
background: rgba(0, 0, 0, 0.6);
padding: 0.2em 0.3em;
font-size: 0.7em;
@passcod
passcod / update-vscode.sh
Created June 30, 2020 09:54
Script to update VS Code on Linux
#!/usr/bin/env bash
set -euo pipefail
url="https://update.code.visualstudio.com/latest/linux-x64/insider"
target="$HOME/.local/share/vscode"
xattr="user.vscode.updatename"
mkdir -p "$target"
cd "$target"
[PROFILE]
[TITLE:WELL-PREPPED (0XABADIDEA STYLE)]
[SKILL:1:MINING:5]
[SKILL:1:HAMMER:2]
[SKILL:1:SWIMMING:2]
[SKILL:1:MELEE_COMBAT:1]
[SKILL:2:MINING:5]
[SKILL:2:SWORD:2]
[SKILL:2:CROSSBOW:2]
[SKILL:2:SWIMMING:1]
@passcod
passcod / shadow-processing-22jan2020.md
Last active January 22, 2020 09:24
Shadow Follows processing list from 22 jan 2020
handle hint location outcome
@adamlearnsrust deadfeed usa gone
@panoftheday goodbot n/a simple follow
@fernentity undecided ? stay
@frustlang rustbot ? ehh... gone
@Enigmaris fanfic writer usa simple follow
@Lun_rlambda rusty ? locked... gone
@Askellie_ut nsfw artist aus gone
@scienceandroses low-volume leftie scientist nz list:soc
// reduced further from
// https://github.com/mafintosh/echo-servers.c/blob/master/tcp-echo-server.c
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <unistd.h>

picture of one serving

Ingredients:

  • 1 zucchini
  • Olive oil
  • 1 tomato
  • Salt and pepper
  • 2 tbsp Chipotle sauce (can replace with 2 tbsp tomato concentrate and chili/tabasco/kaitaia fire)
  • 1 cup orzo / rizoni pasta
@passcod
passcod / rustup-bisect
Last active June 9, 2019 06:25
A tool to find out what the earliest version that your project supports is!
#!/usr/bin/env bash
# With revisions from @parasyte for macOS compatibility
# Requires bash >= 5 (mapfile)
if [[ "$1" == "--keep-versions" ]]; then
keep_versions="1"
fi
purple="\e[0;35m"
reset="\e[0m"
@passcod
passcod / __why-and-how-to-use.md
Last active March 22, 2023 13:33
Bootstrap 4 mixins for spacing utilities without classes

Why?

This:

.action {
  @extend .ml-3;
}