Suppose you're opening an issue and there's a lot noisey logs that may be useful.
Rather than wrecking readability, wrap it in a <details>
tag!
<details>
Summary Goes Here
#!/bin/bash | |
# | |
# A simple example of how to parse CLI options and arguments | |
## === variable Declarations | |
# Script name without any directories ("basename"): | |
PROG=${0##*/} | |
# Version information: | |
VERSION="1.0.0" |
# Source: https://github.com/mitsuhiko/pipsi/blob/master/pipsi/__init__.py | |
from collections import namedtuple | |
import subprocess | |
def proc_output(s): | |
s = s.strip() | |
if not isinstance(s, str): | |
s = s.decode('utf-8', 'replace') | |
return s |
#!/bin/bash | |
# Bash script template | |
# | |
# Copyright 2017 Canonical Ltd. | |
# Joshua Powers <[email protected]> | |
VERBOSITY=0 | |
TEMP_D="" | |
error() { echo "$@" 1>&2; } |
#!/usr/bin/env python3 | |
import argparse | |
import logging | |
from logging.config import dictConfig | |
import sys | |
__version__ = "0.2.0" | |
__author__ = "Tux Penguin <[email protected]>" |
abschnecken | |
nirgendwas | |
dement sprechend, dement schweigend | |
Nussschnecke - Frollein, das zwar nicht clever, aber dafür schön ist | |
bemitneiden | |
writearound | |
Schnexitus | |
Schnexit | |
Schneckopocalypse -> Schnec(k)olypse! | |
clusterfake - Sven's Raspberry Pi 3 Ceph cluster |
"""This is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or | |
distribute this software, either in source code form or as a compiled | |
binary, for any purpose, commercial or non-commercial, and by any | |
means. | |
In jurisdictions that recognize copyright laws, the author or authors | |
of this software dedicate any and all copyright interest in the | |
software to the public domain. We make this dedication for the benefit |
#! /usr/bin/env python3 | |
"""Fixing bluetooth stereo headphone/headset problem in debian distros. | |
Workaround for bug: https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1577197 | |
Run it with python3.5 or higher after pairing/connecting the bluetooth stereo headphone. | |
This will be only fixes the bluez5 problem mentioned above . | |
Licence: Freeware |
# alias to edit commit messages without using rebase interactive | |
# example: git reword commithash message | |
reword = "!f() {\n GIT_SEQUENCE_EDITOR=\"sed -i 1s/^pick/reword/\" GIT_EDITOR=\"printf \\\"%s\\n\\\" \\\"$2\\\" >\" git rebase -i \"$1^\";\n git push -f;\n}; f" | |
# sort list of git repos with gh cli | |
gh repo list --limit 300 --json name -q '.[].name' | sort | |
# count total commits in a repo | |
git rev-list --all --count |
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"