Skip to content

Instantly share code, notes, and snippets.

@iav
iav / bcachefs format sample.txt
Created January 23, 2022 21:32
bcachefs format sample
bcachefs format \
--group=hdd /dev/sda1 /dev/sdb1 \
--group=ssd1 /dev/sdc1 \
--group=ssd2 /dev/sdc2 \
--data_replicas=2\
--metadata_replicas=2\
--foreground_target=ssd1\
--background_target=hdd\
--promote_target=ssd2\
--background_compression=lz4\
@iav
iav / prepare_chroot.txt
Created January 23, 2022 21:31
prepare to chroot
mount /dev/mmcblk1p2 /mnt
mount /dev/mmcblk1p1 /mnt/boot
mount -t proc proc /mnt/proc
mount -t sysfs sys /mnt/sys
mount -o bind /dev /mnt/dev
@iav
iav / compilation.patch
Created December 5, 2020 04:05
x64chroot
diff --git a/lib/compilation.sh b/lib/compilation.sh
index 5faca0be..ba3a019f 100644
--- a/lib/compilation.sh
+++ b/lib/compilation.sh
@@ -622,6 +622,35 @@ install_rkbin_tools()
install -m 755 tools/trust_merger /usr/local/bin/
improved_git rev-parse @ 2>/dev/null > .commit_id
fi
+
+ X64CHROOT="${SRC}"/cache/x64chroot
@iav
iav / userDefineLang_Dockerfile.xml
Created May 28, 2020 22:59 — forked from miqm/userDefineLang_Dockerfile.xml
notepad++ syntax highlighting for Dockerfiles
<NotepadPlus>
<UserLang name="Dockerfile" ext="Dockerfile" udlVersion="2.1">
<Settings>
<Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="yes" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00# 01 02 03 04</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>
rust@1e7deb06dc0c:~/src/target/armv7-unknown-linux-musleabihf/debug/build/openssl-sys-f4f7c5f9ca1df79f$ cat output
cargo:rustc-cfg=const_fn
cargo:rerun-if-env-changed=ARMV7_UNKNOWN_LINUX_MUSLEABIHF_OPENSSL_LIB_DIR
ARMV7_UNKNOWN_LINUX_MUSLEABIHF_OPENSSL_LIB_DIR unset
cargo:rerun-if-env-changed=OPENSSL_LIB_DIR
OPENSSL_LIB_DIR = /musl/lib
cargo:rerun-if-env-changed=ARMV7_UNKNOWN_LINUX_MUSLEABIHF_OPENSSL_INCLUDE_DIR
ARMV7_UNKNOWN_LINUX_MUSLEABIHF_OPENSSL_INCLUDE_DIR unset
cargo:rerun-if-env-changed=OPENSSL_INCLUDE_DIR
OPENSSL_INCLUDE_DIR = /musl/include
@iav
iav / zpurge
Created September 23, 2019 12:54
#!/bin/bash
#
# purge old zfs snapshots
# work on Solaris 10, not tested in other environment
# by Igor Velkov <dober-aeons.lv>
# v 0.2.1
# based on snap_zfs by trevor.pretty@sun.com
SCRIPT_NAME=$0
FILESYSTEM=$1
@iav
iav / dull
Created September 23, 2019 12:53
#!/bin/sh
#
# IDENTIFICATION
# $RCSfile$ $Revision$ $Date$
#
# NAME
# dull - Eine Mischung aus ls -la + du -k
#
# SYNOPSIS
# dull [ -a | -s | -t | -- ]
#!/bin/bash
#Here is a sample custom api script.
#This file name is "dns_myapi.sh"
#So, here must be a method dns_myapi_add()
#Which will be called by acme.sh to add the txt record to your api system.
#returns 0 means success, otherwise error.
#
#Author: Neilpang
#Report Bugs here: https://github.com/Neilpang/acme.sh