Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍👨‍👦‍👦
using gnu

Ishimoto Shinobu protonesso

👨‍👨‍👦‍👦
using gnu
View GitHub Profile
@protonesso
protonesso / ARMDebianUbuntu.md
Created May 5, 2019 — forked from Liryna/ARMDebianUbuntu.md
Emulating ARM on Debian/Ubuntu
View ARMDebianUbuntu.md

You might want to read this to get an introduction to armel vs armhf.

If the below is too much, you can try Ubuntu-ARMv7-Qemu but note it contains non-free blobs.

Running ARM programs under linux (without starting QEMU VM!)

First, cross-compile user programs with GCC-ARM toolchain. Then install qemu-arm-static so that you can run ARM executables directly on linux

@protonesso
protonesso / mini_linux.md
Created Jul 12, 2019 — forked from hardentoo/mini_linux.md
Buildinq a minimal Linux / Busybox OS for Qemu
View mini_linux.md

Buildinq a minimal Linux / Busybox OS for Qemu

This short tutorial shows how to quickly build a minimal Linux kernel, a minimal initramfs root filesystem and test them on Qemu. We explore two options for the initramfs root filesystem:

  • starting from the Busybox sources (inspired by Mitchel Humpherys),
  • using Buildroot.

We also show how to compile and test a Hello world user application and a Hello world loadable kernel module.

Common

@protonesso
protonesso / makerpm
Created Jul 22, 2019
Build RPM packages with more comfort
View makerpm
#!/bin/bash
umask 022
unalias -a
pushd () { command pushd "$@" > /dev/null; }
popd () { command popd "$@" > /dev/null; }
msg() { echo -e "\033[1;32m >>> \033[0m$@"; }
msgtwo() { echo -e "\033[1;35m * \033[0m$@"; }
msgthree() { echo -e "\033[1;32m * \033[0m$@"; }
View one.pas
{ кодим с Егоркой Михайловым xd}
program hitobito;
var
ki: array[1..5] of Integer;
tsuchi: Integer;
i: Byte;
begin
View gist:6a34574c7428a7256a51826061c9fdfc
#!/bin/sh
REPO="${1%/}"
BARCH="$2"
main() {
echo "Calculating packages to build"
local pkgs sect2build tobuild
rm -rf /tmp/pkgs
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 build_dietslack.sh
#!/bin/sh
REPO="${1%/}"
BARCH="$2"
REPO2="${3%/}"
main() {
echo "Calculating packages to build"
local pkgs sect2build tobuild
View fuwa-fuwa-inst
#!/usr/bin/env bash
#
# ふわふわインストーラー
# Extremely fuwa fuwa installer
#
msg() {
dialog --stdout \
--backtitle "Fuwa Fuwa installer" "$@"
}
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 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; }
You can’t perform that action at this time.