Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍👨‍👦‍👦
using gnu

Ishimoto Shinobu protonesso

👨‍👨‍👦‍👦
using gnu
View GitHub Profile
@protonesso
protonesso / mount_qcow2.md
Created Nov 4, 2020 — forked from shamil/mount_qcow2.md
How to mount a qcow2 disk image
View mount_qcow2.md

How to mount a qcow2 disk image

This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.

Step 1 - Enable NBD on the Host

modprobe nbd max_part=8
View setup
#!/usr/bin/env bash
print_welcome() {
cat <<-EOF
Welcome to Ataraxia Linux/$(uname -m) installation program!
This program will install Ataraxia Linux on your computer.
Make sure your disk size is more than 5 gigabytes.
EOF
View pkgadd
#!/usr/bin/env bash
#
# Package installer which uses zstd, similar to .deb
#
umask 022
unalias -a
pushd() { command pushd "$1" > /dev/null; }
popd() { command popd "$1" > /dev/null; }
View KAGAMIBUILD
# Description: The Linux kernel
# URL: https://www.kernel.org/
# Maintainer: protonesso, nagakamira at gmail dot com
# Priority: required
# Section: kernel
name=linux
version=5.4.22
hardenedver=5.4.22.a
case $version in
View fuwa-fuwa-inst
#!/usr/bin/env bash
#
# ふわふわインストーラー
# Extremely fuwa fuwa installer
#
msg() {
dialog --stdout \
--backtitle "Fuwa Fuwa installer" "$@"
}
View build_dietslack.sh
#!/bin/sh
REPO="${1%/}"
BARCH="$2"
REPO2="${3%/}"
main() {
echo "Calculating packages to build"
local pkgs sect2build tobuild
View gist:308baec04f186bc353b85ef8f2c89c93
#!/bin/sh
#
extract_file() {
local pkg="$1"
local file="$2"
bsdtar -C "$TMPDIR" -xzf "$pkg" "$file" 2>/dev/null || die -1 "Failed to extract file: $file"
}
View gist:6a34574c7428a7256a51826061c9fdfc
#!/bin/sh
REPO="${1%/}"
BARCH="$2"
main() {
echo "Calculating packages to build"
local pkgs sect2build tobuild
rm -rf /tmp/pkgs
View one.pas
{ кодим с Егоркой Михайловым xd}
program hitobito;
var
ki: array[1..5] of Integer;
tsuchi: Integer;
i: Byte;
begin
You can’t perform that action at this time.