Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
# Usage: format-irclog.sh <file>
# 1. Append two spaces to the end of each line.
# 2. Remove all characters before last `<`, e.g. `<matterbridge> <sgp> foo` becomes `<sgp> foo`.
# 3. Remove lines containing `⇐` (parts).
# 4. Remove lines containing `→` (joins).
# 5. Escape the `*` character, e.g. `*foo*` becomes `\*foo\*`.
# 6. Escape the `<` character, e.g. `<3` becomes `\<3`.
@00-matt
00-matt / runelite.sh
Last active March 11, 2021 17:46
RuneLite Launcher
#!/bin/sh
set -e
set -u
CONFIG_DIR="$HOME/.config/runelite-${1:-main}"
RUNELITE_DIR="$HOME/src/runelite"
cd "$RUNELITE_DIR"
#!/usr/bin/env escript
% -*- erlang -*-
%
% Copyright 1999-2021 Gentoo Authors
% Distributed under the terms of the GNU General Public License v2
%
% A small script to generate the ETS table that represents Rebar 3's
% package cache.
-module(gen_package_index).
static size_t debug_itoa(int value, char *buf, unsigned int radix, int sign) {
int neg = 0;
char *pbuf = buf;
unsigned int i;
unsigned int len;
if (radix > 16) {
*buf = '\0';
return 0;
}
From ad964f7eaef9c03ce68a01cfdd7fde9d56524868 Mon Sep 17 00:00:00 2001
From: Martin Liska <mliska@suse.cz>
Date: Tue, 21 Dec 2021 17:43:55 +0100
Subject: [PATCH] Support ld.mold linker.
gcc/ChangeLog:
* collect2.c (main): Add ld.mold.
* common.opt: Add -fuse-ld=mold.
* doc/invoke.texi: Document it.