before some code
after
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
: <<'README' | |
This is a fix for a well-known problem [1] with dropbear-initramfs+netplan | |
combo. | |
When dropbear starts, it enables networking [2]. This results in netplan configs | |
for available ifaces created under /run/netplan. After unlocking, the configs | |
are still there preventing networkmanager from picking ifaces up: by default, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
: <<'README' | |
Make dropbear not start with 'nodropbear' or 'dropbear=no' kernel arg. | |
Put this script under /etc/initramfs-tools/scripts/init-top/ and update | |
initramfs. | |
README |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -eu | |
bye () { | |
printf '%s\n' "$1" | |
exit 1 | |
} | |
blkid_type= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
MIT license (c) 2024 https://github.com/slowpeek | |
Homepage: https://gist.github.com/slowpeek/50b5123d23b038d5b06b1452057be0c2 | |
-- | |
Kodi remote control mod for Nokia 8000 |
How it should be:
line1 line2
How it renders nested into a list item (notice the extra tailing blank line):
- list item
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# MIT license (c) 2022-2024 https://github.com/slowpeek | |
# Homepage: https://gist.github.com/slowpeek/006680bb06e671bc489d4a3274ff3d19 | |
: <<'README' | |
Applicable nvidia driver versions: 525, 530, 535, 545, 550 | |
ABOUT -- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# MIT license (c) 2021 https://github.com/slowpeek | |
# Homepage: https://gist.github.com/slowpeek/beedb0c9c79638d4a7ec0099d0875ecb | |
# Simple apt sources generator for ubuntu. | |
############################ DEPRECATION NOTICE ############################ | |
# | |
# This script has evolved into https://github.com/slowpeek/ubuntu-sources |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: sh; sh-shell: bash; -*- | |
# shellcheck shell=bash | |
# MIT license (c) 2021 https://github.com/slowpeek | |
# Homepage: https://gist.github.com/slowpeek/7e2731b620d558f44841da6772743d38 | |
# This script can help you find out which line and why (end of code, | |
# literal exit, 'set -e' violation, bash error) your bash script | |
# finished execution. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: sh; sh-shell: bash; -*- | |
# shellcheck shell=bash | |
# MIT license (c) 2021 https://github.com/slowpeek | |
# Homepage: https://gist.github.com/slowpeek/f3e851f5c6fa6a7ba1f33d1e903bf4a9 | |
# Temporarily assign a new value to a var and restore it | |
# later. Strings only. The code is simple on intention, use it | |
# correctly. | |
# |
NewerOlder