Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍👨‍👦‍👦
using gnu

Ishimoto Shinobu protonesso

👨‍👨‍👦‍👦
using gnu
View GitHub Profile
View safestack.patch
From 66c2606588e369f189cf01f84d3b4966db4f809d Mon Sep 17 00:00:00 2001
From: Ishimoto Shinobu <nagakamira@gmail.com>
Date: Mon, 22 Mar 2021 06:23:48 +0900
Subject: [PATCH 1/2] sneed
Signed-off-by: Ishimoto Shinobu <nagakamira@gmail.com>
---
Makefile | 2 +-
arch/aarch64/syscall_arch.h | 2 ++
arch/i386/syscall_arch.h | 2 ++
@protonesso
protonesso / README.ja.md
Created Mar 31, 2021 — forked from niw/README.en.md
How to run Windows 10 on ARM or Ubuntu for ARM64 in QEMU on Apple Silicon Mac
View README.ja.md

ARM 版 Windows 10 や Ubuntu for ARM64 を Apple Silicon な Mac で動かす

ARM 版 Windows 10 や Ubuntu を Apple Silicon な Mac で動かす簡単な方法です。

メモ: 2021年2月8日現時点での方法で、今後まだ改善されていくと思います。

ARM 版 Windows 10 を動かす

  1. Xcode を App Store で、あるいは Command Line Tools を Apple Silicon な Mac にインストール
@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"
}